Skip to content

Commit 084ce8d

Browse files
committed
feat: Add Qwen AI provider integration and update model support
1 parent d9ae856 commit 084ce8d

File tree

8 files changed

+288
-83
lines changed

8 files changed

+288
-83
lines changed

CLAUDE.md

Lines changed: 31 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
66

77
**Universal Commit Assistant** is a VS Code extension that generates AI-powered commit messages using multiple AI providers. The extension supports 8 languages and follows modern TypeScript development practices with automated release workflows.
88

9-
## Latest Updates (January 2025)
9+
## Latest Updates (November 2025)
1010

11-
- **DeepSeek Provider Added**: Integration with DeepSeek-V3.1 models including deepseek-chat (fast general purpose) and deepseek-reasoner (thinking mode for complex tasks)
11+
- **Qwen Provider Added**: Integration with Alibaba Cloud DashScope API supporting Qwen Max, Qwen Plus, and Qwen Turbo models
12+
- **GPT-5.1 Models**: Updated OpenAI provider with GPT-5.1, GPT-5.1 Codex, and GPT-5.1 Codex Mini
13+
- **Gemini 3 Models**: Updated Google Gemini provider with Gemini 3 Pro (flagship) and preview models
1214
- **Enhanced Model Support**: Updated to support latest AI models from all major providers
1315

1416
## Development Commands
@@ -36,7 +38,7 @@ npm run release:dry-run # Test release process without publishing
3638

3739
## Architecture Overview
3840

39-
This is a VS Code extension called Universal Commit Assistant that generates AI-powered commit messages using multiple AI providers and supports 8 languages. As of January 2025, it supports 8 providers including the newly added DeepSeek provider.
41+
This is a VS Code extension called Universal Commit Assistant that generates AI-powered commit messages using multiple AI providers and supports 8 languages. As of November 2025, it supports 9 providers including OpenAI, Anthropic, Gemini, Mistral, DeepSeek, Qwen, OpenRouter, Ollama, and LM Studio.
4042

4143
### Core Architecture Pattern
4244

@@ -65,7 +67,7 @@ All AI providers inherit from **BaseProvider** abstract class and implement:
6567

6668
Provider types:
6769

68-
- **Cloud providers** (OpenAI, Anthropic, Gemini, Mistral, DeepSeek, OpenRouter) - require API keys stored in VS Code secrets
70+
- **Cloud providers** (OpenAI, Anthropic, Gemini, Mistral, DeepSeek, Qwen, OpenRouter) - require API keys stored in VS Code secrets
6971
- **Local providers** (Ollama, LM Studio) - require running local servers, configurable base URLs
7072

7173
Each provider implements standardized error handling and configuration validation to ensure robust operation.
@@ -91,14 +93,15 @@ src/
9193
├── providers/ # AI provider implementations
9294
│ ├── aiProviderFactory.ts # Factory for creating provider instances
9395
│ ├── baseProvider.ts # Abstract base class
94-
│ ├── anthropicProvider.ts # Claude 3.5 Haiku/Sonnet
96+
│ ├── anthropicProvider.ts # Claude 4.5 Haiku/Sonnet/Opus
9597
│ ├── deepseekProvider.ts # DeepSeek V3.1 models
96-
│ ├── geminiProvider.ts # Google Gemini models
98+
│ ├── geminiProvider.ts # Google Gemini 3 models
9799
│ ├── lmstudioProvider.ts # Local LM Studio integration
98100
│ ├── mistralProvider.ts # Mistral AI models
99101
│ ├── ollamaProvider.ts # Local Ollama integration
100-
│ ├── openaiProvider.ts # OpenAI GPT models
101-
│ └── openrouterProvider.ts # OpenRouter proxy service
102+
│ ├── openaiProvider.ts # OpenAI GPT-5.1 models
103+
│ ├── openrouterProvider.ts # OpenRouter proxy service
104+
│ └── qwenProvider.ts # Alibaba Qwen models
102105
├── services/
103106
│ ├── gitCommitService.ts # Main workflow orchestration
104107
│ ├── gitService.ts # Git operations wrapper
@@ -146,34 +149,44 @@ Users configure the extension through VS Code settings UI or JSON. Core settings
146149

147150
Provider-specific settings use nested structure:
148151

149-
- Cloud providers: `universal-commit-assistant.openai.model`, `universal-commit-assistant.anthropic.model`, `universal-commit-assistant.deepseek.model`
152+
- Cloud providers: `universal-commit-assistant.openai.model`, `universal-commit-assistant.anthropic.model`, `universal-commit-assistant.deepseek.model`, `universal-commit-assistant.qwen.model`
150153
- Local providers: `universal-commit-assistant.ollama.baseUrl`, `universal-commit-assistant.lmstudio.model`
151154

152-
### Latest AI Model Updates (September 2025)
155+
### Latest AI Model Updates (November 2025)
153156

154157
**OpenAI Latest Models:**
155158

156-
- **GPT-5 Mini** (gpt-5-mini) - Fast and cost-effective, released August 2025, 400K context window
157-
- **GPT-5** (gpt-5) - Flagship model with state-of-the-art reasoning and coding capabilities
159+
- **GPT-5.1** (gpt-5.1) - Latest model balancing intelligence and speed, released November 2025
160+
- **GPT-5.1 Codex** (gpt-5.1-codex) - Optimized for coding tasks
161+
- **GPT-5.1 Codex Mini** (gpt-5.1-codex-mini) - Fast coding model
162+
- **GPT-5 Mini** (gpt-5-mini) - Fast and cost-effective, 400K context window
163+
- **GPT-5** (gpt-5) - Full capability flagship model
158164

159165
**Anthropic Latest Models:**
160166

161167
- **Claude Haiku 4.5** (claude-haiku-4-5-20251001) - Fast and cost-effective, released October 2025, 200K context window
162168
- **Claude Sonnet 4.5** (claude-sonnet-4-5-20250929) - Enhanced reasoning and coding capabilities, released September 2025
163169
- **Claude Opus 4.1** (claude-opus-4-1-20250805) - Most capable model with extended thinking, released August 2025
164170

165-
**DeepSeek Latest Models (January 2025):**
171+
**Google Gemini Latest Models:**
172+
173+
- **Gemini 3 Pro** (gemini-3-pro) - Latest flagship model with 1M context window, released November 2025
174+
- **Gemini 3 Pro Preview** (gemini-3-pro-preview-11-2025) - Preview version of Gemini 3
175+
- **Gemini 2.5 Flash** (gemini-2.5-flash) - Fast and cost-effective
176+
- **Gemini 2.5 Pro** (gemini-2.5-pro) - Advanced reasoning with thinking mode
177+
178+
**DeepSeek Latest Models:**
166179

167180
- **deepseek-chat** - DeepSeek-V3.1 Non-thinking Mode, fast general purpose model, 128K context
168181
- **deepseek-reasoner** - DeepSeek-V3.1 Thinking Mode, advanced reasoning for complex tasks, 128K context
169-
- **Pricing**: Competitive rates with cache hit/miss optimization
170182
- **API**: OpenAI-compatible API at https://api.deepseek.com
171183

172-
**Google Gemini Latest Models:**
184+
**Qwen Latest Models (November 2025):**
173185

174-
- **Gemini 2.5 Flash** - Most recent stable model with thinking capabilities
175-
- **Gemini 2.5 Pro** - State-of-the-art reasoning model leading in math and science benchmarks
176-
- **Gemini 2.5 Flash Image** - Advanced image generation and editing capabilities
186+
- **Qwen Plus** (qwen-plus) - Balanced performance and cost (recommended)
187+
- **Qwen Max** (qwen-max) - Most capable model
188+
- **Qwen Turbo** (qwen-turbo) - Fastest model with 1M context
189+
- **API**: OpenAI-compatible API at https://dashscope-intl.aliyuncs.com/compatible-mode/v1
177190

178191
## Development Best Practices
179192

README.md

Lines changed: 80 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,30 @@
11
# Universal Commit Assistant
22

3-
[📦 VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=gianged.universal-commit-assistant) [Rate & Review](https://marketplace.visualstudio.com/items?itemName=gianged.universal-commit-assistant&ssr=false#review-details) [🐛 Report Issues](https://github.com/gianged/universal-commit-assistant/issues)
3+
[VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=gianged.universal-commit-assistant) | [Rate & Review](https://marketplace.visualstudio.com/items?itemName=gianged.universal-commit-assistant&ssr=false#review-details) | [Report Issues](https://github.com/gianged/universal-commit-assistant/issues)
44

5-
**Stop writing commit messages manually.** Let AI generate perfect commit messages for you instantly, with support for 8 AI providers and 8 languages, directly in VS Code.
5+
**Stop writing commit messages manually.** Let AI generate perfect commit messages for you instantly, with support for 9 AI providers and 8 languages, directly in VS Code.
6+
7+
---
68

79
## Why Universal Commit Assistant?
810

9-
🚀 **Save Time**: Generate commit messages in seconds instead of minutes
10-
🎯 **Always Consistent**: Follow conventional commit standards automatically
11-
🌍 **Your Language**: Support for 8 languages including English, Chinese, Spanish, French, Russian, Japanese, Korean, Vietnamese
12-
🔒 **Privacy First**: Use local AI models (Ollama, LM Studio) or secure cloud providers
11+
- **Save Time**: Generate commit messages in seconds instead of minutes
12+
- **Always Consistent**: Follow conventional commit standards automatically
13+
- **Your Language**: Support for 8 languages including English, Chinese, Spanish, French, Russian, Japanese, Korean, Vietnamese
14+
- **Privacy First**: Use local AI models (Ollama, LM Studio) or secure cloud providers
15+
16+
---
1317

1418
## Quick Start
1519

16-
1. **Install** Search "Universal Commit Assistant" in VS Code Extensions
17-
2. **Configure** Choose your AI provider and add API key (or setup local model)
18-
3. **Generate** Click the button in Source Control panel
20+
1. **Install** - Search "Universal Commit Assistant" in VS Code Extensions
21+
2. **Configure** - Choose your AI provider and add API key (or setup local model)
22+
3. **Generate** - Click the sparkle button in Source Control panel
1923

2024
That's it! Your commit messages will be professionally written and consistent.
2125

26+
---
27+
2228
## Smart Commit Generation
2329

2430
- **Context-Aware**: Analyzes your actual code changes to understand what you did
@@ -29,40 +35,45 @@ That's it! Your commit messages will be professionally written and consistent.
2935
- **Flexible Context**: Works with staged changes, unstaged changes, or both
3036
- **Customizable**: Adjust AI creativity, message length, and add custom prompts
3137

38+
---
39+
3240
## AI Provider Options
3341

3442
Choose the provider that fits your needs and budget:
3543

36-
### ☁️ Cloud Providers (API Key Required)
44+
### Cloud Providers (API Key Required)
3745

38-
| Provider | Best For | Latest Models |
39-
| ----------------- | --------------------- | -------------------------------------- |
40-
| **OpenAI** | General purpose | GPT-5, GPT-5 Mini |
41-
| **Anthropic** | Code understanding | Claude Haiku 4.5, Sonnet 4.5, Opus 4.1 |
42-
| **Google Gemini** | Fast responses | Gemini 2.5 Flash, Gemini 2.5 Pro |
43-
| **Mistral** | European compliance | Mistral Small, Mistral Large |
44-
| **DeepSeek** | Cost-effective | DeepSeek-V3.1 Chat & Reasoner |
45-
| **OpenRouter** | Access to 100+ models | Meta Llama, Claude, GPT, and more |
46+
| Provider | Best For | Latest Models |
47+
| ----------------- | --------------------- | -------------------------------------------- |
48+
| **OpenAI** | General purpose | GPT-5.1, GPT-5.1 Codex, GPT-5 |
49+
| **Anthropic** | Code understanding | Claude Haiku 4.5, Sonnet 4.5, Opus 4.1 |
50+
| **Google Gemini** | Fast responses | Gemini 3 Pro, Gemini 2.5 Flash |
51+
| **Mistral** | European compliance | Mistral Small, Mistral Large |
52+
| **DeepSeek** | Cost-effective | DeepSeek-V3.1 Chat & Reasoner |
53+
| **Qwen** | Alibaba Cloud | Qwen Max, Qwen Plus, Qwen Turbo |
54+
| **OpenRouter** | Access to 100+ models | Meta Llama, Claude, GPT, and more |
4655

47-
### 🏠 Local Providers (Privacy First)
56+
### Local Providers (Privacy First)
4857

4958
| Provider | Best For | Setup |
5059
| ------------- | ---------------- | -------------------------------- |
5160
| **Ollama** | Complete privacy | Install Ollama + download models |
5261
| **LM Studio** | Easy local setup | Download LM Studio + any model |
5362

54-
## Configuration Made Simple
63+
---
64+
65+
## Configuration
5566

56-
Access via `Settings` `Extensions` `Universal Commit Assistant`:
67+
Access via `Settings` > `Extensions` > `Universal Commit Assistant`:
5768

5869
### Essential Settings
5970

6071
- **Provider**: Select your preferred AI service
6172
- **Message Style**:
62-
- `conventional` feat: add new feature
63-
- `concise` add new feature
64-
- `detailed` Multi-line with explanations
65-
- `custom` Your own template
73+
- `conventional` - feat: add new feature
74+
- `concise` - add new feature
75+
- `detailed` - Multi-line with explanations
76+
- `custom` - Your own template
6677
- **Language**: Choose from 8 supported languages
6778
- **Include Unstaged**: Analyze uncommitted changes too
6879

@@ -74,6 +85,8 @@ Access via `Settings` → `Extensions` → `Universal Commit Assistant`:
7485
- **Detect First Commit**: Automatically detect and generate appropriate initial commit messages (default: enabled)
7586
- **Custom Prompt**: Override default instructions
7687

88+
---
89+
7790
## Example Outputs
7891

7992
**Conventional Style:**
@@ -103,27 +116,33 @@ This commit introduces a comprehensive authentication system for the application
103116
- Follows industry best practices
104117
```
105118

119+
---
120+
106121
## Commands
107122

108123
Access these via Command Palette (`Ctrl+Shift+P`):
109124

110-
- **Generate Universal Commit Message** → Main functionality
111-
- **Show API Key Status** → Check which providers are configured
112-
- **Clear All API Keys** → Remove stored credentials
113-
- **Open Settings** → Quick access to configuration
125+
- **Generate Universal Commit Message** - Main functionality
126+
- **Show API Key Status** - Check which providers are configured
127+
- **Clear All API Keys** - Remove stored credentials
128+
- **Open Settings** - Quick access to configuration
129+
130+
---
114131

115132
## Multi-Language Support
116133

117134
Generate commit messages in your preferred language:
118135

119-
- 🇺🇸 English (default)
120-
- 🇨🇳 Chinese (Simplified)
121-
- 🇪🇸 Spanish
122-
- 🇫🇷 French
123-
- 🇷🇺 Russian
124-
- 🇯🇵 Japanese
125-
- 🇰🇷 Korean
126-
- 🇻🇳 Vietnamese
136+
- English (default)
137+
- Chinese (Simplified)
138+
- Spanish
139+
- French
140+
- Russian
141+
- Japanese
142+
- Korean
143+
- Vietnamese
144+
145+
---
127146

128147
## Token Cost Analysis
129148

@@ -143,51 +162,60 @@ Universal Commit Assistant is designed to be cost-effective while providing high
143162

144163
Based on enhanced analysis (~2,500 input tokens + 150 output tokens average):
145164

146-
| Provider | Model | Cost per Commit | Cost per 100 Commits |
147-
|----------|-------|-----------------|---------------------|
148-
| **OpenAI** | GPT-5 Mini | ~$0.0005 | ~$0.05 |
149-
| **OpenAI** | GPT-5 | ~$0.008 | ~$0.80 |
150-
| **Anthropic** | Claude Haiku 4.5 | ~$0.003 | ~$0.30 |
151-
| **Anthropic** | Claude Sonnet 4.5 | ~$0.010 | ~$1.00 |
152-
| **DeepSeek** | deepseek-chat | ~$0.0009 | ~$0.09 |
153-
| **Gemini** | 2.5 Flash | ~$0.0003 | ~$0.03 |
154-
| **Ollama/LM Studio** | Local Models | **FREE** | **FREE** |
165+
| Provider | Model | Cost per Commit | Cost per 100 Commits |
166+
| -------------------- | ------------------ | --------------- | -------------------- |
167+
| **OpenAI** | GPT-5.1 | ~$0.0008 | ~$0.08 |
168+
| **OpenAI** | GPT-5.1 Codex | ~$0.005 | ~$0.50 |
169+
| **Anthropic** | Claude Haiku 4.5 | ~$0.003 | ~$0.30 |
170+
| **Anthropic** | Claude Sonnet 4.5 | ~$0.010 | ~$1.00 |
171+
| **DeepSeek** | deepseek-chat | ~$0.0009 | ~$0.09 |
172+
| **Gemini** | Gemini 3 Pro | ~$0.0003 | ~$0.03 |
173+
| **Qwen** | Qwen Plus | ~$0.0006 | ~$0.06 |
174+
| **Ollama/LM Studio** | Local Models | **FREE** | **FREE** |
155175

156176
### Cost Optimization Tips
157177

158-
1. **Use Cost-Effective Providers**: Gemini Flash, DeepSeek, and GPT-5 Mini offer excellent quality at low cost
178+
1. **Use Cost-Effective Providers**: Gemini 3 Pro, DeepSeek, Qwen, and GPT-5.1 offer excellent quality at low cost
159179
2. **Adjust Max Diff Length**: Reduce `maxDiffLength` to 2000 for simpler commits
160180
3. **Local Models**: Use Ollama or LM Studio for completely free operation
161181
4. **Smart Defaults**: The extension uses intelligent truncation to minimize tokens while preserving context
162182

163183
**Bottom Line**: Even with premium models, most users spend less than $1/month on commit message generation.
164184

185+
---
186+
165187
## Requirements
166188

167189
- **VS Code**: Version 1.95.0 or higher
168190
- **Git Repository**: With changes to commit
169191
- **AI Provider**: API key (cloud) or running server (local)
170192

193+
---
194+
171195
## Privacy & Security
172196

173197
- **Secure Storage**: API keys stored in VS Code's encrypted secret storage
174198
- **No Data Retention**: Your code never leaves your machine with local providers
175199
- **Optional Analytics**: Usage tracking can be disabled (no sensitive data collected)
176200
- **Open Source**: Full transparency with MIT license
177201

202+
---
203+
178204
## Need Help?
179205

180-
- 📖 **Documentation**: See configuration examples above
181-
- 🐛 **Issues**: [Report bugs on GitHub](https://github.com/gianged/universal-commit-assistant/issues)
182-
- 💡 **Feature Requests**: [Suggest improvements](https://github.com/gianged/universal-commit-assistant/issues)
183-
-**Rate & Review**: Help others discover this extension
206+
- **Documentation**: See configuration examples above
207+
- **Issues**: [Report bugs on GitHub](https://github.com/gianged/universal-commit-assistant/issues)
208+
- **Feature Requests**: [Suggest improvements](https://github.com/gianged/universal-commit-assistant/issues)
209+
- **Rate & Review**: Help others discover this extension
210+
211+
---
184212

185213
## License
186214

187215
MIT License - see [LICENSE](LICENSE) file for details.
188216

189217
---
190218

191-
**Made with ❤️ for developers who value their time**
219+
**Made for developers who value their time**
192220

193221
_Save hours every week on commit messages. Install now and never write another commit message manually._

0 commit comments

Comments
 (0)