feat: consume server model reasoning capabilities

This commit is contained in:
2026-09-01 14:16:18 +08:00
parent 850947c092
commit ae79361742
20 changed files with 711 additions and 20 deletions

View File

@@ -6,6 +6,8 @@
* layer so TypeScript project boundaries remain stable during the migration.
*/
import type { ImportedModelCapabilities } from '../../shared/imported-model-profile';
export const PROVIDER_TYPES = [
'anthropic',
'openai',
@@ -125,6 +127,7 @@ export interface ProviderAccount {
email?: string;
resourceUrl?: string;
customModels?: string[];
worksSquareModelCapabilities?: ImportedModelCapabilities;
worksSquareCredentialMode?: string;
worksSquareCredentialExpiresAt?: string;
};

View File

@@ -30,6 +30,7 @@ const THINKING_OPTIONS: Array<{ value: ConversationThinkingLevel; label: string
{ value: 'low', label: '低' },
{ value: 'medium', label: '中等' },
{ value: 'high', label: '高' },
{ value: 'max', label: '最高' },
];
function thinkingLabel(level: ConversationThinkingLevel): string {