Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: fix the issue with the system model configuration update (#8923)

zhuhaofa837b2dfdb0
diff --git a/api/controllers/console/workspace/models.py b/api/controllers/console/workspace/models.py
index dc88f6b8127..3138a260b38 100644
--- a/api/controllers/console/workspace/models.py
+++ b/api/controllers/console/workspace/models.py
@@ -72,8 +72,9 @@ class DefaultModelApi(Resource):
provider=model_setting["provider"],
model=model_setting["model"],
)
- except Exception:
- logging.warning(f"{model_setting['model_type']} save error")
+ except Exception as ex:
+ logging.exception(f"{model_setting['model_type']} save error: {ex}")
+ raise ex
return {"result": "success"}