Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: openai/openai-agents-python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.0.11
Choose a base ref
...
head repository: openai/openai-agents-python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.0.12
Choose a head ref
  • 15 commits
  • 75 files changed
  • 4 contributors

Commits on Apr 15, 2025

  1. Run CI on all commits, not just ones on main (#521)

    Was not running on my stacked PRs.
    rm-openai authored Apr 15, 2025
    Configuration menu
    Copy the full SHA
    ce1abe6 View commit details
    Browse the repository at this point in the history
  2. Extract chat completions conversion code into helper (#522)

    Small refactor for rest of stack.
    
    ---
    [//]: # (BEGIN SAPLING FOOTER)
    * #524
    * #523
    * __->__ #522
    rm-openai authored Apr 15, 2025
    Configuration menu
    Copy the full SHA
    80de53e View commit details
    Browse the repository at this point in the history
  3. Extract chat completions streaming helpers (#523)

    Small refactor.
    
    ---
    [//]: # (BEGIN SAPLING FOOTER)
    * #524
    * __->__ #523
    rm-openai authored Apr 15, 2025
    Configuration menu
    Copy the full SHA
    65cae71 View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2025

  1. Show repo name/data in docs (#525)

    Easy linking back to the repo, plus some social proof (stars/forks etc).
    rm-openai authored Apr 16, 2025
    Configuration menu
    Copy the full SHA
    0faadf7 View commit details
    Browse the repository at this point in the history
  2. Litellm integration (#524)

    litellm is a library that abstracts away details/differences for a lot
    of model providers. Adding an extension, so that any provider can easily
    be integrated.
    
    ---
    [//]: # (BEGIN SAPLING FOOTER)
    * #532
    * __->__ #524
    rm-openai authored Apr 16, 2025
    Configuration menu
    Copy the full SHA
    bd404e0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    472e8c1 View commit details
    Browse the repository at this point in the history

Commits on Apr 17, 2025

  1. Docs: Switch to o3 model; exclude translated pages from search (#533)

    This pull request introduces the following changes:
    1. **Exclude translated pages from search**: I explored ways to make the
    search plugin work with the i18n plugin, but it would require extensive
    custom JavaScript hacks. So for now, I’m holding off on this work.
    2. **Switch from GPT-4.1 to o3 for even better translation quality**:
    While 4.1 performs well, o3 shows even greater quality for this task,
    and there’s no reason to avoid using it.
    seratch authored Apr 17, 2025
    Configuration menu
    Copy the full SHA
    5639606 View commit details
    Browse the repository at this point in the history

Commits on Apr 21, 2025

  1. Configuration menu
    Copy the full SHA
    4b8472d View commit details
    Browse the repository at this point in the history
  2. Enable non-strict output types (#539)

    See #528, some folks are having issues because their output types are
    not strict-compatible.
    
    My approach was:
    1. Create `AgentOutputSchemaBase`, which represents the base methods for
    an output type - the json schema + validation
    2. Make the existing `AgentOutputSchema` subclass
    `AgentOutputSchemaBase`
    3. Allow users to pass a `AgentOutputSchemaBase` to
    `Agent(output_type=...)`
    rm-openai authored Apr 21, 2025
    Configuration menu
    Copy the full SHA
    e3698f3 View commit details
    Browse the repository at this point in the history
  3. Start and finish streaming trace in impl metod (#540)

    Closes #435 and closes #538.
    
    Unit tests.
    rm-openai authored Apr 21, 2025
    Configuration menu
    Copy the full SHA
    616d8e7 View commit details
    Browse the repository at this point in the history
  4. Fix visualize graph filename to without extension. (#554)

    Only the file name is needed since graphviz's `render()` automatically
    adds the file extension.
    Also, unnecessary .gv (.dot) files are output, so the `cleanup=True`
    option has been modified to prevent them from being saved.
    
    Here is a similar modification, but in a different content.
    - #451
    yuya-haruna authored Apr 21, 2025
    Configuration menu
    Copy the full SHA
    0a3dfa0 View commit details
    Browse the repository at this point in the history
  5. RFC: automatically use litellm if possible (#534)

    ## Summary
    This replaces the default model provider with a `MultiProvider`, which
    has the logic:
    - if the model name starts with `openai/` or doesn't contain "/", use
    OpenAI
    - if the model name starts with `litellm/`, use LiteLLM to use the
    appropriate model provider.
    
    It's also extensible, so users can create their own mappings. I also
    imagine that if we natively supported Anthropic/Gemini etc, we can add
    it to MultiProvider to make it work.
    
    The goal is that it should be really easy to use any model provider.
    Today if you pass `model="gpt-4.1"`, it works great. But
    `model="claude-sonnet-3.7"` doesn't. If we can make it that easy, it's a
    win for devx.
    
    I'm not entirely sure if this is a good idea - is it too magical? Is the
    API too reliant on litellm? Comments welcome.
    
    ## Test plan
    
    For now, the example. Will add unit tests if we agree its worth mergin.
    
    ---------
    
    Co-authored-by: Steven Heidel <steven@heidel.ca>
    rm-openai and stevenheidel authored Apr 21, 2025
    Configuration menu
    Copy the full SHA
    a0254b0 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    942ba98 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    2bdf9b7 View commit details
    Browse the repository at this point in the history

Commits on Apr 22, 2025

  1. v0.0.12 (#564)

    rm-openai authored Apr 22, 2025
    Configuration menu
    Copy the full SHA
    83ce49e View commit details
    Browse the repository at this point in the history
Loading