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

async_openai.types.errors.InvalidRequestError: -1 is less than the minimum of 0 - 'max_tokens' #6

Open
Kuchizu opened this issue Apr 22, 2023 · 1 comment

Comments

@Kuchizu
Copy link

Kuchizu commented Apr 22, 2023

async_openai.types.errors.InvalidRequestError: -1 is less than the minimum of 0 - 'max_tokens'

@Kuchizu
Copy link
Author

Kuchizu commented Apr 22, 2023

Traceback (most recent call last):
  File "/home/kuchizu/Desktop/123123.py", line 31, in <module>
    result: CompletionResponse = OpenAI.completions.create(
  File "/home/kuchizu/.local/lib/python3.10/site-packages/async_openai/schemas/completions.py", line 377, in create
    return super().create(input_object=input_object, **kwargs)
  File "/home/kuchizu/.local/lib/python3.10/site-packages/async_openai/types/routes.py", line 130, in create
    data = self.handle_response(api_response)
  File "/home/kuchizu/.local/lib/python3.10/site-packages/async_openai/types/routes.py", line 797, in handle_response
    raise error_handler(
async_openai.types.errors.InvalidRequestError:  -1 is less than the minimum of 0 - 'max_tokens'

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

No branches or pull requests

1 participant