Commit a5b1164
committed
feat: add comprehensive OpenAI and Anthropic provider support
- Add complete OpenAI template with 35 models including GPT-5, GPT-4.1, o1/o3/o4 series, DALL-E, Whisper, TTS, and embeddings
- Add comprehensive Anthropic template with 8 Claude models (Opus 4.1, Opus 4, Sonnet 4, 3.7 Sonnet, 3.5 Sonnet variants, Haiku)
- Implement intelligent multi-pattern matching system via 'match' arrays for handling versioned model IDs
- Add auto-configuration for unmatched API models with smart capability detection
- Support template-based fallback when no API key is provided
- Update configuration examples with OpenAI and Anthropic provider settings
- Enhance model fetching to handle 65+ OpenAI models and 8 Anthropic models
- Add comprehensive logging for matched vs auto-configured models
The new matching system resolves API model ID variations (e.g., gpt-5-nano-2025-08-07 → gpt-5-nano template)
while providing intelligent defaults for unknown models, significantly improving coverage and reliability.1 parent 26eea2c commit a5b1164
File tree
20 files changed
+7742
-5136
lines changed- config
- dist
- src
- providers
- templates
20 files changed
+7742
-5136
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
53 | 71 | | |
54 | 72 | | |
55 | 73 | | |
| |||
73 | 91 | | |
74 | 92 | | |
75 | 93 | | |
| 94 | + | |
| 95 | + | |
76 | 96 | | |
77 | 97 | | |
78 | 98 | | |
| |||
0 commit comments