feat: 对接星火大模型
feat: 大模型选择器 feat: 聊天页面适配手机端
This commit is contained in:
@@ -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'
|
||||
},
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user