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

Skip to content

fix NaN usage tokens in agents extension (fixes #99) #101

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

Merged
merged 2 commits into from
Jun 16, 2025

Conversation

dkundel-openai
Copy link
Collaborator

@dkundel-openai dkundel-openai commented Jun 13, 2025

Summary

  • handle NaN usage tokens in AiSdkModel
  • test NaN usage handling for both generate and stream paths

Fixes #99

Testing

  • pnpm -r build-check
  • pnpm build
  • CI=1 pnpm test
  • pnpm lint

https://chatgpt.com/codex/tasks/task_i_684c36bb17708331880b7b82ceb9ea26

@seratch seratch changed the title fix NaN usage tokens in agents extension fix NaN usage tokens in agents extension (fixes #99) Jun 13, 2025
Copy link

changeset-bot bot commented Jun 16, 2025

🦋 Changeset detected

Latest commit: 4139b2d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@openai/agents-extensions Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@dkundel-openai dkundel-openai merged commit ef64938 into main Jun 16, 2025
5 checks passed
@dkundel-openai dkundel-openai deleted the codex/fix-nan-handling-in-usage-tokens branch June 16, 2025 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NaN in part.usage.promptTokens causes exception in @openai/agents-extensions
2 participants