mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-11 03:31:55 +00:00
fix(gateway): preserve model picker current context
This commit is contained in:
parent
629d8b843d
commit
466f3a11de
2 changed files with 51 additions and 2 deletions
|
|
@ -1687,9 +1687,11 @@ def list_authenticated_providers(
|
|||
|
||||
def list_picker_providers(
|
||||
current_provider: str = "",
|
||||
current_base_url: str = "",
|
||||
user_providers: dict = None,
|
||||
custom_providers: list | None = None,
|
||||
max_models: int = 8,
|
||||
current_model: str = "",
|
||||
) -> List[dict]:
|
||||
"""Interactive-picker variant of :func:`list_authenticated_providers`.
|
||||
|
||||
|
|
@ -1714,9 +1716,11 @@ def list_picker_providers(
|
|||
|
||||
providers = list_authenticated_providers(
|
||||
current_provider=current_provider,
|
||||
current_base_url=current_base_url,
|
||||
user_providers=user_providers,
|
||||
custom_providers=custom_providers,
|
||||
max_models=max_models,
|
||||
current_model=current_model,
|
||||
)
|
||||
|
||||
filtered: List[dict] = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue