-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
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.12
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: openai/openai-agents-python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.0.13
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 8 commits
- 17 files changed
- 6 contributors
Commits on Apr 23, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 111fc9e - Browse repository at this point
Copy the full SHA 111fc9eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 178020e - Browse repository at this point
Copy the full SHA 178020eView commit details -
Allow cancel out of the streaming result (#579)
Fix for #574 @rm-openai I'm not sure how to add a test within the repo but I have pasted a test script below that seems to work ```python import asyncio from openai.types.responses import ResponseTextDeltaEvent from agents import Agent, Runner async def main(): agent = Agent( name="Joker", instructions="You are a helpful assistant.", ) result = Runner.run_streamed(agent, input="Please tell me 5 jokes.") num_visible_event = 0 async for event in result.stream_events(): if event.type == "raw_response_event" and isinstance(event.data, ResponseTextDeltaEvent): print(event.data.delta, end="", flush=True) num_visible_event += 1 print(num_visible_event) if num_visible_event == 3: result.cancel() if __name__ == "__main__": asyncio.run(main()) ````
Configuration menu - View commit details
-
Copy full SHA for a113fea - Browse repository at this point
Copy the full SHA a113feaView commit details
Commits on Apr 24, 2025
-
Create to_json_dict for ModelSettings (#582)
Now that `ModelSettings` has `Reasoning`, a non-primitive object, `dataclasses.as_dict()` wont work. It will raise an error when you try to serialize (e.g. for tracing). This ensures the object is actually serializable.
Configuration menu - View commit details
-
Copy full SHA for 3755ea8 - Browse repository at this point
Copy the full SHA 3755ea8View commit details -
Prevent MCP ClientSession hang (#580)
Per https://modelcontextprotocol.io/specification/draft/basic/lifecycle#timeouts "Implementations SHOULD establish timeouts for all sent requests, to prevent hung connections and resource exhaustion. When the request has not received a success or error response within the timeout period, the sender SHOULD issue a cancellation notification for that request and stop waiting for a response. SDKs and other middleware SHOULD allow these timeouts to be configured on a per-request basis." I picked 5 seconds since that's the default for SSE
Configuration menu - View commit details
-
Copy full SHA for af80e3a - Browse repository at this point
Copy the full SHA af80e3aView commit details -
Fix stream error using LiteLLM (#589)
In response to issue #587 , I implemented a solution to first check if `refusal` and `usage` attributes exist in the `delta` object. I added a unit test similar to `test_openai_chatcompletions_stream.py`. Let me know if I should change something. --------- Co-authored-by: Rohan Mehta <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e11b822 - Browse repository at this point
Copy the full SHA e11b822View commit details -
Configuration menu - View commit details
-
Copy full SHA for 45eb41f - Browse repository at this point
Copy the full SHA 45eb41fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3bbc7c4 - Browse repository at this point
Copy the full SHA 3bbc7c4View commit details
Loading
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v0.0.12...v0.0.13