Files
srbhr b23d00b41a fix(settings): OpenRouter test connection uses form values instead of saved config
Previously, clicking "Test Connection" after selecting OpenRouter and entering
an API key would fail with "Provider: openai | Model: gpt-4o-mini | API key not
configured" because the test endpoint only read from saved config, not the form.

Changes:
- Backend: /llm-test endpoint now accepts optional request body with config values
- Frontend: testLlmConnection() sends current form values to backend
- Frontend: Settings page passes provider, model, api_key, api_base to test
- Backend: Fix OpenRouter model prefix - always prepend "openrouter/" for proper
  LiteLLM format (e.g., "anthropic/claude-3.5-sonnet" → "openrouter/anthropic/claude-3.5-sonnet")

Closes RES-199

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-07 16:52:12 +05:30
..