go-openai icon indicating copy to clipboard operation
go-openai copied to clipboard

CreateChatCompletionStream Get err is nil

Open smile-magic opened this issue 1 year ago • 1 comments

My apikey request openai returns an error message, but stream.Recv() err is nil

{
    "error": {
        "message": "Your access was terminated due to violation of our policies, please check your email for more information. If you believe this is in error and would like to appeal, please contact [email protected].",
        "type": "access_terminated",
        "param": null,
        "code": null
    }
}

smile-magic avatar Mar 08 '23 16:03 smile-magic

@smile-magic this is fixed in the new version, please try upgrading: go get -u github.com/sashabaranov/[email protected]

cc @liushuangls

sashabaranov avatar Mar 22 '23 05:03 sashabaranov