fix(billing_middleware): update model configuration retrieval to use 'model' instead of 'display_name'
This commit is contained in:
parent
77801c03ff
commit
8d5b01a59b
|
|
@ -438,8 +438,8 @@ def _resolve_model_name(model_key: str | None) -> str | None:
|
|||
if not model_key:
|
||||
return None
|
||||
model_cfg = get_app_config().get_model_config(model_key)
|
||||
if model_cfg and model_cfg.display_name:
|
||||
return model_cfg.display_name
|
||||
if model_cfg and model_cfg.model:
|
||||
return model_cfg.model
|
||||
return model_key
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue