Skip to content

feat(config): validate custom model configuration#22009

Closed
tobias-weiss-ai-xr wants to merge 1 commit intoanomalyco:devfrom
tobias-weiss-ai-xr:feature/custom-model-config
Closed

feat(config): validate custom model configuration#22009
tobias-weiss-ai-xr wants to merge 1 commit intoanomalyco:devfrom
tobias-weiss-ai-xr:feature/custom-model-config

Conversation

@tobias-weiss-ai-xr
Copy link
Copy Markdown

Summary

  • Add validation for custom model provider configuration
  • Warn when a provider name is unrecognized or configuration is incomplete
  • Prevents silent failures from typos in provider names (e.g., ollamma instead of ollama)

Test plan

  • Add a custom provider with an invalid name — verify a warning is logged
  • Add a valid custom provider — verify it works without warnings
  • Omit required fields — verify validation catches the issue

Skip custom providers that have no api, npm, or models configured
instead of silently creating broken entries. Warn when custom models
have no context limit set, helping users fix their opencode.json.
@github-actions github-actions bot added the needs:compliance This means the issue will auto-close after 2 hours. label Apr 11, 2026
@github-actions
Copy link
Copy Markdown
Contributor

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@github-actions
Copy link
Copy Markdown
Contributor

This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

Feel free to open a new pull request that follows our guidelines.

@github-actions github-actions bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Apr 11, 2026
@github-actions github-actions bot closed this Apr 11, 2026
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