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

openai streamFunc not real stream #1091

Open
FunkyYang opened this issue Dec 19, 2024 · 1 comment
Open

openai streamFunc not real stream #1091

FunkyYang opened this issue Dec 19, 2024 · 1 comment

Comments

@FunkyYang
Copy link

FunkyYang commented Dec 19, 2024

I used

   	chains.WithStreamingFunc(func(ctx context.Context, chunk []byte) error {
   		log.Printf("time:%s,chunk:%s", time.Now().Format("15:04:05"), string(chunk))
   		return nil
   	})

and observe that the messages are spited out at the same time?and why?

@lifejwang11
Copy link
Contributor

please give more details about this code. @FunkyYang

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