chore: gopool

This commit is contained in:
CalciumIon
2024-07-19 01:07:37 +08:00
parent 261ba5a813
commit d06018cd3f
14 changed files with 77 additions and 115 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ func (a *Adaptor) DoResponse(c *gin.Context, resp *http.Response, info *relaycom
err, usage = aliEmbeddingHandler(c, resp)
default:
if info.IsStream {
err, usage = openai.OpenaiStreamHandler(c, resp, info)
err, usage = openai.OaiStreamHandler(c, resp, info)
} else {
err, usage = openai.OpenaiHandler(c, resp, info.PromptTokens, info.UpstreamModelName)
}