Skip to content

Function: aiSdk()

ts
function aiSdk(options?: AiSdkOptions): AiSdkModelConfig;

Defined in: packages/sdk/src/ai/chatModel.ts:74

Back the chat with a cloud model via the Vercel AI SDK. The API key is read at runtime from ctx.assistant.secrets inside the Node driver — it is never captured here. Streams token-by-token through the chat UI.

Parameters

ParameterType
optionsAiSdkOptions

Returns

AiSdkModelConfig

Matterway Assistant SDK Documentation