-
Notifications
You must be signed in to change notification settings - Fork 250
Closed
Description
I am using the code provided in the example for assistant streaming:
openai-go/examples/assistant-streaming/main.go
Lines 56 to 67 in 0ab80ee
| stream := client.Beta.Threads.Runs.NewStreaming(ctx, thread.ID, openai.BetaThreadRunNewParams{ | |
| AssistantID: openai.String(assistant.ID), | |
| Instructions: openai.String("Please address the user as Jane Doe. The user has a premium account."), | |
| }) | |
| if err != nil { | |
| panic(err) | |
| } | |
| for stream.Next() { | |
| evt := stream.Current() | |
| println(fmt.Sprintf("%T", evt.Data)) | |
| } |
And I get a single api.Run event and then the loop exits and code finished. Is this a bug? Or am I doing something wrong?
Metadata
Metadata
Assignees
Labels
No labels