MCPcopy
hub / github.com/TanStack/ai / constructor

Method constructor

packages/ai-mistral/src/adapters/text.ts:176–183  ·  view source on GitHub ↗
(config: MistralTextConfig, model: TModel)

Source from the content-addressed store, hash-verified

174 private readonly rawConfig: MistralClientConfig
175
176 constructor(config: MistralTextConfig, model: TModel) {
177 super(config, model)
178 // The SDK client is retained for `structuredOutput` (non-streaming). The
179 // streaming path bypasses the SDK and uses `fetchRawMistralStream` because
180 // the SDK's Zod schemas reject partial tool-call argument deltas.
181 this.client = createMistralClient(config)
182 this.rawConfig = config
183 }
184
185 async *chatStream(
186 options: TextOptions<TProviderOptions>,

Callers

nothing calls this directly

Calls 1

createMistralClientFunction · 0.90

Tested by

no test coverage detected