boweniac пре 1 месец
родитељ
комит
f649c76a32
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      internal/utils/compapi/func.go

+ 1 - 1
internal/utils/compapi/func.go

@@ -95,7 +95,7 @@ func DoChatCompletionsStream(ctx context.Context, client *openai.Client, chatInf
 		flusher.Flush()
 		//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()
 	httpx.Ok(hw)