Skip to content
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

[Bug]: Output Token Price of 0 Not Displayed in WebUI #8110

Open
ZeroClover opened this issue Jan 30, 2025 · 0 comments
Open

[Bug]: Output Token Price of 0 Not Displayed in WebUI #8110

ZeroClover opened this issue Jan 30, 2025 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed ui

Comments

@ZeroClover
Copy link

What happened?

When the token output cost for certain models is specified as 0, it is not displayed as 0 on the WebUI, but the input cost is correctly shown as 0.

Image

Config:

model_list:
  - model_name: deepseek-r1
    litellm_params:
      model: deepseek/deepseek-reasoner
      api_key: os.environ/DEEPSEEK_API_KEY
      api_base: os.environ/DEEPSEEK_API_BASE
      max_tokens: 8192
  - model_name: deepseek-r1
    litellm_params:
      model: openai/<REDACTED>
      api_base: <REDACTED>
      api_key: <REDACTED>
      input_cost_per_token: 0
      output_cost_per_token: 0
  - model_name: deepseek-r1
    litellm_params:
      model: github/DeepSeek-R1
      api_key: os.environ/GITHUB_API_KEY
      input_cost_per_token: 0
      output_cost_per_token: 0
  - model_name: deepseek-r1
    litellm_params:
      model: openrouter/deepseek/deepseek-r1
      api_key: os.environ/OPENROUTER_API_KEY
      input_cost_per_token: 0.000008
      output_cost_per_token: 0.000008
  - model_name: deepseek-r1
    litellm_params:
      model: perplexity/sonar-reasoning
      api_key: os.environ/PERPLEXITY_API_KEY
      input_cost_per_token: 0.000001
      output_cost_per_token: 0.000005

Relevant log output

Are you a ML Ops Team?

No

What LiteLLM version are you on ?

1.59.9

Twitter / LinkedIn details

No response

@ZeroClover ZeroClover added the bug Something isn't working label Jan 30, 2025
@ishaan-jaff ishaan-jaff added help wanted Extra attention is needed ui labels Jan 30, 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 help wanted Extra attention is needed ui
Projects
None yet
Development

No branches or pull requests

2 participants