mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-12-16 13:05:57 +08:00
fix: better text phrasing
This commit is contained in:
@@ -278,6 +278,9 @@ func relayTextHelper(c *gin.Context, relayMode int) *OpenAIErrorWithStatusCode {
|
||||
common.SysError("invalid stream response: " + data)
|
||||
continue
|
||||
}
|
||||
if !strings.HasPrefix(data, "data:") {
|
||||
continue
|
||||
}
|
||||
dataChan <- data
|
||||
data = data[6:]
|
||||
if !strings.HasPrefix(data, "[DONE]") {
|
||||
|
||||
Reference in New Issue
Block a user