MCPcopy Create free account
hub / github.com/TanStack/ai / isChatModel

Function isChatModel

packages/ai-bedrock/src/index.ts:47–49  ·  view source on GitHub ↗

Cast-free runtime guard: is this model in the Chat-capable subset?

(model: string)

Source from the content-addressed store, hash-verified

45
46/** Cast-free runtime guard: is this model in the Chat-capable subset? */
47function isChatModel(model: string): model is BedrockChatModels {
48 return BEDROCK_CHAT_MODELS.some((m) => m === model)
49}
50
51/** Strip the `api` discriminator from a config without an unused-var lint error. */
52function stripApi<T extends { api?: unknown }>(config: T): Omit<T, 'api'> {

Callers 1

buildFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected