mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-16 14:16:43 +00:00
fix(ui): type shared AGY compatibility lookup
This commit is contained in:
@@ -53,7 +53,9 @@ function stripCustomtoolsSuffix(modelId: string): string {
|
||||
}
|
||||
|
||||
function getAgyGeminiProCompatibilityId(modelId: string): string | undefined {
|
||||
return AGY_GEMINI_PRO_COMPATIBILITY_IDS[normalizeModelId(modelId)];
|
||||
return AGY_GEMINI_PRO_COMPATIBILITY_IDS[
|
||||
normalizeModelId(modelId) as keyof typeof AGY_GEMINI_PRO_COMPATIBILITY_IDS
|
||||
];
|
||||
}
|
||||
|
||||
function parseGeminiPreviewModelId(modelId: string): GeminiPreviewModelInfo | null {
|
||||
|
||||
Reference in New Issue
Block a user