Skip to content

feat: add first_available model selection#2991

Merged
dgageot merged 1 commit into
docker:mainfrom
dgageot:board/7d7abdb15e249204
Jun 3, 2026
Merged

feat: add first_available model selection#2991
dgageot merged 1 commit into
docker:mainfrom
dgageot:board/7d7abdb15e249204

Conversation

@dgageot

@dgageot dgageot commented Jun 3, 2026

Copy link
Copy Markdown
Member

This adds a first_available model selector to the config schema. It enables automatic fallback across multiple model candidates by resolving the first reachable one with configured credentials, including support for local dmr and ollama fallbacks.

The implementation automatically tries each candidate in order until one succeeds based on available credentials. If no candidates can be resolved, it reports grouped missing-credential errors indicating that at least one candidate group is needed. During alias resolution, unresolved selectors are skipped, allowing other aliases to proceed.

The change includes an example configuration, comprehensive tests, and all necessary schema updates.

Validation

go test ./pkg/config/... ./pkg/teamloader/... ./pkg/runtime/...
task build
task lint

@dgageot dgageot requested a review from a team as a code owner June 3, 2026 12:52
gtardif
gtardif previously approved these changes Jun 3, 2026
docker-agent

This comment was marked as low quality.

@dgageot dgageot force-pushed the board/7d7abdb15e249204 branch from 74aaaca to 621e2cc Compare June 3, 2026 14:26
@dgageot dgageot merged commit 5496b6c into docker:main Jun 3, 2026
5 checks passed
@aheritier aheritier added area/config For configuration parsing, YAML, environment variables area/providers For features/issues/fixes related to LLM providers (Bedrock, LiteLLM, Qwen, custom, etc.) kind/feat PR adds a new feature (maps to feat: commit prefix) labels Jun 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/config For configuration parsing, YAML, environment variables area/providers For features/issues/fixes related to LLM providers (Bedrock, LiteLLM, Qwen, custom, etc.) kind/feat PR adds a new feature (maps to feat: commit prefix)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants