-
Notifications
You must be signed in to change notification settings - Fork 580
fix(openai): Token reporting #5406
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
base: master
Are you sure you want to change the base?
Conversation
Semver Impact of This PR🟢 Patch (bug fixes) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨Span Streaming
Bug Fixes 🐛Span Streaming
Other
Internal Changes 🔧Fastmcp
Mcp
Other
🤖 This preview updates automatically when you update the PR. |
Codecov Results 📊✅ 1763 passed | ⏭️ 166 skipped | Total: 1929 | Pass Rate: 91.39% | Execution Time: 3m 20s All tests are passing successfully. ❌ Patch coverage is 4.00%. Project has 11538 uncovered lines. Files with missing lines (172)
Generated by Codecov Action |
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.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
Description
Start counting tokens in the case that the
contentfield of an item in Completions or Responses input schemas contain a list of dictionaries, when the tiktoken fallback case is reached.Issues
Closes #5390
Reminders
tox -e linters.feat:,fix:,ref:,meta:)