添加国外服务器中转ai请求数据,添加gemini
This commit is contained in:
parent
62e6ef7eb0
commit
d004afada8
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Reference in New Issue