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

This commit is contained in:
zhuhao 2024-09-30 17:14:13 +08:00 committed by GitHub
parent 824a71388a
commit fa837b2dfd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"}