这是indexloc提供的服务,不要输入任何密码
Skip to content

Handle BigInt in message response #4110

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

Conversation

shatfield4
Copy link
Collaborator

@shatfield4 shatfield4 commented Jul 9, 2025

Pull Request Type

  • ✨ feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

Relevant Issues

resolves #4105

What is in this change?

  • Handle BigInts from LLM providers like OpenRouter where it may return metrics as BigInts
  • Add jest test to test new safeJSONStringify util

Additional Information

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

@shatfield4 shatfield4 changed the title wip handle bigints in message response Handle BigInt in message response Jul 9, 2025
@shatfield4 shatfield4 marked this pull request as ready for review July 9, 2025 01:20
@timothycarambat timothycarambat merged commit 5d60047 into master Jul 10, 2025
@timothycarambat timothycarambat deleted the 4105-bug-bigint-serialization-error-with-openrouter-llms-causing-chat-failures branch July 10, 2025 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG]: BigInt Serialization Error with OpenRouter LLMs causing chat failures
2 participants