Find answers from the community

Updated 6 months ago

Did you ever get this working? I am

At a glance

The community member is having trouble importing litellm and is getting an error. Some community members suggest that it's a bug that needs a pull request to fix, while others say it works fine for them and that the community member just needs to run pip install litellm. The community members also note that llama-index does not automatically install third-party integrations to keep dependencies manageable.

Did you ever get this working? I am trying to use LiteLLM according to the examples in the documentation and getting an error with "import litellm" in the base utils code.
L
D
7 comments
it's a bug with the import I guess, needs a PR to fix
wait actually
it works fine for me
just need to run pip install litellm
probably the code should be raising a more informative error if its not installed, but not a huge deal
That makes sense, I should have tried that first, I wasn't sure if litellm had to be installed separately or was installed along with llama-index.
in general, to keep dependencies sane to manage, llama-index will not install any 3rd party integration automatically
Add a reply
Sign up and join the conversation on Discord