You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
panic: runtime error: index out of range [0] with length 0
goroutine 1 [running]:
main.main()
/Users/aryan/Desktop/go-openai/examples/completion/main.go:60 +0x4b0
exit status 2
Expected behavior
The condition to his the EOF error and stop the streaming process.
Environment (please complete the following information):
go-openai version: master
Go version: go version go1.22.3 darwin/arm64
OpenAI API version: v1
The text was updated successfully, but these errors were encountered:
To Reproduce
When streamed chat completion with request having StreamOptions defined as -
breaks for last chunk-
Expected behavior
The condition to his the EOF error and stop the streaming process.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: