-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
emptyMessagesLimit and Stream error #71
Comments
@vadim-ivlev bumped this limit to 300 in #72, please re-try after doing You may also want to treat if errors.Is(err, gogpt.ErrTooManyEmptyStreamMessages) {
// ... handle stream end
} |
Thanks for a quick response. Will try it in a few hours.
…On Tue, 14 Feb 2023, 17:30 sashabaranov, ***@***.***> wrote:
@vadim-ivlev <https://github.com/vadim-ivlev> bumped this limit to 300 in
#72 <#72>, please re-try
after doing go get -u github.com/sashabaranov/go-gpt3.
You may also want to treat ErrTooManyEmptyStreamMessages as the of the
stream e.g.
if errors.is(err, gogpt.ErrTooManyEmptyStreamMessages) {
// ... handle stream end
}
—
Reply to this email directly, view it on GitHub
<#71 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAXDFQAJAQSV6CBTKHSB5STWXO6KFANCNFSM6AAAAAAU32KQYE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hi Sasha, |
sashabaranov
added a commit
that referenced
this issue
Feb 19, 2023
sashabaranov
added a commit
that referenced
this issue
Feb 20, 2023
* Configurable Transport (#75) * new functions to allow HTTPClient configuration * updated go.mod for testing from remote * updated go.mod for remote testing * revert go.mod replace directives * Fixed NewOrgClientWithTransport comment * Make client fully configurable * make empty messages limit configurable #70 #71 * make auth token private in config * add docs * lint --------- Co-authored-by: Michael Fox <m.will.fox@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
Thanks for your excellent work.
Yesterday, doing calls to
CreateCompletionStream()
function I started getting the following error:Stream error: stream has sent too many empty messages
Requests were like this:
Seems like it's related to
emptyMessagesLimit = 100
in stream.go.My code:
I copied it from your example. Before yesterday it worked fine. Today this error seems to persist.
Could you please check it or make the variable configurable?
Thanks again.
The text was updated successfully, but these errors were encountered: