cookbook/90_models/litellm_openai/README.md
Note: Fork and clone this repository if needed
python3 -m venv ~/.venvs/aienv
source ~/.venvs/aienv/bin/activate
LITELLM_API_KEYWhichever model you use- openai, huggingface, xai, the api key will be by the name of LITELLM_API_KEY
export LITELLM_API_KEY=***
uv pip install -U openai 'litellm[proxy]' ddgs duckdb yfinance agno
litellm --model gpt-4o --host 127.0.0.1 --port 4000
or, if you want to use some other model like from Anthropic
litellm --model claude-3-sonnet-20240229 --host 127.0.0.1 --port 4000
python cookbook/92_models/litellm_proxy/basic_stream.py
python cookbook/92_models/litellm_proxy/tool_use.py