async_openai.types.errors.InvalidRequestError: -1 is less than the minimum of 0 - 'max_tokens'
Opened this issue · 1 comments
Kuchizu commented
async_openai.types.errors.InvalidRequestError: -1 is less than the minimum of 0 - 'max_tokens'
Kuchizu commented
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'