cookbook/90_models/litellm/README.md
python3 -m venv ~/.venvs/aienv
source ~/.venvs/aienv/bin/activate
Regardless of the model used—OpenAI, Hugging Face, or XAI—the API key is referenced as LITELLM_API_KEY.
export LITELLM_API_KEY=***
You can also reference the API key depending on the model you will use, e.g. OPENAI_API_KEY if you will use an OpenAI model like GPT-4o.
export OPENAI_API_KEY=***
uv pip install -U litellm ddgs duckdb yfinance agno
python cookbook/92_models/litellm/basic.py
python cookbook/92_models/litellm/basic_stream.py
python cookbook/92_models/litellm/tool_use.py
python cookbook/92_models/litellm/tool_use_stream.py
python cookbook/92_models/litellm/structured_output.py
python cookbook/92_models/litellm/memory.py
python cookbook/92_models/litellm/storage.py
python cookbook/92_models/litellm/knowledge.py
python cookbook/92_models/litellm/image_agent.py
python cookbook/92_models/litellm/image_agent_bytes.py
python cookbook/92_models/litellm/audio_input_agent.py
python cookbook/92_models/litellm/pdf_input_local.py
python cookbook/92_models/litellm/pdf_input_url.py
python cookbook/92_models/litellm/pdf_input_bytes.py
python cookbook/92_models/litellm/metrics.py
python cookbook/92_models/litellm/async_basic.py
python cookbook/92_models/litellm/async_basic_stream.py
python cookbook/92_models/litellm/async_tool_use.py