Skip to content
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

fix MaxCompletionTokens typo #862

Merged
merged 5 commits into from
Oct 3, 2024
Merged

Conversation

l-winston
Copy link
Contributor

Currently API calls to o1 models are broken due to a typo in the json tag of ChatCompletionRequest

This PR corrects the spelling of MaxCompletionsTokens to MaxCompletionTokens and also fixes the json tag max_completion_tokens.

There already exists a similar PR but it doesn't fix all occurrences of the typo.

@l-winston l-winston changed the title Fix MaxCompletionTokens typo fix MaxCompletionTokens typo Sep 24, 2024
Copy link

codecov bot commented Sep 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.04%. Comparing base (774fc9d) to head (0d4db46).
Report is 58 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #862      +/-   ##
==========================================
+ Coverage   98.46%   99.04%   +0.58%     
==========================================
  Files          24       26       +2     
  Lines        1364     1461      +97     
==========================================
+ Hits         1343     1447     +104     
+ Misses         15        8       -7     
  Partials        6        6              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@l-winston
Copy link
Contributor Author

hey @sashabaranov could you take a look at this PR 😁

@sashabaranov
Copy link
Owner

Thank you, it seems like this is fixed in an earlier PR! #860

@l-winston
Copy link
Contributor Author

@sashabaranov that PR did fix the json tag but leaves many typos, which I also fixed.

@sashabaranov
Copy link
Owner

Ah, got it, thanks!

chat.go Outdated Show resolved Hide resolved
@l-winston
Copy link
Contributor Author

@sashabaranov fixed

@sashabaranov sashabaranov merged commit bac7d59 into sashabaranov:master Oct 3, 2024
3 checks passed
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.

2 participants