(entry: ChatModelEntry)
| 80 | export const anthropicProvider = anthropic; |
| 81 | |
| 82 | export function resolveModel(entry: ChatModelEntry) { |
| 83 | switch (entry.group) { |
| 84 | case 'OpenAI': |
| 85 | // biome-ignore lint/suspicious/noExplicitAny: OpenAI model id union is open |
| 86 | return openai().model(entry.modelId as any); |
| 87 | case 'Anthropic': |
| 88 | // biome-ignore lint/suspicious/noExplicitAny: Anthropic model id union is open |
| 89 | return anthropic().model(entry.modelId as any); |
| 90 | } |
| 91 | } |
no test coverage detected