fix(billing_middleware): update model configuration retrieval to use 'model' instead of 'display_name'

This commit is contained in:
Titan 2026-04-22 17:32:23 +08:00
parent 77801c03ff
commit 8d5b01a59b
1 changed files with 2 additions and 2 deletions

View File

@ -438,8 +438,8 @@ def _resolve_model_name(model_key: str | None) -> str | None:
if not model_key: if not model_key:
return None return None
model_cfg = get_app_config().get_model_config(model_key) model_cfg = get_app_config().get_model_config(model_key)
if model_cfg and model_cfg.display_name: if model_cfg and model_cfg.model:
return model_cfg.display_name return model_cfg.model
return model_key return model_key