Skip to content

Make UC model discovery the default; remove --enable-uc#160

Merged
rohita5l merged 1 commit into
mainfrom
uc-default-discovery
Jun 14, 2026
Merged

Make UC model discovery the default; remove --enable-uc#160
rohita5l merged 1 commit into
mainfrom
uc-default-discovery

Conversation

@AarushiShah-db

Copy link
Copy Markdown
Collaborator

ucode configure only found the opus Claude model on workspaces where the legacy /ai-gateway/anthropic/v1/models listing dropped sonnet/haiku once system.ai endpoints existed. UC model-services discovery found all three but was hidden behind --enable-uc (and had no fallback).

Now discovery is UC-first and best-effort: try model-services first, fall back to the legacy per-family listing per family when UC returns nothing. The --enable-uc flag, UCODE_ENABLE_UC env var, and uc_enabled helper are removed, and curated system.ai.* MCP services are surfaced by default. The model-services endpoint still 499s without a bounded page_size, so pagination (page_size=100, follow next_page_token, light per-page retry) is retained.

Co-authored-by: Isaac

ucode configure only found the opus Claude model on workspaces where the
legacy /ai-gateway/anthropic/v1/models listing dropped sonnet/haiku once
system.ai endpoints existed. UC model-services discovery found all three but
was hidden behind --enable-uc (and had no fallback).

Now discovery is UC-first and best-effort: try model-services first, fall back
to the legacy per-family listing per family when UC returns nothing. The
--enable-uc flag, UCODE_ENABLE_UC env var, and uc_enabled helper are removed,
and curated system.ai.* MCP services are surfaced by default. The
model-services endpoint still 499s without a bounded page_size, so pagination
(page_size=100, follow next_page_token, light per-page retry) is retained.

Co-authored-by: Isaac
@rohita5l rohita5l merged commit 988b43c into main Jun 14, 2026
2 checks passed
@rohita5l rohita5l deleted the uc-default-discovery branch June 14, 2026 19:54
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.

3 participants