semantic-kernel
semantic-kernel copied to clipboard
Python: Add OpenAI's sequence_number attribute to unit tests based on their latest package
Motivation and Context
OpenAI release a new python package (1.81.0) which has some updates to the underlying Pydantic models for the Responses API. We need to pull in a new change for ResponseOutputItemDoneEvent, ResponseOutputItemAddedEvent, and ResponseTextDeltaEvent for streaming invocation which now has sequence_number attribute.
Description
Bring in a change from OpenAI's Python SDK from v1.81.0 related to SK's OpenAIResponsesAgent.
Contribution Checklist
- [X] The code builds clean without any errors or warnings
- [X] The PR follows the SK Contribution Guidelines and the pre-submission formatting script raises no violations
- [X] All unit tests pass, and I have added new tests where possible
- [X] I didn't break anyone :smile:
Python Unit Test Overview
| Tests | Skipped | Failures | Errors | Time |
|---|---|---|---|---|
| 3595 | 18 :zzz: | 0 :x: | 0 :fire: | 1m 39s :stopwatch: |