Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add examples and documentation for using custom model providers #110

Merged
merged 1 commit into from
Mar 13, 2025

Conversation

rm-openai
Copy link
Collaborator

@rm-openai rm-openai commented Mar 12, 2025

Did a few things:

  1. Lazy loaded the client in OpenAIProvider so that we don't raises errors in cases where you dont have an openai key, but an OpenAIProvider() is created.
  2. Added docs and examples for custom model providers.

Test plan:

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.

@rm-openai rm-openai merged commit 16cfce1 into main Mar 13, 2025
5 checks passed
@rm-openai rm-openai deleted the pr110 branch March 13, 2025 15:17
nakasy000 pushed a commit to nakasy000/openai-agents-python that referenced this pull request Mar 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants