From 955816dd0473feb6d197a88245cf9068a40e5f1d Mon Sep 17 00:00:00 2001 From: Sakurasan <26715255+Sakurasan@users.noreply.github.com> Date: Thu, 17 Oct 2024 02:10:27 +0800 Subject: [PATCH] up --- pkg/openai/chat.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/openai/chat.go b/pkg/openai/chat.go index c244120..ff5958d 100644 --- a/pkg/openai/chat.go +++ b/pkg/openai/chat.go @@ -205,9 +205,9 @@ func ChatProxy(c *gin.Context, chatReq *ChatCompletionRequest) { case "gpt-4o", "gpt-4o-mini", "chatgpt-4o-latest": chatReq.MaxTokens = 16384 } - if chatReq.Stream == true { - chatReq.StreamOptions.IncludeUsage = true - } + // if chatReq.Stream == true { + // chatReq.StreamOptions.IncludeUsage = true + // } usagelog.PromptCount = tokenizer.NumTokensFromStr(prompt, chatReq.Model)