refactor: remove RuleEditor, RuleList, RulePreview, TimeRangePicker, and VoiceSection components
- Deleted RuleEditor.tsx, RuleList.tsx, RulePreview.tsx, TimeRangePicker.tsx, and VoiceSection.tsx as part of a cleanup. - Updated index.ts to remove imports related to deleted components. - Modified types.ts and model.tsx to accommodate changes in task configuration structure. - Introduced new types for TargetItem and LearningItem to enhance type safety. - Refactored ModelTaskConfig to be dynamic based on backend schema. - Updated ModelProviderConfigPage to unwrap backend config response for better handling.
This commit is contained in:
@@ -42,19 +42,9 @@ export interface TaskConfig {
|
||||
}
|
||||
|
||||
/**
|
||||
* 所有模型任务配置
|
||||
* 所有模型任务配置(动态,由后端 schema 决定字段)
|
||||
*/
|
||||
export interface ModelTaskConfig {
|
||||
utils: TaskConfig
|
||||
tool_use: TaskConfig
|
||||
replyer: TaskConfig
|
||||
planner: TaskConfig
|
||||
vlm: TaskConfig
|
||||
voice: TaskConfig
|
||||
embedding: TaskConfig
|
||||
lpmm_entity_extract: TaskConfig
|
||||
lpmm_rdf_build: TaskConfig
|
||||
}
|
||||
export type ModelTaskConfig = Record<string, TaskConfig>
|
||||
|
||||
/**
|
||||
* 表单验证错误
|
||||
@@ -64,8 +54,3 @@ export interface FormErrors {
|
||||
api_provider?: string
|
||||
model_identifier?: string
|
||||
}
|
||||
|
||||
/**
|
||||
* 任务名称类型
|
||||
*/
|
||||
export type TaskName = keyof ModelTaskConfig
|
||||
|
||||
Reference in New Issue
Block a user