|
@@ -95,7 +95,7 @@ func DoChatCompletionsStream(ctx context.Context, client *openai.Client, chatInf
|
|
flusher.Flush()
|
|
flusher.Flush()
|
|
//time.Sleep(1 * time.Millisecond)
|
|
//time.Sleep(1 * time.Millisecond)
|
|
}
|
|
}
|
|
- fmt.Fprintf(hw, "event:%s\ndata:%s\n\n", "answer", "[DONE]")
|
|
|
|
|
|
+ fmt.Fprintf(hw, "data:%s\n\n", "[DONE]")
|
|
flusher.Flush()
|
|
flusher.Flush()
|
|
httpx.Ok(hw)
|
|
httpx.Ok(hw)
|
|
|
|
|