feat: add /login command and auto-select Altimate model#131
Closed
suryaiyer95 wants to merge 2 commits intomainfrom
Closed
feat: add /login command and auto-select Altimate model#131suryaiyer95 wants to merge 2 commits intomainfrom
suryaiyer95 wants to merge 2 commits intomainfrom
Conversation
- Add `/login` slash command with 3-step wizard (URL, tenant, API key) that writes credentials to `~/.altimate/altimate.json` - Auto-select `altimate-backend/altimate-default` model when credentials are configured — no provider or model selection needed - Replace 3 separate Claude model entries with single "Altimate AI" model (backend handles model routing via litellm fallback chain) - Fix hardcoded `localhost:8000` URL to use `creds.altimateUrl` from credential file Co-Authored-By: Claude Opus 4.6 <[email protected]>
Co-Authored-By: Claude Opus 4.6 <[email protected]>
|
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 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. |
11 tasks
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
Add
/loginslash command for Altimate credential setup and register Altimate as a provider option alongside Anthropic, OpenAI, and others. Once credentials are configured, "Altimate AI" appears in the provider list and is selected as the default.Closes #112
Changes
/loginslash command (dialog-altimate-login.tsx): 3-step TUI wizard prompts for backend URL, tenant name, and API key, then writes credentials to~/.altimate/altimate.jsonwith0o600permissionslocal.tsx): When Altimate credentials are configured, prefer "Altimate AI" as the default provider — no manual picker interaction neededprovider.ts): Registeraltimate-backendas an OpenAI-compatible provider with a single "Altimate AI" model entry, loaded automatically when credentials existprovider.ts): Usecreds.altimateUrlfrom the credential file instead of hardcodedlocalhost:8000Behavior
/loginTest Plan
/login→ complete all 3 steps → verify~/.altimate/altimate.jsonis written with correctaltimateUrl,altimateInstanceName,altimateApiKey/loginwizard → no partial credential file written0o600)Checklist