Skip to content

Conversation

@ShubyM
Copy link
Collaborator

@ShubyM ShubyM commented Sep 17, 2025

Addresses #540, this is a stop gap solution until openai-go addresses the issue upstream

// flight.
func addChunkSafely(acc *openai.ChatCompletionAccumulator, chunk openai.ChatCompletionChunk) (added bool, err error) {
defer func() {
if r := recover(); r != nil {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets hold for now. I think we can wait for this to be fixed in the upstream.

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

Successfully merging this pull request may close these issues.

2 participants