[Bug]: can't add model / Cannot access 'lS' before initialization
What happened?
I'm trying to add an ollama via the ui. I choose Add Model, provider ollama, public model name "llama3.2", litellm model name "llama3.2", provide base URL (same as env below), then hit "Add model," nothing happens, but I see attached errors in console (form resets at that point). I go to "All models," no models listed. I hit reload. I get a page level "Cannot access 'lS' before initialization." I need to clear application memory in the browser to continue.
using OLLAMA_BASE_URLS: http://ollama:11434
By the way, the form fields LiteLLM Model Name(s) and Base Url populate with my login credentials by default, which shouldn't happen.
Relevant log output
No response
Twitter / LinkedIn details
No response
Just noticed if I enable STORE_MODEL_IN_DB it says it added the model, but no models show up and see the same error after reloading. If I clear cache and log in, the model shows up.
I encountered the same error. Service resumed by clear application cache.
Any news with this bug? Still having the same problem. I'm not able to add any AO model through the interface.
For anyone encounter this:
I cannot reproduce this in main(fe60a38c8e43e908f44d8c668a5ba9fae1dca762). Please provide more details so that I can help.
Closing as this should be fixed now.