Skip to content

Commit

Permalink
fix: fix the issue with the system model configuration update (#8923)
Browse files Browse the repository at this point in the history
  • Loading branch information
hwzhuhao authored Sep 30, 2024
1 parent 824a713 commit fa837b2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions api/controllers/console/workspace/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ def post(self):
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"}

Expand Down

0 comments on commit fa837b2

Please sign in to comment.