ModelTable remains empty even if ollama models loaded. #9312
Unanswered
EricSolshkov
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
First I noticed that all non-admin user have no model in their model list in front end. But I have several ollama models loaded, and visible to my admin account. Switch of each model in administrator settings is toggled active.
I tried toggle "Model Access" for 'default user' group and refresh. -> Failed, users still have no model visible.
I debugged in python and find in the main.py line 805, model_info = Models.get_model_by_id(model["id"]), the function returns None and additionally I tested Models.get_all_models() and get None as return.
The reason why models is visible to admin is that access filtering can be skipped if a user is admin.(main.py line 832 if user.role == "user" and not BYPASS_MODEL_ACCESS_CONTROL:)
I searched the project, and I find there is only one place Models.insert_new_model is called, where in the front end the + button is pushed. Does this mean checking model accessibility by calling Models.get_model-like functions will always return negative?
Is there any method to solve this except adding an environment variable "BYPASS_MODEL_ACCESS_CONTROL"?
Beta Was this translation helpful? Give feedback.
All reactions