AI Commit SummarizerAI Commit Summarizer is a Visual Studio Code extension that generates concise commit messages from staged git changes using Azure OpenAI GPT-4/GPT-5 or GPT-6 versions through an OpenAI-compatible API such as LiteLLM. OverviewThis extension integrates with the Source Control view in VS Code and provides a button to generate AI-powered summaries of your staged changes. It uses your selected API provider to analyze your git diff and produce a meaningful commit message. Prerequisites
Setup InstructionsLiteLLM / OpenAI-compatible API (GPT-6)Open VS Code settings and search for AI Commit Summarizer. Configure these settings in the extension configuration:
The endpoint is a base URL: the extension appends /chat/completions. Include /v1 only if your proxy requires it; do not enter the full completion URL. Use HTTPS for remote proxies to protect your API key and staged changes. The model is a free-form name, so different GPT-6 versions and custom LiteLLM aliases work without an extension update. The alias must already be configured and available in your proxy. GPT6 selects reasoning-oriented request parameters (a completion-token budget and low reasoning effort), without temperature or sampling penalties. GPT4 and GPT5 can also use this provider by selecting their corresponding family. On first use, enter your LiteLLM proxy API key, not an Azure key. The extension sends it using Bearer authentication and stores it in VS Code secret storage. Both providers use the same Endpoint, Model, and stored API Key; only the request URL format and authentication scheme depend on Provider. Migration from older settingsOn activation, the selected provider's legacy endpoint and model/deployment values are copied into the shared Endpoint and Model fields at their original User, Workspace, or Workspace Folder scope. Existing explicitly configured shared values are never overwritten, including intentionally empty values. Successfully copied legacy settings are removed; unused or conflicting legacy settings are retained and marked deprecated. The selected provider's old API key is copied once into the shared secure key if no shared key exists. Old keys are retained for recovery but are not automatically restored after a reset or provider switch. API keys are never written to settings or logged. Switching Provider does not switch credentials or restore old endpoints/models. Update Endpoint and Model, and run AI Commit: Reset API Key to enter the new provider's key when needed. The shared key is stored once for the extension, not separately for each workspace. Troubleshooting LiteLLM routing and unsupported parametersFor the GPT-6 Luna alias, select Provider: openaiCompatible, Gpt Version: GPT6, and Model: gpt-6-luna. Set Endpoint to your LiteLLM base URL. Use this provider even if LiteLLM routes the model to Azure internally; the extension should communicate with the proxy using the OpenAI-compatible API, not Azure deployment URLs. If the extension reports Azure OpenAI API error or logs Calling Azure OpenAI, check the provider setting in both User and Workspace settings (a workspace override can keep Azure selected). Rebuild and reinstall the updated extension, then reload the VS Code window if an older version is still running. The extension omits presence and frequency penalties from all requests, including zero-valued penalties, because LiteLLM rejects them for some reasoning models. No proxy-side parameter-dropping workaround is needed for these parameters. Azure OpenAI (existing users)Azure remains the default provider. Existing settings and the selected provider's stored key are migrated automatically. GPT6 must use the OpenAI-compatible provider.
Usage
Notes
LicenseMIT License |