From e916af9c566aa6d8250e4e1bc15dc99a3dad7e1d Mon Sep 17 00:00:00 2001 From: ybyang Date: Mon, 25 Nov 2024 17:05:33 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=AF=E9=A3=9E=E5=93=8D=E5=BA=94=20?= =?UTF-8?q?=E8=AE=BE=E7=BD=AEsid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- relay/adaptor/xunfei/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/relay/adaptor/xunfei/main.go b/relay/adaptor/xunfei/main.go index cadc4c48..6f100e8b 100644 --- a/relay/adaptor/xunfei/main.go +++ b/relay/adaptor/xunfei/main.go @@ -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},