mirror of
https://github.com/nesquena/hermes-webui.git
synced 2026-05-25 03:00:23 +00:00
64db8bd794
Backend (api/config.py): - resolve_model_provider(): check custom_providers for prefix match BEFORE the config_base_url branch. Previously, providers with a base_url set (e.g. deepseek) would catch all slash-delimited model ids and return the config provider, preventing custom provider routing. - get_available_models(): include model aliases in response so the frontend can resolve them on /model commands. Frontend (static/commands.js): - cmdModel(): resolve aliases by fetching /api/models before fuzzy matching the dropdown. - Add bare-model fallback when the alias resolves to a slash-delimited provider/model id (e.g. "deepseek/deepseek-v4-flash"). - Add cross-provider fallback: when the model is from a custom provider not in the active provider dropdown, call /api/session/update directly with the provider/model id and provider override.