( model: TModel, apiKey: string, config?: Omit<MistralTextConfig, 'apiKey'>, )
| 1108 | * ``` |
| 1109 | */ |
| 1110 | export 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. |
no outgoing calls
no test coverage detected