litellm icon indicating copy to clipboard operation
litellm copied to clipboard

[Bug]: can't add model / Cannot access 'lS' before initialization

Open vid opened this issue 1 year ago • 1 comments

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

image

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

vid avatar Nov 24 '24 22:11 vid

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.

vid avatar Nov 24 '24 22:11 vid

I encountered the same error. Service resumed by clear application cache.

thiner avatar Dec 09 '24 11:12 thiner

Any news with this bug? Still having the same problem. I'm not able to add any AO model through the interface.

conflock avatar Jan 14 '25 13:01 conflock

For anyone encounter this:

I cannot reproduce this in main(fe60a38c8e43e908f44d8c668a5ba9fae1dca762). Please provide more details so that I can help.

yujonglee avatar Jan 15 '25 11:01 yujonglee

Closing as this should be fixed now.

krrishdholakia avatar Feb 14 '25 17:02 krrishdholakia