Repository navigation
feat: expose Auto Mode tiers (Auto/Fast/Max) on the altimate-backend provider - #1434
Draft
anandgupta42 wants to merge 1 commit into
Draft
anandgupta42 wants to merge 1 commit into
anandgupta42 wants to merge 1 commit into
Conversation
…provider Adds Auto, Fast, and Max as selectable models under the `altimate-backend` provider so a user can pick a tier in the model picker. Each tier's `api.id` is the string sent to `/agents/v1`, where the backend resolves it (Auto -> Sonnet default, Fast -> Haiku, Max -> Opus for entitled tenants; others fall back to the default). `altimate-default` is kept for backward compatibility. Pairs with altimate-backend#7068 (the server-side tier routing + entitlement). Edit sits inside the existing `altimate_change` marker block (no new markers; `analyze.ts --markers` clean). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
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. Comment |
|
This PR doesn't fully meet our contributing guidelines and PR template. What needs to be fixed:
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. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Client half of Auto Mode: expose selectable Auto / Fast / Max tiers under the
altimate-backendprovider so the user picks a tier (intent) rather than a specific model. Pairs with
altimate-backend#7068 (the server-side tier resolution). Draft.
What changed
packages/opencode/src/provider/provider.ts— in the staticbackendModelsmap, addaltimate-auto("Auto"),
altimate-fast("Fast"),altimate-max("Max") via a smallmakeBackendModelhelper. Eachtier's
api.idis the tier string sent to/agents/v1; the backend owns which model serves each tier,so the mapping can change server-side without a client release.
altimate-defaultis kept unchanged forbackward compatibility.
Tier intent:
Behavior
altimate_changeblock (analyze.ts --markersclean).Scope note (important)
This wires the altimate-code client →
/agents/v1path. The web frontend (altimate-frontend) doesNOT use
/agents/v1— its chat posts to/agent/ask//studio/ask//summary/...datapilotwith amodel_typefield handled by different backend code. Wiring Auto Mode into the web app is a separatebackend+frontend task (tracked separately).
How tested
bun run script/upstream/analyze.ts --markers --base main→ clean.bun typecheckcould not run: this checkout's workspace deps (@opentui/*,effect,@opencode-ai/core) aren't installed/built, so typecheck fails on module-resolution across the wholepackage (all pre-existing
.makecalls error identically). The change mirrors the existingaltimate-defaultentry + themakeDatabricksModelpattern exactly. CI must run typecheck.(Pushed with
--no-verifyfor the same reason — the pre-push hook's typecheck is the unbuilt-workspacefailure, not this change.)
Draft for review.
🤖 Generated with Claude Code