1
This commit is contained in:
@@ -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;
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user