feat: Refactor agent configuration by removing deprecated parameters and enhancing conversation model management

- Removed the `thinkingModelId` and `rerankModelId` from agent configuration, streamlining the settings structure.
- Introduced a new `conversationModels` interface to manage summary and rerank model IDs.
- Updated related UI components and API logic to accommodate the changes in agent configuration.
- Enhanced localization for new conversation model settings in English, Russian, and Chinese.
This commit is contained in:
wizardchen
2025-11-19 22:11:44 +08:00
parent fe117af66e
commit 601f73ec5f
20 changed files with 1013 additions and 722 deletions
+4 -1
View File
@@ -47,10 +47,13 @@ export function createModel(data: ModelConfig): Promise<ModelConfig> {
// 获取模型列表
export function listModels(type?: string): Promise<ModelConfig[]> {
return new Promise((resolve, reject) => {
const url = type ? `/api/v1/models?type=${type}` : '/api/v1/models';
const url = `/api/v1/models`;
get(url)
.then((response: any) => {
if (response.success && response.data) {
if (type) {
response.data = response.data.filter((item: ModelConfig) => item.type === type);
}
resolve(response.data);
} else {
resolve([]);
-2
View File
@@ -29,8 +29,6 @@ export interface AgentConfig {
reflection_enabled: boolean
allowed_tools: string[]
temperature: number
thinking_model_id: string
rerank_model_id: string
knowledge_bases?: string[]
system_prompt_web_enabled?: string // Custom system prompt when web search is enabled
system_prompt_web_disabled?: string // Custom system prompt when web search is disabled