Skip to content

fix: handle invalid context window size in GitHub models #1094

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 1 commit into from
Apr 4, 2025

Conversation

deathbeam
Copy link
Collaborator

Before the code was assuming that context window = input tokens, but its total. Also some models arent reporting the input and output correctly, so use default when result is 0

Before the code was assuming that context window = input tokens, but its total.
Also some models arent reporting the input and output correctly, so use default when
result is 0
@deathbeam deathbeam added the bug Something isn't working label Apr 4, 2025
@deathbeam deathbeam merged commit 00bf27e into CopilotC-Nvim:main Apr 4, 2025
4 checks passed
@deathbeam deathbeam deleted the fix-gh-models branch April 4, 2025 00:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant