(wire: ProviderType, modelName: string)
| 52 | * {@link UNKNOWN_CAPABILITY} so capability checks stay non-fatal. |
| 53 | */ |
| 54 | export function getModelCapability(wire: ProviderType, modelName: string): ModelCapability { |
| 55 | switch (wire) { |
| 56 | case 'anthropic': |
| 57 | return getAnthropicModelCapability(modelName); |
| 58 | case 'openai': |
| 59 | return getOpenAILegacyModelCapability(modelName); |
| 60 | case 'openai_responses': |
| 61 | return getOpenAIResponsesModelCapability(modelName); |
| 62 | case 'google-genai': |
| 63 | case 'vertexai': |
| 64 | return getGoogleGenAIModelCapability(modelName); |
| 65 | case 'kimi': |
| 66 | return UNKNOWN_CAPABILITY; |
| 67 | default: { |
| 68 | const exhaustive: never = wire; |
| 69 | void exhaustive; |
| 70 | return UNKNOWN_CAPABILITY; |
| 71 | } |
| 72 | } |
| 73 | } |
no test coverage detected