Skip to content

fix(backend): report LLM configuration errors instead of failing silently - #27

Merged
thestumonkey merged 1 commit into
devfrom
pr/llm-config-errors
Nov 9, 2026
Merged

thestumonkey merged 1 commit into
devfrom
pr/llm-config-errors

Conversation

@thestumonkey

Copy link
Copy Markdown
Member

Summary

  • A hosted (HTTPS) model with an empty API key raises MissingModelCredentialsError. The API returns 503 with the model and operation name.
  • Settings writes raise ConfigSaveError with the reason, with a hint for a read-only ConfigMap.
  • A config.yml without a models key no longer makes /api/admin/models return 500.

Test plan

  • uv run --group test pytest tests/test_llm_config_errors.py: 5 passed.

🤖 Generated with Claude Code

…ntly

A hosted model with an empty API key now raises MissingModelCredentialsError
(503) naming the model and operation. Settings writes raise ConfigSaveError
with the reason, including a read-only ConfigMap hint. A config.yml without a
models key no longer makes /api/admin/models return 500.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@thestumonkey
thestumonkey merged commit 5a2151b into dev Nov 9, 2026
3 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant