feat: use managed model capabilities for reasoning and image input
This commit is contained in:
@@ -30,6 +30,7 @@ import {
|
||||
import type { ProviderWithKeyInfo } from '../../shared/providers/types';
|
||||
import { logger } from '../../utils/logger';
|
||||
import { normalizeImportedModelCapabilities } from '../../../shared/user-model-config';
|
||||
import { normalizeManagedModelCatalog } from '../../../shared/managed-model-capabilities';
|
||||
|
||||
function maskApiKey(apiKey: string | null): string | null {
|
||||
if (!apiKey) return null;
|
||||
@@ -76,6 +77,8 @@ function normalizeSyncedMetadata(metadata: Record<string, unknown>): ProviderAcc
|
||||
if (worksSquareModelCapabilities) {
|
||||
result.worksSquareModelCapabilities = worksSquareModelCapabilities;
|
||||
}
|
||||
const v2 = normalizeManagedModelCatalog(metadata.worksSquareModelCapabilitiesV2);
|
||||
if (v2) result.worksSquareModelCapabilitiesV2 = v2;
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user