Hello, when I make requests using the stream mode of the gpt-3.5-turbo-0613 model, approximately 20% of the requests receive an error midway through the stream: “http2: server sent GOAWAY and closed the connection; LastStreamID=1153, ErrCode=PROTOCOL_ERROR, debug=”“”, with Golang as the programming language used. Could you tell me what might be the potential cause of this error?
Hi and welcome to the Developer Forum!
Which library is Glang using or are you building your own post requests ands handling the SSE’s yourself?
I use this library: sashabaranov/go-openai
Ok, I think it would be a good idea to post on their github issue tracker, the problem is this looks like an issue with their code and not the OpenAI API.
It is strange that the occurrence time of this issue is 2023-09-22, but the repository was not updated at that time.
It could absolutely be due to a change made on OpenAI’s end. But if you consider that those changes may be part of a product change or upgrade, then it’s the task of the repo creator to edit their code, or as it’s open source… anyone can edit the code to fix the issue.
Thank you, I will investigate what changes in OpenAI may have caused the issue.