mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #23933] [CLOSED] fix: inject stream_options for Anthropic OpenAI-compat endpoint to include usage in SSE #43075
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/23933
Author: @pvyswiss
Created: 4/21/2026
Status: ❌ Closed
Base:
main← Head:fix/inject-stream-options-anthropic📝 Commits (1)
aac5d2cfix: inject stream_options for Anthropic to include usage in SSE stream📊 Changes
1 file changed (+11 additions, -0 deletions)
View changed files
📝
backend/open_webui/routers/openai.py(+11 -0)📄 Description
Summary
Fixes #23927 (Ref: #23917 Bug 7)
stream_options: {"include_usage": true}for Anthropic streaming requests on the OpenAI-compat pathsetdefaultpreserves any client-provided value🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.