-
Notifications
You must be signed in to change notification settings - Fork 449
chore(openai): fix responses reasoning token metric tracking support for streaming #14072
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
sabrenner
wants to merge
6
commits into
main
Choose a base branch
from
sabrenner/use-get-attr-token-util
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+308
−37
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
cd9a503
fix
sabrenner 8cedce9
better fix specific to openai
sabrenner ea97f01
Merge branch 'main' into sabrenner/use-get-attr-token-util
sabrenner 376c1e8
test
sabrenner 2eeeef6
Merge branch 'sabrenner/use-get-attr-token-util' of github.com:DataDo…
sabrenner 5cdcc5d
scripts/compile-and-prune-test-requirements
sabrenner File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# | ||
# This file is autogenerated by pip-compile with Python 3.10 | ||
# by the following command: | ||
# | ||
# pip-compile --allow-unsafe --no-annotate .riot/requirements/1911f94.in | ||
# | ||
annotated-types==0.7.0 | ||
anyio==4.9.0 | ||
attrs==25.3.0 | ||
certifi==2025.7.14 | ||
charset-normalizer==3.4.2 | ||
coverage[toml]==7.9.2 | ||
distro==1.9.0 | ||
exceptiongroup==1.3.0 | ||
h11==0.16.0 | ||
httpcore==1.0.9 | ||
httpx==0.28.1 | ||
hypothesis==6.45.0 | ||
idna==3.10 | ||
iniconfig==2.1.0 | ||
jiter==0.10.0 | ||
mock==5.2.0 | ||
multidict==6.6.3 | ||
openai==1.66.0 | ||
opentracing==2.4.0 | ||
packaging==25.0 | ||
pillow==11.3.0 | ||
pluggy==1.6.0 | ||
propcache==0.3.2 | ||
pydantic==2.11.7 | ||
pydantic-core==2.33.2 | ||
pygments==2.19.2 | ||
pytest==8.4.1 | ||
pytest-asyncio==0.21.1 | ||
pytest-cov==6.2.1 | ||
pytest-mock==3.14.1 | ||
pytest-randomly==3.16.0 | ||
pyyaml==6.0.2 | ||
regex==2024.11.6 | ||
requests==2.32.4 | ||
sniffio==1.3.1 | ||
sortedcontainers==2.4.0 | ||
tiktoken==0.9.0 | ||
tomli==2.2.1 | ||
tqdm==4.67.1 | ||
typing-extensions==4.14.1 | ||
typing-inspection==0.4.1 | ||
urllib3==1.26.20 | ||
vcrpy==7.0.0 | ||
wrapt==1.17.2 | ||
yarl==1.20.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# | ||
# This file is autogenerated by pip-compile with Python 3.13 | ||
# by the following command: | ||
# | ||
# pip-compile --allow-unsafe --no-annotate .riot/requirements/1a0657d.in | ||
# | ||
annotated-types==0.7.0 | ||
anyio==4.9.0 | ||
attrs==25.3.0 | ||
certifi==2025.7.14 | ||
charset-normalizer==3.4.2 | ||
coverage[toml]==7.9.2 | ||
distro==1.9.0 | ||
h11==0.16.0 | ||
httpcore==1.0.9 | ||
httpx==0.28.1 | ||
hypothesis==6.45.0 | ||
idna==3.10 | ||
iniconfig==2.1.0 | ||
jiter==0.10.0 | ||
mock==5.2.0 | ||
multidict==6.6.3 | ||
openai==1.66.0 | ||
opentracing==2.4.0 | ||
packaging==25.0 | ||
pillow==11.3.0 | ||
pluggy==1.6.0 | ||
propcache==0.3.2 | ||
pydantic==2.11.7 | ||
pydantic-core==2.33.2 | ||
pygments==2.19.2 | ||
pytest==8.4.1 | ||
pytest-asyncio==0.21.1 | ||
pytest-cov==6.2.1 | ||
pytest-mock==3.14.1 | ||
pytest-randomly==3.16.0 | ||
pyyaml==6.0.2 | ||
regex==2024.11.6 | ||
requests==2.32.4 | ||
sniffio==1.3.1 | ||
sortedcontainers==2.4.0 | ||
tiktoken==0.9.0 | ||
tqdm==4.67.1 | ||
typing-extensions==4.14.1 | ||
typing-inspection==0.4.1 | ||
urllib3==1.26.20 | ||
vcrpy==7.0.0 | ||
wrapt==1.17.2 | ||
yarl==1.20.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# | ||
# This file is autogenerated by pip-compile with Python 3.12 | ||
# by the following command: | ||
# | ||
# pip-compile --allow-unsafe --no-annotate .riot/requirements/85ff44d.in | ||
# | ||
annotated-types==0.7.0 | ||
anyio==4.9.0 | ||
attrs==25.3.0 | ||
certifi==2025.7.14 | ||
charset-normalizer==3.4.2 | ||
coverage[toml]==7.9.2 | ||
distro==1.9.0 | ||
h11==0.16.0 | ||
httpcore==1.0.9 | ||
httpx==0.28.1 | ||
hypothesis==6.45.0 | ||
idna==3.10 | ||
iniconfig==2.1.0 | ||
jiter==0.10.0 | ||
mock==5.2.0 | ||
multidict==6.6.3 | ||
openai==1.66.0 | ||
opentracing==2.4.0 | ||
packaging==25.0 | ||
pillow==11.3.0 | ||
pluggy==1.6.0 | ||
propcache==0.3.2 | ||
pydantic==2.11.7 | ||
pydantic-core==2.33.2 | ||
pygments==2.19.2 | ||
pytest==8.4.1 | ||
pytest-asyncio==0.21.1 | ||
pytest-cov==6.2.1 | ||
pytest-mock==3.14.1 | ||
pytest-randomly==3.16.0 | ||
pyyaml==6.0.2 | ||
regex==2024.11.6 | ||
requests==2.32.4 | ||
sniffio==1.3.1 | ||
sortedcontainers==2.4.0 | ||
tiktoken==0.9.0 | ||
tqdm==4.67.1 | ||
typing-extensions==4.14.1 | ||
typing-inspection==0.4.1 | ||
urllib3==1.26.20 | ||
vcrpy==7.0.0 | ||
wrapt==1.17.2 | ||
yarl==1.20.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# | ||
# This file is autogenerated by pip-compile with Python 3.8 | ||
# by the following command: | ||
# | ||
# pip-compile --allow-unsafe --no-annotate .riot/requirements/b68c552.in | ||
# | ||
annotated-types==0.7.0 | ||
anyio==4.5.2 | ||
attrs==25.3.0 | ||
certifi==2025.7.14 | ||
charset-normalizer==3.4.2 | ||
coverage[toml]==7.6.1 | ||
distro==1.9.0 | ||
exceptiongroup==1.3.0 | ||
h11==0.16.0 | ||
httpcore==1.0.9 | ||
httpx==0.28.1 | ||
hypothesis==6.45.0 | ||
idna==3.10 | ||
importlib-metadata==8.5.0 | ||
iniconfig==2.1.0 | ||
jiter==0.9.1 | ||
mock==5.2.0 | ||
multidict==6.1.0 | ||
openai==1.66.0 | ||
opentracing==2.4.0 | ||
packaging==25.0 | ||
pillow==10.4.0 | ||
pluggy==1.5.0 | ||
propcache==0.2.0 | ||
pydantic==2.10.6 | ||
pydantic-core==2.27.2 | ||
pytest==8.3.5 | ||
pytest-asyncio==0.21.1 | ||
pytest-cov==5.0.0 | ||
pytest-mock==3.14.1 | ||
pytest-randomly==3.15.0 | ||
pyyaml==6.0.2 | ||
regex==2024.11.6 | ||
requests==2.32.4 | ||
sniffio==1.3.1 | ||
sortedcontainers==2.4.0 | ||
tiktoken==0.7.0 | ||
tomli==2.2.1 | ||
tqdm==4.67.1 | ||
typing-extensions==4.13.2 | ||
urllib3==1.26.20 | ||
vcrpy==6.0.2 | ||
wrapt==1.17.2 | ||
yarl==1.15.2 | ||
zipp==3.20.2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# | ||
# This file is autogenerated by pip-compile with Python 3.11 | ||
# by the following command: | ||
# | ||
# pip-compile --allow-unsafe --no-annotate .riot/requirements/c5399d2.in | ||
# | ||
annotated-types==0.7.0 | ||
anyio==4.9.0 | ||
attrs==25.3.0 | ||
certifi==2025.7.14 | ||
charset-normalizer==3.4.2 | ||
coverage[toml]==7.9.2 | ||
distro==1.9.0 | ||
h11==0.16.0 | ||
httpcore==1.0.9 | ||
httpx==0.28.1 | ||
hypothesis==6.45.0 | ||
idna==3.10 | ||
iniconfig==2.1.0 | ||
jiter==0.10.0 | ||
mock==5.2.0 | ||
multidict==6.6.3 | ||
openai==1.66.0 | ||
opentracing==2.4.0 | ||
packaging==25.0 | ||
pillow==11.3.0 | ||
pluggy==1.6.0 | ||
propcache==0.3.2 | ||
pydantic==2.11.7 | ||
pydantic-core==2.33.2 | ||
pygments==2.19.2 | ||
pytest==8.4.1 | ||
pytest-asyncio==0.21.1 | ||
pytest-cov==6.2.1 | ||
pytest-mock==3.14.1 | ||
pytest-randomly==3.16.0 | ||
pyyaml==6.0.2 | ||
regex==2024.11.6 | ||
requests==2.32.4 | ||
sniffio==1.3.1 | ||
sortedcontainers==2.4.0 | ||
tiktoken==0.9.0 | ||
tqdm==4.67.1 | ||
typing-extensions==4.14.1 | ||
typing-inspection==0.4.1 | ||
urllib3==1.26.20 | ||
vcrpy==7.0.0 | ||
wrapt==1.17.2 | ||
yarl==1.20.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# | ||
# This file is autogenerated by pip-compile with Python 3.9 | ||
# by the following command: | ||
# | ||
# pip-compile --allow-unsafe --no-annotate .riot/requirements/e9c67e1.in | ||
# | ||
annotated-types==0.7.0 | ||
anyio==4.9.0 | ||
attrs==25.3.0 | ||
certifi==2025.7.14 | ||
charset-normalizer==3.4.2 | ||
coverage[toml]==7.9.2 | ||
distro==1.9.0 | ||
exceptiongroup==1.3.0 | ||
h11==0.16.0 | ||
httpcore==1.0.9 | ||
httpx==0.28.1 | ||
hypothesis==6.45.0 | ||
idna==3.10 | ||
importlib-metadata==8.7.0 | ||
iniconfig==2.1.0 | ||
jiter==0.10.0 | ||
mock==5.2.0 | ||
multidict==6.6.3 | ||
openai==1.66.0 | ||
opentracing==2.4.0 | ||
packaging==25.0 | ||
pillow==11.3.0 | ||
pluggy==1.6.0 | ||
propcache==0.3.2 | ||
pydantic==2.11.7 | ||
pydantic-core==2.33.2 | ||
pygments==2.19.2 | ||
pytest==8.4.1 | ||
pytest-asyncio==0.21.1 | ||
pytest-cov==6.2.1 | ||
pytest-mock==3.14.1 | ||
pytest-randomly==3.16.0 | ||
pyyaml==6.0.2 | ||
regex==2024.11.6 | ||
requests==2.32.4 | ||
sniffio==1.3.1 | ||
sortedcontainers==2.4.0 | ||
tiktoken==0.9.0 | ||
tomli==2.2.1 | ||
tqdm==4.67.1 | ||
typing-extensions==4.14.1 | ||
typing-inspection==0.4.1 | ||
urllib3==1.26.20 | ||
vcrpy==7.0.0 | ||
wrapt==1.17.2 | ||
yarl==1.20.1 | ||
zipp==3.23.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
metadata differs too much between versions for whatever reasons. we only really care about asserting a) no error, and b) specific properties like reasoning summary and assistant content are set