mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-23 18:41:28 -05:00
[PR #10362] [MERGED] **fix** Added OpenAI usage standard keys to API signature #93546
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/10362
Author: @Seniorsimo
Created: 2/19/2025
Status: ✅ Merged
Merged: 2/19/2025
Merged by: @tjbck
Base:
dev← Head:usage-openai-compatible📝 Commits (1)
074ce35Added OpenAI usagerequested keys📊 Changes
1 file changed (+26 additions, -51 deletions)
View changed files
📝
backend/open_webui/utils/response.py(+26 -51)📄 Description
Pull Request Checklist
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Added
usagethe standard key required by a compatible OpenAI exposed endpointconvert_ollama_usage_to_openaifor the usage fieldAdditional Information
With this all previus usage keys are still in place. Only added the few ones that could be requested by any tool using the OpenAI standard.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.