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

Are truncated results expected? #7

Open
PySimpleGUI opened this issue Feb 8, 2023 · 3 comments
Open

Are truncated results expected? #7

PySimpleGUI opened this issue Feb 8, 2023 · 3 comments

Comments

@PySimpleGUI
Copy link

I've noticed that long answers get cut off. Is this a limitation of the OpenAI SDK or is there a bug in the code somewhere?

MaxSSD added a commit that referenced this issue Feb 9, 2023
@MaxSSD
Copy link
Owner

MaxSSD commented Feb 9, 2023

I am getting multiple different errors across python and javas recently, maybe something is cooking with the api.

openai.error.ServiceUnavailableError: The server is overloaded or not ready yet.

ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))

@MaxSSD
Copy link
Owner

MaxSSD commented Feb 9, 2023

I removed the slider which was causing the issue, but now the requested token number is always 1 higher than the required number.

openai.error.InvalidRequestError: This model's maximum context length is 4097 tokens, however you requested 4098 tokens (11 in your prompt; 4087 for the completion). Please reduce your prompt; or completion length.

@PySimpleGUI
Copy link
Author

I'm still running an older version... one that I posted here in an issue, so I don't have a slider. This is basically the same as the original. The text written to answers.txt is also truncated. I've not used the program for image, only text. Maybe I should simlify things way down to just the text portion.

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

2 participants