Skip to content

Fix error traces in console for Sonnet with Copilot #2238

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
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dividedmind
Copy link
Collaborator

Add handling for unknown models to prevent error traces from being logged in the console when using Sonnet with Copilot. This change improves the user experience by falling back to an estimated token count instead of displaying stack traces.

Fixes #2232

Fixes Stack trace / error with Copilot + Sonnet related to counting tokens #2232
@dividedmind dividedmind self-assigned this Feb 12, 2025
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.

Stack trace / error with Copilot + Sonnet related to counting tokens
1 participant