(providerId: string, model: CatalogModel)
| 52 | |
| 53 | /** Builds a kimi-code model alias from a normalized catalog model. */ |
| 54 | export function catalogModelToAlias(providerId: string, model: CatalogModel): ModelAlias { |
| 55 | return { |
| 56 | provider: providerId, |
| 57 | model: model.id, |
| 58 | maxContextSize: model.capability.max_context_tokens, |
| 59 | maxOutputSize: model.maxOutputSize, |
| 60 | capabilities: capabilityToStrings(model.capability), |
| 61 | displayName: model.name, |
| 62 | reasoningKey: model.reasoningKey, |
| 63 | }; |
| 64 | } |
| 65 | |
| 66 | export interface ApplyCatalogProviderOptions { |
| 67 | readonly providerId: string; |
no test coverage detected