Skip to content

Use base_model_id when possible. #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gregbarbosa
Copy link

Fixes #3.

Problem

Workspace models save their custom names as the model name in Open WebUI. Cost Tracker will fail to properly ID these models with unique names.

Solution

  • Check for the presence of base_model_ID from the model object
  • Use that ID to check costs
  • Save model info for reuse between inlet/outlet
  • Fallback to original model ID check if base_model_ID isn't present

Before

2025-03-12_21-30-20_ Friendly Greeting Exchange  Open WebUI

After

2025-03-12_21-31-19_ Initial Greeting  Open WebUI

- Check for base model ID from `model` object
- Save model info for reuse between inlet/outlet
- Fallback to standard model ID check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cost shows $0.00 when using custom model
1 participant