Skip to content

Commit

Permalink
Fix id issue when setting llm
Browse files Browse the repository at this point in the history
  • Loading branch information
derneuere authored Nov 28, 2024
1 parent ea8f612 commit 1764e77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/views/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def post(self, request, format=None):
if "llm_model" in request.data.keys():
site_config.LLM_MODEL = request.data["llm_model"]
if not do_all_models_exist():
AsyncTask(download_models, User.objects.get(id=request.user)).run()
AsyncTask(download_models, User.objects.get(id=request.user.id)).run()

return self.get(request, format=format)

Expand Down

0 comments on commit 1764e77

Please sign in to comment.