refactor: remove unnecessary call to helper.Done and adjust data rendering in ClaudeChunkData

This commit is contained in:
CaIon
2025-05-04 17:35:45 +08:00
parent 48af027903
commit 419a056fbf
3 changed files with 3 additions and 5 deletions

View File

@@ -724,8 +724,6 @@ func OaiResponsesStreamHandler(c *gin.Context, resp *http.Response, info *relayc
return true
})
helper.Done(c)
if usage.CompletionTokens == 0 {
// 计算输出文本的 token 数量
tempStr := responseTextBuilder.String()