This commit is contained in:
从何开始123
2026-01-08 11:56:00 +08:00
parent 54e9bf5906
commit 1561c054b7
24 changed files with 1105 additions and 449 deletions

View File

@@ -1,4 +1,5 @@
import { ModelOption, ThinkingLevel } from './types';
import { ModelOption, ThinkingLevel, AppConfig } from './types';
export const MODELS: { value: ModelOption; label: string; desc: string }[] = [
{
@@ -13,6 +14,22 @@ export const MODELS: { value: ModelOption; label: string; desc: string }[] = [
},
];
export const STORAGE_KEYS = {
SETTINGS: 'prisma-settings',
MODEL: 'prisma-selected-model',
SESSION_ID: 'prisma-active-session-id'
};
export const DEFAULT_CONFIG: AppConfig = {
planningLevel: 'high',
expertLevel: 'high',
synthesisLevel: 'high',
customApiKey: '',
customBaseUrl: '',
enableCustomApi: false,
enableRecursiveLoop: false
};
export const getValidThinkingLevels = (model: ModelOption): ThinkingLevel[] => {
if (model === 'gemini-3-pro-preview') {
return ['low', 'high'];
@@ -30,4 +47,4 @@ export const getThinkingBudget = (level: ThinkingLevel, model: ModelOption): num
case 'high': return isPro ? 32768 : 16384;
default: return 0;
}
};
};