Add OpenAI-compatible, Anthropic, and custom endpoint support while
keeping the local model path intact. The UI now lets users choose the
provider and local model, and staged diffs are prepared more carefully
so generated commit messages stay focused and usable.
- src-tauri/crates/commit_ai/*
- Add HTTP-based generators for OpenAI, Anthropic, and custom APIs.
- Introduce shared request/response handling and message sanitizing.
- Expand prompt building to require a body and trim long diffs safely.
- Expose selectable local model metadata and loading by model ID.
- src-tauri/src/git.rs
- Add commands for listing local models and loading them in background.
- Route generation by provider and include staged file lists in prompts.
- Exclude noisy lockfiles from detailed staged diffs.
- src-tauri/src/main.rs
- Wire the new AI commands into the Tauri app setup.
- src/lib/components/*
- Add an AI settings dialog and update the commit panel for provider
and model selection.
- src/lib/git.ts, src/lib/types.ts, src/App.svelte, src/app.css
- Extend frontend state, types, and styling for AI provider settings.
- src-tauri/Cargo.lock, src-tauri/crates/commit_ai/Cargo.toml
- Add reqwest and serde_json for cloud API requests.
Translate commit AI prompts, model labels, and git/keychain errors to
English so the app and generated messages are consistent. Also add a
discard confirmation dialog and update the UI text/styles to match the
new flow.
- src-tauri/crates/commit_ai/src/cloud.rs
- Translate HTTP and API error messages to English.
- Keep request timeout and token sizing behavior unchanged.
- src-tauri/crates/commit_ai/src/lib.rs
- Translate model labels, prompt text, and validation errors.
- Keep diff truncation and message sanitization logic intact.
- src-tauri/src/git.rs
- Translate git, credential, merge, and history errors.
- Update AI provider validation messages to English.
- src/lib/components/*
- Update AI settings, commit panel, credential, and loading UI text.
- Add discard confirmation dialog for destructive actions.
- src/App.svelte, src/app.css
- Adjust app layout and styling for the new dialog and text changes.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Add OpenAI-compatible, Anthropic, and custom endpoint support while keeping the local model path intact. The UI now lets users choose the provider and local model, and staged diffs are prepared more carefully so generated commit messages stay focused and usable. - src-tauri/crates/commit_ai/* - Add HTTP-based generators for OpenAI, Anthropic, and custom APIs. - Introduce shared request/response handling and message sanitizing. - Expand prompt building to require a body and trim long diffs safely. - Expose selectable local model metadata and loading by model ID. - src-tauri/src/git.rs - Add commands for listing local models and loading them in background. - Route generation by provider and include staged file lists in prompts. - Exclude noisy lockfiles from detailed staged diffs. - src-tauri/src/main.rs - Wire the new AI commands into the Tauri app setup. - src/lib/components/* - Add an AI settings dialog and update the commit panel for provider and model selection. - src/lib/git.ts, src/lib/types.ts, src/App.svelte, src/app.css - Extend frontend state, types, and styling for AI provider settings. - src-tauri/Cargo.lock, src-tauri/crates/commit_ai/Cargo.toml - Add reqwest and serde_json for cloud API requests.