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
feat: add Groq, DeepSeek providers and fix Tokenflux JSON parsing
- Add Groq provider with OpenAI-compatible API support (requires API key)
- Add DeepSeek provider using web scraping from documentation
- Fix Tokenflux provider JSON parsing by simplifying struct definitions
- Update README with comprehensive provider documentation
- Add configuration examples for all new providers
- Support 8 providers total: PPInfra, OpenRouter, Gemini, Vercel, GitHub AI, Tokenflux, Groq, DeepSeek
- Generate updated JSON files for all providers
api_key_env = "GEMINI_API_KEY"# or use api_key = "your-key"
150
155
rate_limit = 10
151
156
timeout = 60
157
+
158
+
[providers.groq]
159
+
api_url = "https://api.groq.com/openai/v1/models"
160
+
api_key_env = "GROQ_API_KEY"
161
+
rate_limit = 10
162
+
timeout = 30
152
163
```
153
164
154
165
**🔒 Security Note**: The actual `config/providers.toml` file is ignored by git to prevent accidental API key commits. Always use the example file as a template.
@@ -162,8 +173,8 @@ The tool supports flexible API key configuration with multiple methods and clear
162
173
**Method 1: Environment Variables (Recommended)**
163
174
```bash
164
175
# Only for providers that require API keys
165
-
export GEMINI_API_KEY="your-key-here"
166
-
#export OPENAI_API_KEY="your-key-here" # When OpenAI provider is added
176
+
export GEMINI_API_KEY="your-key-here"# Optional for Gemini (enhances model list)
177
+
exportGROQ_API_KEY="your-key-here"# Required for Groq
# Option C: Direct API key (not recommended for production)
184
195
# api_key = "your-gemini-key-here"
196
+
197
+
[providers.groq]
198
+
api_url = "https://api.groq.com/openai/v1/models"
199
+
api_key_env = "GROQ_API_KEY"
200
+
# Or use direct API key (not recommended)
201
+
# api_key = "your-groq-key-here"
185
202
```
186
203
187
204
#### API Key Priority (High to Low)
@@ -199,7 +216,12 @@ This allows you to:
199
216
200
217
-**PPInfra**: ✅ No API key required - uses public API
201
218
-**OpenRouter**: ✅ No API key required - uses public model listing API
219
+
-**Vercel AI Gateway**: ✅ No API key required - uses public AI Gateway API
220
+
-**GitHub AI Models**: ✅ No API key required - uses public model listing API
221
+
-**Tokenflux**: ✅ No API key required - uses public marketplace API
222
+
-**DeepSeek**: ✅ No API key required - uses web scraping from documentation
202
223
-**Gemini**: ⚠️ Optional API key - uses hybrid web scraping + API approach
224
+
-**Groq**: ❌ API key required - private API access only
203
225
204
226
### Gemini Provider Details
205
227
@@ -216,6 +238,21 @@ The Gemini provider implements a unique **hybrid approach**:
216
238
217
239
**Why Hybrid?** The official Gemini API only provides model names, so web scraping is always required to get comprehensive capability information (vision, function calling, reasoning, context lengths, etc.).
218
240
241
+
### DeepSeek Provider Details
242
+
243
+
The DeepSeek provider uses **pure web scraping** from the official [DeepSeek API documentation](https://api-docs.deepseek.com/quick_start/pricing):
244
+
245
+
**How It Works:**
246
+
1.**Documentation Scraping**: Parses model tables from the pricing/models page
247
+
2.**Fallback Models**: Uses known model definitions if scraping fails
248
+
3.**Capability Detection**: Analyzes model descriptions for feature detection
249
+
250
+
**Supported Models:**
251
+
-**deepseek-chat**: DeepSeek-V3.1 (Non-thinking Mode) with function calling support
252
+
-**deepseek-reasoner**: DeepSeek-V3.1 (Thinking Mode) with advanced reasoning capabilities
253
+
254
+
**Why Web Scraping?** DeepSeek doesn't provide a public model listing API, so documentation parsing ensures we capture the latest model information and specifications.
255
+
219
256
## 🤖 GitHub Actions Automation
220
257
221
258
The project includes GitHub Actions workflow with multiple trigger methods:
@@ -293,9 +330,14 @@ For detailed development guide, see [Architecture Documentation](docs/architectu
293
330
294
331
## 📊 Currently Supported Providers
295
332
296
-
- ✅ **PPInfra** - 38 models with reasoning, function calling, and vision capability detection
333
+
- ✅ **PPInfra** - 38+ models with reasoning, function calling, and vision capability detection
297
334
- ✅ **OpenRouter** - 600+ models with comprehensive capability detection and metadata
298
335
- ✅ **Google Gemini** - Gemini models with hybrid API + web scraping approach for complete metadata
336
+
- ✅ **Vercel AI Gateway** - 200+ hosted models with pricing and capability information
337
+
- ✅ **GitHub AI Models** - 50+ models from GitHub's AI marketplace
338
+
- ✅ **Tokenflux** - 274+ marketplace models with detailed specifications
0 commit comments