mirror of
https://github.com/srbhr/Resume-Matcher.git
synced 2026-01-14 03:40:02 +00:00
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>