feat: enhance agent orchestration, knowledge flow and UI refinements

This commit is contained in:
2026-03-29 20:31:13 +08:00
parent d85cb9cf35
commit e0fe3ca623
301 changed files with 1197804 additions and 7863 deletions

View File

@@ -10,7 +10,8 @@ LLMType = Literal["chat", "vlm", "embedding", "rerank"]
# 单个模型配置
class LLMModelConfig(BaseModel):
name: str = "" # 模型名称/别名,用于标识
provider: LLMProviderType = "openai"
# provider 已废弃为必填字段:优先通过 base_url + model 推断。
provider: Optional[LLMProviderType] = None
model: str = ""
base_url: str = ""
api_key: str = ""
@@ -52,7 +53,8 @@ class SettingsOut(BaseModel):
# 测试 LLM 连接请求
class LLMTestIn(BaseModel):
type: LLMType
provider: LLMProviderType
# provider 已废弃为必填字段:优先通过 base_url + model 推断。
provider: Optional[LLMProviderType] = None
model: str
base_url: str
api_key: str