feat: 对接星火大模型

feat: 大模型选择器
feat: 聊天页面适配手机端
This commit is contained in:
2024-04-03 15:51:51 +08:00
parent a10e492922
commit e02b0ffcc6
6 changed files with 497 additions and 445 deletions

View File

@@ -10,6 +10,7 @@ export interface LLMModal {
tag: ModelTag
name: string
description: string
icon?: string
endpoint: string
}
@@ -27,19 +28,6 @@ export namespace LLMSpark {
status: number
}
}
// answer: string
// last_data: {
// payload: {
// usage: {
// text: {
// completion_tokens: number
// prompt_tokens: number
// question_tokens: number
// total_tokens: number
// }
// }
// }
// }
}
}
@@ -47,19 +35,22 @@ export const llmModels: Readonly<LLMModal[]> = Object.freeze([
{
tag: 'spark1_5',
name: 'Spark 1.5',
description: 'Spark 1.5',
description: '科大讯飞星火 1.5',
icon: 'tabler:car',
endpoint: 'App.Assistant_Spark.Chat_1_5'
},
{
tag: 'spark3_0',
name: 'Spark 3.0',
description: 'Spark 3.0',
description: '科大讯飞星火 3.0',
icon: 'tabler:plane-departure',
endpoint: 'App.Assistant_Spark.Chat_3_0'
},
{
tag: 'spark3_5',
name: 'Spark 3.5',
description: 'Spark 3.5',
description: '科大讯飞星火 3.5',
icon: 'tabler:rocket',
endpoint: 'App.Assistant_Spark.Chat_3_5'
},
])