mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-09-20 18:46:38 +08:00
讯飞响应 设置sid
This commit is contained in:
parent
4c395352ff
commit
e916af9c56
@ -97,7 +97,7 @@ func responseXunfei2OpenAI(response *ChatResponse) *openai.TextResponse {
|
||||
FinishReason: constant.StopFinishReason,
|
||||
}
|
||||
fullTextResponse := openai.TextResponse{
|
||||
Id: fmt.Sprintf("chatcmpl-%s", random.GetUUID()),
|
||||
Id: response.Header.Sid,
|
||||
Object: "chat.completion",
|
||||
Created: helper.GetTimestamp(),
|
||||
Choices: []openai.TextResponseChoice{choice},
|
||||
|
Loading…
Reference in New Issue
Block a user