feat: Implement Dify LLM provider and update related configurations and tests

This commit is contained in:
Xin Wang
2026-03-11 16:35:59 +08:00
parent 3b9ee80c8f
commit 5eec8f2b30
7 changed files with 455 additions and 3 deletions

View File

@@ -302,8 +302,8 @@ def _resolve_runtime_metadata(db: Session, assistant: Assistant) -> tuple[Dict[s
if config_mode == "dify":
metadata["services"]["llm"] = {
"provider": "openai",
"model": "",
"provider": "dify",
"model": "dify",
"apiKey": assistant.api_key,
"baseUrl": assistant.api_url,
}