Skip to content
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

stream.Err always nil #112

Open
wcu1117 opened this issue Nov 6, 2024 · 2 comments
Open

stream.Err always nil #112

wcu1117 opened this issue Nov 6, 2024 · 2 comments

Comments

@wcu1117
Copy link

wcu1117 commented Nov 6, 2024

stream := c.client.Chat.Completions.NewStreaming(ctx, params) if err := stream.Err(); err != nil { panic(err) }

When I debug the code in the packages/ssestream/streaming.go func (s *eventStreamDecoder) Next() bool,
I get the error message.it just don't return.

@jacobzim-stl
Copy link
Collaborator

Hmm, thanks for raising, I'll try to take a look. Would you mind sharing a bit more of your code?

@wcu1117
Copy link
Author

wcu1117 commented Nov 8, 2024

Hmm, thanks for raising, I'll try to take a look. Would you mind sharing a bit more of your code?

"I can't find the code; I just remember about the tool's function call. When I forget to post the function call parameter, it returns nil, but it has a fatal error.

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

No branches or pull requests

2 participants