mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-28 04:04:31 +00:00
fix(utils.py): check if model info is for model with correct provider
Fixes issue where incorrect pricing was used for custom llm provider
This commit is contained in:
parent
f774033bf9
commit
b580e0992d
8 changed files with 55 additions and 18 deletions
|
@ -1531,7 +1531,7 @@ const ModelDashboard: React.FC<ModelDashboardProps> = ({
|
|||
<pre className="text-xs">
|
||||
{model.input_cost
|
||||
? model.input_cost
|
||||
: model.litellm_params.input_cost_per_token
|
||||
: model.litellm_params.input_cost_per_token != null && model.litellm_params.input_cost_per_token != undefined
|
||||
? (
|
||||
Number(
|
||||
model.litellm_params
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue