mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-02-03 13:00:52 +08:00
Merge branch 'main' of github.com:luispater/CLIProxyAPI
This commit is contained in:
@@ -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:], ¶m)
|
||||||
|
for i := 0; i < len(lines); i++ {
|
||||||
|
dataChan <- []byte(lines[i])
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user