up
This commit is contained in:
@@ -488,7 +488,7 @@ func Translate(c *gin.Context, chatreq *openai.ChatCompletionRequest) {
|
|||||||
contentCh := fetchResponseContent(c, reader)
|
contentCh := fetchResponseContent(c, reader)
|
||||||
|
|
||||||
for content := range contentCh {
|
for content := range contentCh {
|
||||||
writer.WriteString(content)
|
writer.WriteString(content + "\n")
|
||||||
writer.Flush()
|
writer.Flush()
|
||||||
}
|
}
|
||||||
writer.WriteString("[DONE]")
|
writer.WriteString("[DONE]")
|
||||||
|
|||||||
Reference in New Issue
Block a user