MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / getModelCapability

Function getModelCapability

packages/kosong/src/providers/index.ts:54–73  ·  view source on GitHub ↗
(wire: ProviderType, modelName: string)

Source from the content-addressed store, hash-verified

52 * {@link UNKNOWN_CAPABILITY} so capability checks stay non-fatal.
53 */
54export 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}

Callers 2

resolveModelCapabilitiesFunction · 0.90

Tested by

no test coverage detected