You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(readme): update README for Ollama integration
- Added dual provider support with a new `diffCommit.provider` configuration option
- Implemented Ollama integration with model selection and server configuration
- Added new commands for Ollama setup and model switching:
- `DiffCommit: Configure Ollama Model`
- `DiffCommit: Change Ollama Model`
- Added new configuration settings:
- `diffCommit.ollamaHostname` for server connection
- `diffCommit.ollamaModel` for model selection
- Updated documentation with Ollama requirements and setup instructions
- Enhanced error handling for Ollama-specific scenarios
- Updated workflow documentation to include provider selection
Diff Commit is a VSCode extension that helps you generate commit messages following the conventional commits specification using Anthropic's AI models like Claude 3.5 Sonnet. Commit messages are generated using the diff of staged changes and entered directly into the SCM message input or previewed in a new editor window.
3
+
Diff Commit is a VSCode extension that helps you generate commit messages following the conventional commits specification using AI models. Choose between Anthropic's cloud-based models like Claude 4 Sonnet or local Ollama models for offline usage. Commit messages are generated using the diff of staged changes and entered directly into the SCM message input or previewed in a new editor window.
4
4
5
5
The generated commit messages are compatible with [googleapis/release-please](https://github.com/googleapis/release-please) and other tools that use conventional commits.
6
6
@@ -19,10 +19,15 @@ The generated commit messages are compatible with [googleapis/release-please](ht
|**Git Related**| Git extension not found in VSCode | VSCode's Git extension is not installed or enabled |
260
+
|| No Git repository found in the current workspace | The current workspace is not a Git repository |
261
+
|| No workspace folder found | No workspace is open in VSCode |
262
+
|| No changes detected | No staged changes found to generate a commit message for |
263
+
|**API Key Related**| API key is missing or not provided | No API key has been set for Anthropic provider |
264
+
|| Invalid API key format (should start with sk-ant-api) | The provided API key doesn't match the expected format |
265
+
|| Failed to access or update secure storage | Unable to store or retrieve the API key from secure storage |
266
+
|**Anthropic API Errors**| Bad Request: Review your prompt and try again | Invalid request to the Anthropic API (400) |
267
+
|| Unauthorized: Invalid API key, update your API key and try again | The API key is invalid or expired (401) |
268
+
|| Forbidden: Permission denied, update your API key and try again | The API key doesn't have permission for this operation (403) |
269
+
|| Rate Limited: Too many requests, try again later | You've exceeded your API rate limit (429) |
270
+
|| Server Error: Anthropic API server error | An error occurred on Anthropic's servers (500) |
271
+
|| Server Error: Anthropic Server Overloaded | The Anthropic API server is overloaded (529) |
272
+
|**Ollama Related Errors**| Unable to connect to Ollama server | Ollama server is not running or not accessible |
273
+
|| Ollama server not found | Invalid hostname or Ollama is not installed |
274
+
|| No Ollama model selected. Please configure an Ollama model first | No Ollama model has been configured for the extension |
275
+
|| Ollama model not specified | No Ollama model has been configured or selected |
276
+
|| Model '[model-name]' not found. Please check if the model is available in Ollama | The specified model is not available in Ollama |
277
+
|| No models found on the Ollama server | No models have been pulled to the Ollama installation |
278
+
|| Invalid hostname URL | The provided Ollama hostname is not a valid URL |
279
+
|| Ollama server error | An error occurred on the Ollama server (500) |
280
+
|**Other Errors**| Failed to write commit message to Source Control | Unable to update the SCM input box with the generated message |
281
+
|| Failed to open commit message preview | Unable to open the preview editor |
282
+
|| No commit message was generated by the API | The API response didn't contain a valid commit message |
193
283
194
284
Each error includes specific guidance on how to resolve the issue. For persistent problems, please check your configuration and if appropriate, raise an issue on [GitHub](https://github.com/tsdevau/diff-commit/issues).
0 commit comments