🎨chore: 使用 oxlint, oxfmt&格式化代码

This commit is contained in:
2026-02-08 21:16:25 +08:00
parent 9d35c6a9d8
commit 3a801ba016
78 changed files with 3367 additions and 1468 deletions

View File

@@ -1,10 +1,7 @@
export type ChatSessionId = string
export type ChatMessageId = string
export type ModelTag =
'spark1_5' |
'spark3_0' |
'spark3_5'
export type ModelTag = 'spark1_5' | 'spark3_0' | 'spark3_5'
export interface LLMModal {
tag: ModelTag
@@ -15,17 +12,17 @@ export interface LLMModal {
}
export interface Assistant {
id: number;
user_id: number;
create_time: number;
tpl_name: string;
types: string;
des: string;
input_tpl: string;
role: string;
target: string;
style: string;
demand: string;
id: number
user_id: number
create_time: number
tpl_name: string
types: string
des: string
input_tpl: string
role: string
target: string
style: string
demand: string
}
export namespace LLMSpark {
@@ -52,21 +49,21 @@ export const llmModels: Readonly<LLMModal[]> = Object.freeze([
name: 'Spark 1.5',
description: '科大讯飞星火 1.5',
icon: 'tabler:car',
endpoint: 'App.Assistant_Spark.Chat_1_5'
endpoint: 'App.Assistant_Spark.Chat_1_5',
},
{
tag: 'spark3_0',
name: 'Spark 3.0',
description: '科大讯飞星火 3.0',
icon: 'tabler:plane-departure',
endpoint: 'App.Assistant_Spark.Chat_3_0'
endpoint: 'App.Assistant_Spark.Chat_3_0',
},
{
tag: 'spark3_5',
name: 'Spark 3.5',
description: '科大讯飞星火 3.5',
icon: 'tabler:rocket',
endpoint: 'App.Assistant_Spark.Chat_3_5'
endpoint: 'App.Assistant_Spark.Chat_3_5',
},
])