LiteLLM integration for LlamaIndex, enabling access to 100+ LLM providers (OpenAI, Anthropic, Cohere, etc.) through a unified interface. Current version 0.7.1, fast-moving with frequent releases.
pip install llama-index-llms-litellmNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize LiteLLM with a model string and use it for completion.
Update imports to use the correct path as shown in the quickstart.
Always pass model as first argument: `LiteLLM('gpt-4o')`.Check LiteLLM provider docs for supported kwargs and pass them using `**kwargs` if needed.
Run `pip install llama-index-llms-litellm`.
Check the API key is set correctly and the model string matches a supported provider/model.
Set the API key in the environment (e.g., `os.environ['OPENAI_API_KEY'] = '...'`) instead of passing it to the constructor.
No resource links recorded.