Skip to content

fix: missing ctx.llm_raw_usage in non-stream mode#12564

Merged
Revolyssup merged 1 commit into
apache:masterfrom
Revolyssup:revolyssup/llm-raw-usage
Aug 29, 2025
Merged

fix: missing ctx.llm_raw_usage in non-stream mode#12564
Revolyssup merged 1 commit into
apache:masterfrom
Revolyssup:revolyssup/llm-raw-usage

Conversation

@Revolyssup

@Revolyssup Revolyssup commented Aug 29, 2025

Copy link
Copy Markdown
Contributor

In the previously merged PR, ctx.llm_raw_usage was being set in the stream mode but missed in non stream mode.
https://github.com/apache/apisix/pull/12530/files

Checklist

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)

@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. bug Something isn't working labels Aug 29, 2025
@Revolyssup
Revolyssup merged commit 8850e9c into apache:master Aug 29, 2025
28 checks passed
@Revolyssup
Revolyssup deleted the revolyssup/llm-raw-usage branch August 29, 2025 07:55
jizhuozhi pushed a commit to jizhuozhi/apisix that referenced this pull request Oct 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants