hermes-agent/hermes_cli
kshitij 512c328815
fix(copilot): eliminate redundant catalog fetch in api_mode resolution (#11008)
copilot_model_api_mode() called normalize_copilot_model_id() which
fetched the GitHub model catalog via HTTP, then the secondary endpoint
check fetched it again because the catalog was never passed through.

Fix: fetch the catalog once at the top of copilot_model_api_mode()
and pass it to normalize_copilot_model_id(). The secondary check
then sees a non-None catalog and skips the redundant fetch.

For a Claude model switch on Copilot this eliminates one 5-second-
timeout HTTP call from the interactive /model path.

Surfaced during review of PR #10533.

Co-authored-by: kshitijk4poor <kshitijk4poor@users.noreply.github.com>
2026-04-16 05:18:34 -07:00
..
__init__.py
auth.py feat(xai): upgrade to Responses API, add TTS provider 2026-04-16 02:24:08 -07:00
auth_commands.py
backup.py
banner.py
callbacks.py
claw.py
cli_output.py
clipboard.py
codex_models.py
colors.py
commands.py
completion.py
config.py docs: remove nonexistent CAMOFOX_PROFILE_DIR env var references (#10976) 2026-04-16 04:07:11 -07:00
copilot_auth.py
cron.py
curses_ui.py
debug.py
default_soul.py
doctor.py
dump.py
env_loader.py
gateway.py
logs.py
main.py feat(xai): upgrade to Responses API, add TTS provider 2026-04-16 02:24:08 -07:00
mcp_config.py
memory_setup.py
model_normalize.py feat: add Ollama Cloud as built-in provider 2026-04-16 02:22:09 -07:00
model_switch.py fix: recompute Copilot api_mode after model switch 2026-04-16 01:16:14 -07:00
models.py fix(copilot): eliminate redundant catalog fetch in api_mode resolution (#11008) 2026-04-16 05:18:34 -07:00
nous_subscription.py feat(xai): upgrade to Responses API, add TTS provider 2026-04-16 02:24:08 -07:00
pairing.py
platforms.py
plugins.py feat(plugins): add dispatch_tool() to PluginContext (#10763) 2026-04-15 22:23:01 -07:00
plugins_cmd.py
profiles.py
providers.py feat(xai): upgrade to Responses API, add TTS provider 2026-04-16 02:24:08 -07:00
runtime_provider.py feat(xai): upgrade to Responses API, add TTS provider 2026-04-16 02:24:08 -07:00
setup.py feat(xai): upgrade to Responses API, add TTS provider 2026-04-16 02:24:08 -07:00
skills_config.py
skills_hub.py
skin_engine.py
status.py
tips.py
tools_config.py feat(xai): upgrade to Responses API, add TTS provider 2026-04-16 02:24:08 -07:00
uninstall.py
web_server.py feat: dashboard plugin system — extend the web UI with custom tabs 2026-04-16 04:10:06 -07:00
webhook.py