Merge branch 'main' of github.com:luispater/CLIProxyAPI

This commit is contained in:
Luis Pater
2025-09-03 00:16:04 +08:00

View File

@@ -362,6 +362,14 @@ func (c *OpenAICompatibilityClient) SendRawMessageStream(ctx context.Context, mo
for i := 0; i < len(lines); i++ { for i := 0; i < len(lines); i++ {
dataChan <- []byte(lines[i]) dataChan <- []byte(lines[i])
} }
} else if bytes.HasPrefix(line, dataUglyTag) {
if bytes.Equal(line, doneTag) {
break
}
lines := translator.Response(handlerType, c.Type(), newCtx, modelName, line[5:], &param)
for i := 0; i < len(lines); i++ {
dataChan <- []byte(lines[i])
}
} }
} }
} else { } else {