Thanks to visit codestin.com
Credit goes to github.com

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: psachdev/openai-agents-python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
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: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 14 commits
  • 36 files changed
  • 11 contributors

Commits on May 14, 2025

  1. Fixed a bug for "detail" attribute in input image (openai#685)

    When an input image is given as input, the code tries to access the
    'detail' key, that may not be present as noted in openai#159.
    
    With this pull request, now it tries to access the key, otherwise set
    the value to `None`.
    @pakrym-oai  or @rm-openai let me know if you want any changes.
    DanieleMorotti authored May 14, 2025
    Configuration menu
    Copy the full SHA
    2c46dae View commit details
    Browse the repository at this point in the history
  2. feat: pass extra_body through to LiteLLM acompletion (openai#638)

    **Purpose**  
    Allow arbitrary `extra_body` parameters (e.g. `cached_content`) to be
    forwarded into the LiteLLM call. Useful for context caching in Gemini
    models
    ([docs](https://ai.google.dev/gemini-api/docs/caching?lang=python)).
    
    **Example usage**  
    ```python
    import os
    from agents import Agent, ModelSettings
    from agents.extensions.models.litellm_model import LitellmModel
    
    cache_name = "cachedContents/34jopukfx5di"  # previously stored context
    
    gemini_model = LitellmModel(
        model="gemini/gemini-1.5-flash-002",
        api_key=os.getenv("GOOGLE_API_KEY")
    )
    
    agent = Agent(
        name="Cached Gemini Agent",
        model=gemini_model,
        model_settings=ModelSettings(
            extra_body={"cached_content": cache_name}
        )
    )
    AshokSaravanan222 authored May 14, 2025
    Configuration menu
    Copy the full SHA
    1994f9d View commit details
    Browse the repository at this point in the history
  3. Update search_agent.py (openai#677)

    Added missing word "be" in prompt instructions.
    
    This is unlikely to change the agent functionality in most cases, but
    optimal clarity in prompt language is a best practice.
    leohpark authored May 14, 2025
    Configuration menu
    Copy the full SHA
    02b6e70 View commit details
    Browse the repository at this point in the history
  4. feat: Streamable HTTP support (openai#643)

    Co-authored-by: aagarwal25 <[email protected]>
    Akshit97 and aagarwal25 authored May 14, 2025
    Configuration menu
    Copy the full SHA
    1847008 View commit details
    Browse the repository at this point in the history

Commits on May 15, 2025

  1. v0.0.15 (openai#701)

    rm-openai authored May 15, 2025
    Configuration menu
    Copy the full SHA
    5fe096d View commit details
    Browse the repository at this point in the history

Commits on May 18, 2025

  1. Create AGENTS.md (openai#707)

    Adding an AGENTS.md file for Codex use
    dkundel-openai authored May 18, 2025
    Configuration menu
    Copy the full SHA
    c282324 View commit details
    Browse the repository at this point in the history
  2. Added mcp 'instructions' attribute to the server (openai#706)

    Added the `instructions` attribute to the MCP servers to solve openai#704 .
    
    Let me know if you want to add an example to the documentation.
    DanieleMorotti authored May 18, 2025
    Configuration menu
    Copy the full SHA
    003cbfe View commit details
    Browse the repository at this point in the history

Commits on May 19, 2025

  1. Configuration menu
    Copy the full SHA
    428c9a6 View commit details
    Browse the repository at this point in the history

Commits on May 20, 2025

  1. Dev/add usage details to Usage class (openai#726)

    PR to enhance the `Usage` object and related logic, to support more
    granular token accounting, matching the details available in the [OpenAI
    Responses API](https://platform.openai.com/docs/api-reference/responses)
    . Specifically, it:
    
    - Adds `input_tokens_details` and `output_tokens_details` fields to the
    `Usage` dataclass, storing detailed token breakdowns (e.g.,
    `cached_tokens`, `reasoning_tokens`).
    - Flows this change through
    - Updates and extends tests to match
    - Adds a test for the Usage.add method
    
    ### Motivation
    - Aligns the SDK’s usage with the latest OpenAI responses API Usage
    object
    - Supports downstream use cases that require fine-grained token usage
    data (e.g., billing, analytics, optimization) requested by startups
    
    ---------
    
    Co-authored-by: Wulfie Bain <[email protected]>
    WJPBProjects and WJPBProjects authored May 20, 2025
    Configuration menu
    Copy the full SHA
    466b44d View commit details
    Browse the repository at this point in the history

Commits on May 21, 2025

  1. Upgrade openAI sdk version (openai#730)

    ---
    [//]: # (BEGIN SAPLING FOOTER)
    * openai#732
    * openai#731
    * __->__ openai#730
    rm-openai authored May 21, 2025
    Configuration menu
    Copy the full SHA
    ce2e2a4 View commit details
    Browse the repository at this point in the history
  2. Hosted MCP support (openai#731)

    ---
    [//]: # (BEGIN SAPLING FOOTER)
    * openai#732
    * __->__ openai#731
    rm-openai authored May 21, 2025
    Configuration menu
    Copy the full SHA
    9fa5c39 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    079764f View commit details
    Browse the repository at this point in the history
  4. v0.0.16 (openai#733)

    rm-openai authored May 21, 2025
    Configuration menu
    Copy the full SHA
    1992be3 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1364f44 View commit details
    Browse the repository at this point in the history
Loading