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

Function createMistralText

packages/ai-mistral/src/adapters/text.ts:1110–1118  ·  view source on GitHub ↗
(
  model: TModel,
  apiKey: string,
  config?: Omit<MistralTextConfig, 'apiKey'>,
)

Source from the content-addressed store, hash-verified

1108 * ```
1109 */
1110export function createMistralText<
1111 TModel extends (typeof MISTRAL_CHAT_MODELS)[number],
1112>(
1113 model: TModel,
1114 apiKey: string,
1115 config?: Omit<MistralTextConfig, 'apiKey'>,
1116): MistralTextAdapter<TModel> {
1117 return new MistralTextAdapter({ apiKey, ...config }, model)
1118}
1119
1120/**
1121 * Creates a Mistral text adapter using the `MISTRAL_API_KEY` environment variable.

Callers 3

createTextAdapterFunction · 0.90
mistralTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected