( model: TModel, apiKey: string, config?: Omit<SDKOptions, 'apiKey'>, )
| 1429 | } |
| 1430 | |
| 1431 | export function createOpenRouterText<TModel extends OpenRouterTextModels>( |
| 1432 | model: TModel, |
| 1433 | apiKey: string, |
| 1434 | config?: Omit<SDKOptions, 'apiKey'>, |
| 1435 | ): OpenRouterTextAdapter<TModel, ResolveToolCapabilities<TModel>> { |
| 1436 | return new OpenRouterTextAdapter({ apiKey, ...config }, model) |
| 1437 | } |
| 1438 | |
| 1439 | export function openRouterText<TModel extends OpenRouterTextModels>( |
| 1440 | model: TModel, |
no outgoing calls