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: johntango/openai-agents-python01
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
Able to merge. These branches can be automatically merged.
  • 7 commits
  • 12 files changed
  • 7 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
    Copy the full SHA
    2c46dae View commit details
  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
    Copy the full SHA
    1994f9d View commit details
  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
    Copy the full SHA
    02b6e70 View commit details
  4. feat: Streamable HTTP support (openai#643)

    Co-authored-by: aagarwal25 <[email protected]>
    Akshit97 and aagarwal25 authored May 14, 2025
    Copy the full SHA
    1847008 View commit details

Commits on May 15, 2025

  1. v0.0.15 (openai#701)

    rm-openai authored May 15, 2025
    Copy the full SHA
    5fe096d View commit details

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
    Copy the full SHA
    c282324 View commit details
  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
    Copy the full SHA
    003cbfe View commit details
Loading