[PR #12223] [CLOSED] Bugfix/model nessage credit costs missing #38500

Closed
opened 2026-04-25 11:29:46 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/12223
Author: @philszalay
Created: 3/31/2025
Status: Closed

Base: mainHead: bugfix/model_nessage_credit_costs_missing


📝 Commits (10+)

  • 07a6fbb Initial commit, user-company segregation
  • 641cf04 Make Dockerfile and docker compose ready for build
  • 903226a Finish customer segregation, docker setup
  • c49a777 Add token balance column to company table
  • e95b753 Add company model
  • 6632b7c Prepare for token counting
  • 057d063 Implement Credit Usage
  • 0ce3584 Move openai.py to beyond_the_loop module
  • 9ee8761 Implement Usage Statistics
  • 7ad498b Cap Output Tokens

📊 Changes

90 files changed (+3481 additions, -1331 deletions)

View changed files

.github/workflows/build-release.yml (+0 -72)
.github/workflows/codespell.disabled (+0 -25)
.github/workflows/deploy-to-hf-spaces.yml (+0 -63)
.github/workflows/docker-build-push.yml (+178 -0)
.github/workflows/docker-build.yaml (+0 -477)
.github/workflows/format-backend.yaml (+0 -39)
.github/workflows/format-build-frontend.yaml (+0 -57)
.github/workflows/integration-test.disabled (+0 -255)
.github/workflows/lint-backend.disabled (+0 -27)
.github/workflows/lint-frontend.disabled (+0 -21)
.github/workflows/release-pypi.yml (+0 -32)
📝 Dockerfile (+4 -1)
backend/beyond_the_loop/dev.sh (+12 -0)
backend/beyond_the_loop/models/companies.py (+237 -0)
backend/beyond_the_loop/models/completions.py (+88 -0)
backend/beyond_the_loop/models/model_message_credit_costs.py (+71 -0)
📝 backend/beyond_the_loop/models/models.py (+21 -16)
backend/beyond_the_loop/models/stripe_payment_histories.py (+86 -0)
📝 backend/beyond_the_loop/models/users.py (+26 -5)
backend/beyond_the_loop/routers/analytics.py (+470 -0)

...and 70 more files

📄 Description

Pull Request Checklist

Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.

Before submitting, make sure you've checked the following:

  • Target branch: Please verify that the pull request targets the dev branch.
  • Description: Provide a concise description of the changes made in this pull request.
  • Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
  • Documentation: Have you updated relevant documentation Open WebUI Docs, or other documentation sources?
  • Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
  • Testing: Have you written and run sufficient tests for validating the changes?
  • Code review: Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards?
  • Prefix: To cleary categorize this pull request, prefix the pull request title, using one of the following:
    • BREAKING CHANGE: Significant changes that may affect compatibility
    • build: Changes that affect the build system or external dependencies
    • ci: Changes to our continuous integration processes or workflows
    • chore: Refactor, cleanup, or other non-functional code changes
    • docs: Documentation update or addition
    • feat: Introduces a new feature or enhancement to the codebase
    • fix: Bug fix or error correction
    • i18n: Internationalization or localization changes
    • perf: Performance improvement
    • refactor: Code restructuring for better maintainability, readability, or scalability
    • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc.)
    • test: Adding missing tests or correcting existing tests
    • WIP: Work in progress, a temporary label for incomplete or ongoing work

Changelog Entry

Description

  • [Concisely describe the changes made in this pull request, including any relevant motivation and impact (e.g., fixing a bug, adding a feature, or improving performance)]

Added

  • [List any new features, functionalities, or additions]

Changed

  • [List any changes, updates, refactorings, or optimizations]

Deprecated

  • [List any deprecated functionality or features that have been removed]

Removed

  • [List any removed features, files, or functionalities]

Fixed

  • [List any fixes, corrections, or bug fixes]

Security

  • [List any new or updated security-related changes, including vulnerability fixes]

Breaking Changes

  • BREAKING CHANGE: [List any breaking changes affecting compatibility or functionality]

Additional Information

  • [Insert any additional context, notes, or explanations for the changes]
    • [Reference any related issues, commits, or other relevant information]

Screenshots or Videos

  • [Attach any relevant screenshots or videos demonstrating the changes]

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/12223 **Author:** [@philszalay](https://github.com/philszalay) **Created:** 3/31/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `bugfix/model_nessage_credit_costs_missing` --- ### 📝 Commits (10+) - [`07a6fbb`](https://github.com/open-webui/open-webui/commit/07a6fbbb5f8a53015d03e8eae97efe2dd466eace) Initial commit, user-company segregation - [`641cf04`](https://github.com/open-webui/open-webui/commit/641cf04a6e012bed0df50bf4ff4735005f5e5cf6) Make Dockerfile and docker compose ready for build - [`903226a`](https://github.com/open-webui/open-webui/commit/903226a7bfd83436c48974d921cb5e57d83b139e) Finish customer segregation, docker setup - [`c49a777`](https://github.com/open-webui/open-webui/commit/c49a7776e94a41ff4b8a7cf5301c74fa8efa4b1b) Add token balance column to company table - [`e95b753`](https://github.com/open-webui/open-webui/commit/e95b753e71aff2e5f46b7be163bfc303c4b26d7d) Add company model - [`6632b7c`](https://github.com/open-webui/open-webui/commit/6632b7cd9a4c69bf3898c1163f6ad19818994c26) Prepare for token counting - [`057d063`](https://github.com/open-webui/open-webui/commit/057d063d814b7e57f213906b972d067cf889b870) Implement Credit Usage - [`0ce3584`](https://github.com/open-webui/open-webui/commit/0ce358451638ae0b4bc979ad10a8db6d698533bc) Move openai.py to beyond_the_loop module - [`9ee8761`](https://github.com/open-webui/open-webui/commit/9ee8761b8bb331c4c3a71e32946fa94deb0d79f9) Implement Usage Statistics - [`7ad498b`](https://github.com/open-webui/open-webui/commit/7ad498bfda024a22072e5d0a334a8954a36f70fd) Cap Output Tokens ### 📊 Changes **90 files changed** (+3481 additions, -1331 deletions) <details> <summary>View changed files</summary> ➖ `.github/workflows/build-release.yml` (+0 -72) ➖ `.github/workflows/codespell.disabled` (+0 -25) ➖ `.github/workflows/deploy-to-hf-spaces.yml` (+0 -63) ➕ `.github/workflows/docker-build-push.yml` (+178 -0) ➖ `.github/workflows/docker-build.yaml` (+0 -477) ➖ `.github/workflows/format-backend.yaml` (+0 -39) ➖ `.github/workflows/format-build-frontend.yaml` (+0 -57) ➖ `.github/workflows/integration-test.disabled` (+0 -255) ➖ `.github/workflows/lint-backend.disabled` (+0 -27) ➖ `.github/workflows/lint-frontend.disabled` (+0 -21) ➖ `.github/workflows/release-pypi.yml` (+0 -32) 📝 `Dockerfile` (+4 -1) ➕ `backend/beyond_the_loop/dev.sh` (+12 -0) ➕ `backend/beyond_the_loop/models/companies.py` (+237 -0) ➕ `backend/beyond_the_loop/models/completions.py` (+88 -0) ➕ `backend/beyond_the_loop/models/model_message_credit_costs.py` (+71 -0) 📝 `backend/beyond_the_loop/models/models.py` (+21 -16) ➕ `backend/beyond_the_loop/models/stripe_payment_histories.py` (+86 -0) 📝 `backend/beyond_the_loop/models/users.py` (+26 -5) ➕ `backend/beyond_the_loop/routers/analytics.py` (+470 -0) _...and 70 more files_ </details> ### 📄 Description # Pull Request Checklist ### Note to first-time contributors: Please open a discussion post in [Discussions](https://github.com/open-webui/open-webui/discussions) and describe your changes before submitting a pull request. **Before submitting, make sure you've checked the following:** - [ ] **Target branch:** Please verify that the pull request targets the `dev` branch. - [ ] **Description:** Provide a concise description of the changes made in this pull request. - [ ] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description. - [ ] **Documentation:** Have you updated relevant documentation [Open WebUI Docs](https://github.com/open-webui/docs), or other documentation sources? - [ ] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation? - [ ] **Testing:** Have you written and run sufficient tests for validating the changes? - [ ] **Code review:** Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards? - [ ] **Prefix:** To cleary categorize this pull request, prefix the pull request title, using one of the following: - **BREAKING CHANGE**: Significant changes that may affect compatibility - **build**: Changes that affect the build system or external dependencies - **ci**: Changes to our continuous integration processes or workflows - **chore**: Refactor, cleanup, or other non-functional code changes - **docs**: Documentation update or addition - **feat**: Introduces a new feature or enhancement to the codebase - **fix**: Bug fix or error correction - **i18n**: Internationalization or localization changes - **perf**: Performance improvement - **refactor**: Code restructuring for better maintainability, readability, or scalability - **style**: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc.) - **test**: Adding missing tests or correcting existing tests - **WIP**: Work in progress, a temporary label for incomplete or ongoing work # Changelog Entry ### Description - [Concisely describe the changes made in this pull request, including any relevant motivation and impact (e.g., fixing a bug, adding a feature, or improving performance)] ### Added - [List any new features, functionalities, or additions] ### Changed - [List any changes, updates, refactorings, or optimizations] ### Deprecated - [List any deprecated functionality or features that have been removed] ### Removed - [List any removed features, files, or functionalities] ### Fixed - [List any fixes, corrections, or bug fixes] ### Security - [List any new or updated security-related changes, including vulnerability fixes] ### Breaking Changes - **BREAKING CHANGE**: [List any breaking changes affecting compatibility or functionality] --- ### Additional Information - [Insert any additional context, notes, or explanations for the changes] - [Reference any related issues, commits, or other relevant information] ### Screenshots or Videos - [Attach any relevant screenshots or videos demonstrating the changes] --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-25 11:29:46 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#38500