Skip to content

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

Merged
AnkushMalaker merged 1 commit into
devfrom
fix/llm-config-errors
Nov 16, 2026
Merged

AnkushMalaker merged 1 commit into
devfrom
fix/llm-config-errors

Conversation

@thestumonkey

Copy link
Copy Markdown
Contributor

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 tests/test_model_registry_reasoning.py on upstream dev: 38 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>
@coderabbitai

coderabbitai Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 25247e8b-cae9-4e06-9f0d-e0d2ff0e25b9

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@AnkushMalaker
AnkushMalaker merged commit 5134180 into dev Nov 16, 2026
5 of 9 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.

2 participants