This commit is contained in:
从何开始123
2026-01-09 01:07:03 +08:00
parent 21842c2b50
commit a32f3a5faf
17 changed files with 334 additions and 135 deletions

View File

@@ -1,4 +1,5 @@
export type ModelOption = 'gemini-3-flash-preview' | 'gemini-3-pro-preview' | 'gpt-4.1' | 'gpt-4o' | 'gpt-4o-mini' | 'o1-preview' | 'o1-mini' | 'deepseek-chat' | 'deepseek-coder' | 'custom' | string;
export type ModelOption = 'gemini-3-flash-preview' | 'gemini-3-pro-preview' | 'custom' | string;
export type ThinkingLevel = 'minimal' | 'low' | 'medium' | 'high';
export type ApiProvider = 'google' | 'openai' | 'deepseek' | 'anthropic' | 'xai' | 'mistral' | 'custom';
@@ -54,10 +55,19 @@ export type AppConfig = {
customModels?: CustomModel[];
};
export type MessageAttachment = {
id: string;
type: 'image';
mimeType: string;
data: string; // Base64 string
url?: string; // For display
};
export type ChatMessage = {
id: string;
role: 'user' | 'model';
content: string;
attachments?: MessageAttachment[];
// DeepThink Artifacts (only for model messages)
analysis?: AnalysisResult | null;
experts?: ExpertResult[];
@@ -72,4 +82,4 @@ export type ChatSession = {
messages: ChatMessage[];
createdAt: number;
model: ModelOption;
};
};