mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
fix: normalize provider in list_provider_models to support aliases
This commit is contained in:
parent
d8cc85dcdc
commit
3d90292eda
1 changed files with 3 additions and 0 deletions
|
|
@ -418,6 +418,9 @@ def list_provider_models(provider: str) -> List[str]:
|
|||
|
||||
Returns an empty list if the provider is unknown or has no data.
|
||||
"""
|
||||
from hermes_cli.models import normalize_provider
|
||||
provider = normalize_provider(provider) or provider
|
||||
|
||||
models = _get_provider_models(provider)
|
||||
if models is None:
|
||||
return []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue