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

ensure generated_tokens is an integer #42

Merged
merged 1 commit into from
Nov 6, 2023
Merged

ensure generated_tokens is an integer #42

merged 1 commit into from
Nov 6, 2023

Conversation

olinguyen
Copy link

@olinguyen olinguyen commented Oct 31, 2023

The following error is thrown because generated_tokens are returned as float and not integer:

completion_tokens
  Input should be a valid integer, got a number with a fractional part [type=int_from_float, input_value=37.25, input_type=float]

@5c0rp
Copy link

5c0rp commented Nov 1, 2023

this PR will solve the issue #40

@philschmid
Copy link
Owner

Thank you for fixing this!

@philschmid philschmid merged commit 3f4be38 into philschmid:main Nov 6, 2023
2 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.

3 participants