Skip to content

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

Merged
deathbeam merged 1 commit into
CopilotC-Nvim:mainfrom
deathbeam:fix-gh-models
Apr 4, 2025
Merged

fix: handle invalid context window size in GitHub models#1094
deathbeam merged 1 commit into
CopilotC-Nvim:mainfrom
deathbeam:fix-gh-models

Conversation

@deathbeam

Copy link
Copy Markdown
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
@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