(model: Provider.Model, options: { [x: string]: any })
| 314 | } |
| 315 | |
| 316 | export function providerOptions(model: Provider.Model, options: { [x: string]: any }) { |
| 317 | switch (model.api.npm) { |
| 318 | case "@ai-sdk/openai": |
| 319 | case "@ai-sdk/azure": |
| 320 | return { |
| 321 | ["openai" as string]: options, |
| 322 | } |
| 323 | case "@ai-sdk/amazon-bedrock": |
| 324 | return { |
| 325 | ["bedrock" as string]: options, |
| 326 | } |
| 327 | case "@ai-sdk/anthropic": |
| 328 | return { |
| 329 | ["anthropic" as string]: options, |
| 330 | } |
| 331 | case "@ai-sdk/google": |
| 332 | return { |
| 333 | ["google" as string]: options, |
| 334 | } |
| 335 | case "@ai-sdk/gateway": |
| 336 | return { |
| 337 | ["gateway" as string]: options, |
| 338 | } |
| 339 | case "@openrouter/ai-sdk-provider": |
| 340 | return { |
| 341 | ["openrouter" as string]: options, |
| 342 | } |
| 343 | default: |
| 344 | return { |
| 345 | [model.providerID]: options, |
| 346 | } |
| 347 | } |
| 348 | } |
| 349 | |
| 350 | export function maxOutputTokens( |
| 351 | npm: string, |
nothing calls this directly
no outgoing calls
no test coverage detected