fix(gateway): handle provider command without config

This commit is contained in:
Kenny Xie 2026-04-09 23:14:19 -07:00 committed by Teknium
parent 7cec784b64
commit 5b8beb0ead
2 changed files with 1 additions and 4 deletions

View File

@ -3861,6 +3861,7 @@ class GatewayRunner:
# Resolve current provider from config
current_provider = "openrouter"
model_cfg = {}
config_path = _hermes_home / 'config.yaml'
try:
if config_path.exists():

View File

@ -105,10 +105,6 @@ class TestTelegramSlashCommands:
send_status.assert_called_once()
@pytest.mark.asyncio
@pytest.mark.xfail(
reason="Bug: _handle_provider_command references unbound model_cfg when config.yaml is absent",
strict=False,
)
async def test_provider_shows_current_provider(self, adapter):
send = await send_and_capture(adapter, "/provider")