fix(devops): correct CompletionTokens assignment typo in callback handler#783
Closed
SKDG042 wants to merge 1 commit intocloudwego:mainfrom
Closed
fix(devops): correct CompletionTokens assignment typo in callback handler#783SKDG042 wants to merge 1 commit intocloudwego:mainfrom
SKDG042 wants to merge 1 commit intocloudwego:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
fix
Check the PR title.
(Optional) Translate the PR title into Chinese.
CompletionTokens 被错误赋值成 PromptTokens
(Optional) More detailed description for this PR(en: English/zh: Chinese).
en: In
devops/internal/service/call_option.go:143,CompletionTokenswas incorrectly assignedext.TokenUsage.PromptTokensdue to a copy-paste error. This causes the completion token count in DevOps debug metrics to always equal the prompt token count, making token usage statistics unreliable for billing analysis and performance monitoring.zh(optional): 在
devops/internal/service/call_option.go:143中,CompletionTokens被错误地赋值为ext.TokenUsage.PromptTokens。这导致 DevOps 调试指标中的completion token数量永远等于prompt token数量,使得 token 使用统计在计费分析和性能监控场景下不可信。(Optional) Which issue(s) this PR fixes:
(optional) The PR that updates user documentation: