mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-14 12:23:41 +08:00
讯飞响应 sid 错误码提示返回
This commit is contained in:
@@ -39,7 +39,9 @@ func requestOpenAI2Xunfei(request model.GeneralOpenAIRequest, xunfeiAppId string
|
||||
}
|
||||
xunfeiRequest := ChatRequest{}
|
||||
xunfeiRequest.Header.AppId = xunfeiAppId
|
||||
xunfeiRequest.Header.PatchId = xunfeiPatchId
|
||||
if xunfeiPatchId != "" {
|
||||
xunfeiRequest.Header.PatchId = []string{xunfeiPatchId}
|
||||
}
|
||||
xunfeiRequest.Parameter.Chat.Domain = domain
|
||||
xunfeiRequest.Parameter.Chat.Temperature = request.Temperature
|
||||
xunfeiRequest.Parameter.Chat.TopK = request.N
|
||||
|
||||
Reference in New Issue
Block a user