添加国外服务器中转ai请求数据,添加gemini

This commit is contained in:
junleea 2025-05-13 13:31:39 +08:00
parent 62e6ef7eb0
commit d004afada8
1 changed files with 1 additions and 1 deletions

View File

@ -235,7 +235,7 @@ func OpenAIForeignAI(modelParam proto.ModelParam, imCtx *proto.IMParamContext, p
if _, ok := acc.JustFinishedToolCall(); ok {
chunk.Created = -1 // 这里由于没有返回结束标志,所以用该字段来判断
}
DoOpenAIForeignAICallBack(chunk, modelParam, imCtx, platform)
go DoOpenAIForeignAICallBack(chunk, modelParam, imCtx, platform)
}
if stream.Err() != nil {
log.Printf("openai_%s stream err:%v\n", platform, stream.Err())