openai-agents-python/examples/model_providers
2025-03-12 17:34:38 -07:00
..
custom_example_agent.py Add examples and documentation for using custom model providers 2025-03-12 17:34:38 -07:00
custom_example_global.py Add examples and documentation for using custom model providers 2025-03-12 17:34:38 -07:00
custom_example_provider.py Add examples and documentation for using custom model providers 2025-03-12 17:34:38 -07:00
README.md Add examples and documentation for using custom model providers 2025-03-12 17:34:38 -07:00

Custom LLM providers

The examples in this directory demonstrate how you might use a non-OpenAI LLM provider. To run them, first set a base URL, API key and model.

export EXAMPLE_BASE_URL="..."
export EXAMPLE_API_KEY="..."
export EXAMPLE_MODEL_NAME"..."

Then run the examples, e.g.:

python examples/model_providers/custom_example_provider.py

Loops within themselves,
Function calls its own being,
Depth without ending.