feat: add setting

This commit is contained in:
Quicy
2026-01-21 12:07:38 +08:00
parent f1711c43f7
commit 9980fed90b
3 changed files with 301 additions and 50 deletions
+15
View File
@@ -63,3 +63,18 @@ export interface ChatModel extends BaseModel {
}
export type Model = EmbeddingModel | ChatModel
// 表格当中model的类型
export interface ModelTable {
apiKey: string,
baseUrl: string,
clientType: 'OpenAI' | 'Anthropic' | 'Google',
modelId: string,
name: string,
type: 'chat' | 'embedding',
id: string,
defaultChatModel: boolean,
defaultEmbeddingModel: boolean,
defaultSummaryModel: boolean
}