genai-lite 0.5.1 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,82 @@
1
1
  [
2
+ {
3
+ "id": "anthropic-claude-opus-4-5-20251101-default",
4
+ "displayName": "Anthropic - Claude Opus 4.5",
5
+ "description": "Default preset for Claude Opus 4.5.",
6
+ "providerId": "anthropic",
7
+ "modelId": "claude-opus-4-5-20251101",
8
+ "settings": {
9
+ "temperature": 0.7,
10
+ "reasoning": {
11
+ "enabled": false
12
+ }
13
+ }
14
+ },
15
+ {
16
+ "id": "anthropic-claude-opus-4-5-20251101-thinking",
17
+ "displayName": "Anthropic - Claude Opus 4.5 (Thinking)",
18
+ "description": "Claude Opus 4.5 with reasoning enabled for complex problem solving.",
19
+ "providerId": "anthropic",
20
+ "modelId": "claude-opus-4-5-20251101",
21
+ "settings": {
22
+ "temperature": 0.7,
23
+ "reasoning": {
24
+ "enabled": true
25
+ }
26
+ }
27
+ },
28
+ {
29
+ "id": "anthropic-claude-sonnet-4-5-20250929-default",
30
+ "displayName": "Anthropic - Claude Sonnet 4.5",
31
+ "description": "Default preset for Claude Sonnet 4.5.",
32
+ "providerId": "anthropic",
33
+ "modelId": "claude-sonnet-4-5-20250929",
34
+ "settings": {
35
+ "temperature": 0.7,
36
+ "reasoning": {
37
+ "enabled": false
38
+ }
39
+ }
40
+ },
41
+ {
42
+ "id": "anthropic-claude-sonnet-4-5-20250929-thinking",
43
+ "displayName": "Anthropic - Claude Sonnet 4.5 (Thinking)",
44
+ "description": "Claude Sonnet 4.5 with reasoning enabled for step-by-step thinking.",
45
+ "providerId": "anthropic",
46
+ "modelId": "claude-sonnet-4-5-20250929",
47
+ "settings": {
48
+ "temperature": 0.7,
49
+ "reasoning": {
50
+ "enabled": true
51
+ }
52
+ }
53
+ },
54
+ {
55
+ "id": "anthropic-claude-haiku-4-5-20251001-default",
56
+ "displayName": "Anthropic - Claude Haiku 4.5",
57
+ "description": "Default preset for Claude Haiku 4.5.",
58
+ "providerId": "anthropic",
59
+ "modelId": "claude-haiku-4-5-20251001",
60
+ "settings": {
61
+ "temperature": 0.7,
62
+ "reasoning": {
63
+ "enabled": false
64
+ }
65
+ }
66
+ },
67
+ {
68
+ "id": "anthropic-claude-haiku-4-5-20251001-thinking",
69
+ "displayName": "Anthropic - Claude Haiku 4.5 (Thinking)",
70
+ "description": "Claude Haiku 4.5 with reasoning enabled for fast thinking tasks.",
71
+ "providerId": "anthropic",
72
+ "modelId": "claude-haiku-4-5-20251001",
73
+ "settings": {
74
+ "temperature": 0.7,
75
+ "reasoning": {
76
+ "enabled": true
77
+ }
78
+ }
79
+ },
2
80
  {
3
81
  "id": "anthropic-claude-sonnet-4-20250514-default",
4
82
  "displayName": "Anthropic - Claude Sonnet 4",
@@ -97,6 +175,78 @@
97
175
  "temperature": 0.7
98
176
  }
99
177
  },
178
+ {
179
+ "id": "google-gemini-3-pro-preview",
180
+ "displayName": "Google - Gemini 3 Pro (Preview)",
181
+ "description": "Default preset for Gemini 3 Pro Preview.",
182
+ "providerId": "gemini",
183
+ "modelId": "gemini-3-pro-preview",
184
+ "settings": {
185
+ "temperature": 0.7,
186
+ "geminiSafetySettings": [
187
+ { "category": "HARM_CATEGORY_HATE_SPEECH", "threshold": "BLOCK_NONE" },
188
+ {
189
+ "category": "HARM_CATEGORY_SEXUALLY_EXPLICIT",
190
+ "threshold": "BLOCK_NONE"
191
+ },
192
+ {
193
+ "category": "HARM_CATEGORY_DANGEROUS_CONTENT",
194
+ "threshold": "BLOCK_NONE"
195
+ },
196
+ { "category": "HARM_CATEGORY_HARASSMENT", "threshold": "BLOCK_NONE" }
197
+ ]
198
+ }
199
+ },
200
+ {
201
+ "id": "google-gemini-3-flash-preview",
202
+ "displayName": "Google - Gemini 3 Flash (Preview)",
203
+ "description": "Default preset for Gemini 3 Flash Preview.",
204
+ "providerId": "gemini",
205
+ "modelId": "gemini-3-flash-preview",
206
+ "settings": {
207
+ "temperature": 0.7,
208
+ "geminiSafetySettings": [
209
+ { "category": "HARM_CATEGORY_HATE_SPEECH", "threshold": "BLOCK_NONE" },
210
+ {
211
+ "category": "HARM_CATEGORY_SEXUALLY_EXPLICIT",
212
+ "threshold": "BLOCK_NONE"
213
+ },
214
+ {
215
+ "category": "HARM_CATEGORY_DANGEROUS_CONTENT",
216
+ "threshold": "BLOCK_NONE"
217
+ },
218
+ { "category": "HARM_CATEGORY_HARASSMENT", "threshold": "BLOCK_NONE" }
219
+ ],
220
+ "reasoning": {
221
+ "enabled": false
222
+ }
223
+ }
224
+ },
225
+ {
226
+ "id": "google-gemini-3-flash-preview-thinking",
227
+ "displayName": "Google - Gemini 3 Flash (Preview, Thinking)",
228
+ "description": "Gemini 3 Flash Preview with dynamic reasoning enabled.",
229
+ "providerId": "gemini",
230
+ "modelId": "gemini-3-flash-preview",
231
+ "settings": {
232
+ "temperature": 0.7,
233
+ "geminiSafetySettings": [
234
+ { "category": "HARM_CATEGORY_HATE_SPEECH", "threshold": "BLOCK_NONE" },
235
+ {
236
+ "category": "HARM_CATEGORY_SEXUALLY_EXPLICIT",
237
+ "threshold": "BLOCK_NONE"
238
+ },
239
+ {
240
+ "category": "HARM_CATEGORY_DANGEROUS_CONTENT",
241
+ "threshold": "BLOCK_NONE"
242
+ },
243
+ { "category": "HARM_CATEGORY_HARASSMENT", "threshold": "BLOCK_NONE" }
244
+ ],
245
+ "reasoning": {
246
+ "enabled": true
247
+ }
248
+ }
249
+ },
100
250
  {
101
251
  "id": "google-gemini-2.5-pro",
102
252
  "displayName": "Google - Gemini 2.5 Pro",
@@ -170,11 +320,11 @@
170
320
  }
171
321
  },
172
322
  {
173
- "id": "google-gemini-2.5-flash-lite-preview",
174
- "displayName": "Google - Gemini 2.5 Flash-Lite Preview",
323
+ "id": "google-gemini-2.5-flash-lite",
324
+ "displayName": "Google - Gemini 2.5 Flash-Lite",
175
325
  "description": "Default preset for Gemini 2.5 Flash-Lite.",
176
326
  "providerId": "gemini",
177
- "modelId": "gemini-2.5-flash-lite-preview-06-17",
327
+ "modelId": "gemini-2.5-flash-lite",
178
328
  "settings": {
179
329
  "temperature": 0.7,
180
330
  "geminiSafetySettings": [
@@ -195,11 +345,11 @@
195
345
  }
196
346
  },
197
347
  {
198
- "id": "google-gemini-2.5-flash-lite-preview-thinking",
199
- "displayName": "Google - Gemini 2.5 Flash-Lite Preview (Thinking)",
348
+ "id": "google-gemini-2.5-flash-lite-thinking",
349
+ "displayName": "Google - Gemini 2.5 Flash-Lite (Thinking)",
200
350
  "description": "Gemini 2.5 Flash-Lite with dynamic reasoning for efficient thinking.",
201
351
  "providerId": "gemini",
202
- "modelId": "gemini-2.5-flash-lite-preview-06-17",
352
+ "modelId": "gemini-2.5-flash-lite",
203
353
  "settings": {
204
354
  "temperature": 0.7,
205
355
  "geminiSafetySettings": [
@@ -263,6 +413,132 @@
263
413
  ]
264
414
  }
265
415
  },
416
+ {
417
+ "id": "google-gemma-3-27b-default",
418
+ "displayName": "Google - Gemma 3 27B (Free)",
419
+ "description": "Default preset for Gemma 3 27B. Open-weight multimodal model, free via Gemini API.",
420
+ "providerId": "gemini",
421
+ "modelId": "gemma-3-27b-it",
422
+ "settings": {
423
+ "temperature": 0.7,
424
+ "geminiSafetySettings": [
425
+ { "category": "HARM_CATEGORY_HATE_SPEECH", "threshold": "BLOCK_NONE" },
426
+ {
427
+ "category": "HARM_CATEGORY_SEXUALLY_EXPLICIT",
428
+ "threshold": "BLOCK_NONE"
429
+ },
430
+ {
431
+ "category": "HARM_CATEGORY_DANGEROUS_CONTENT",
432
+ "threshold": "BLOCK_NONE"
433
+ },
434
+ { "category": "HARM_CATEGORY_HARASSMENT", "threshold": "BLOCK_NONE" }
435
+ ]
436
+ }
437
+ },
438
+ {
439
+ "id": "openai-gpt-5.2-default",
440
+ "displayName": "OpenAI - GPT-5.2",
441
+ "description": "Default preset for GPT-5.2.",
442
+ "providerId": "openai",
443
+ "modelId": "gpt-5.2",
444
+ "settings": {
445
+ "temperature": 0.7,
446
+ "reasoning": {
447
+ "enabled": false
448
+ }
449
+ }
450
+ },
451
+ {
452
+ "id": "openai-gpt-5.2-thinking",
453
+ "displayName": "OpenAI - GPT-5.2 (Thinking)",
454
+ "description": "GPT-5.2 with reasoning enabled for complex problem solving.",
455
+ "providerId": "openai",
456
+ "modelId": "gpt-5.2",
457
+ "settings": {
458
+ "temperature": 0.7,
459
+ "reasoning": {
460
+ "enabled": true
461
+ }
462
+ }
463
+ },
464
+ {
465
+ "id": "openai-gpt-5.1-default",
466
+ "displayName": "OpenAI - GPT-5.1",
467
+ "description": "Default preset for GPT-5.1.",
468
+ "providerId": "openai",
469
+ "modelId": "gpt-5.1",
470
+ "settings": {
471
+ "temperature": 0.7,
472
+ "reasoning": {
473
+ "enabled": false
474
+ }
475
+ }
476
+ },
477
+ {
478
+ "id": "openai-gpt-5.1-thinking",
479
+ "displayName": "OpenAI - GPT-5.1 (Thinking)",
480
+ "description": "GPT-5.1 with reasoning enabled for complex problem solving.",
481
+ "providerId": "openai",
482
+ "modelId": "gpt-5.1",
483
+ "settings": {
484
+ "temperature": 0.7,
485
+ "reasoning": {
486
+ "enabled": true
487
+ }
488
+ }
489
+ },
490
+ {
491
+ "id": "openai-gpt-5-mini-default",
492
+ "displayName": "OpenAI - GPT-5 Mini",
493
+ "description": "Default preset for GPT-5 Mini.",
494
+ "providerId": "openai",
495
+ "modelId": "gpt-5-mini-2025-08-07",
496
+ "settings": {
497
+ "temperature": 0.7,
498
+ "reasoning": {
499
+ "enabled": false
500
+ }
501
+ }
502
+ },
503
+ {
504
+ "id": "openai-gpt-5-mini-thinking",
505
+ "displayName": "OpenAI - GPT-5 Mini (Thinking)",
506
+ "description": "GPT-5 Mini with reasoning enabled.",
507
+ "providerId": "openai",
508
+ "modelId": "gpt-5-mini-2025-08-07",
509
+ "settings": {
510
+ "temperature": 0.7,
511
+ "reasoning": {
512
+ "enabled": true
513
+ }
514
+ }
515
+ },
516
+ {
517
+ "id": "openai-gpt-5-nano-default",
518
+ "displayName": "OpenAI - GPT-5 Nano",
519
+ "description": "Default preset for GPT-5 Nano.",
520
+ "providerId": "openai",
521
+ "modelId": "gpt-5-nano-2025-08-07",
522
+ "settings": {
523
+ "temperature": 0.7,
524
+ "reasoning": {
525
+ "enabled": false
526
+ }
527
+ }
528
+ },
529
+ {
530
+ "id": "openai-gpt-5-nano-thinking",
531
+ "displayName": "OpenAI - GPT-5 Nano (Thinking)",
532
+ "description": "GPT-5 Nano with reasoning enabled.",
533
+ "providerId": "openai",
534
+ "modelId": "gpt-5-nano-2025-08-07",
535
+ "settings": {
536
+ "temperature": 0.7,
537
+ "reasoning": {
538
+ "enabled": true
539
+ }
540
+ }
541
+ },
266
542
  {
267
543
  "id": "openai-o4-mini-default",
268
544
  "displayName": "OpenAI - o4-mini",
@@ -284,7 +284,80 @@ function detectGgufCapabilities(ggufFilename) {
284
284
  * See: https://github.com/cline/cline/blob/main/src/shared/api.ts
285
285
  */
286
286
  exports.SUPPORTED_MODELS = [
287
- // Anthropic Models
287
+ // Anthropic Models - Claude 4.5 Series
288
+ {
289
+ id: "claude-opus-4-5-20251101",
290
+ name: "Claude Opus 4.5",
291
+ providerId: "anthropic",
292
+ contextWindow: 200000,
293
+ inputPrice: 5.0,
294
+ outputPrice: 25.0,
295
+ description: "Most powerful Claude model with enhanced reasoning and capabilities",
296
+ maxTokens: 8192,
297
+ supportsImages: true,
298
+ supportsPromptCache: true,
299
+ cacheWritesPrice: 6.25,
300
+ cacheReadsPrice: 0.5,
301
+ reasoning: {
302
+ supported: true,
303
+ enabledByDefault: false,
304
+ canDisable: true,
305
+ minBudget: 1024,
306
+ maxBudget: 32000,
307
+ defaultBudget: 10000,
308
+ outputType: 'summary',
309
+ requiresStreamingAbove: 21333,
310
+ },
311
+ },
312
+ {
313
+ id: "claude-sonnet-4-5-20250929",
314
+ name: "Claude Sonnet 4.5",
315
+ providerId: "anthropic",
316
+ contextWindow: 200000,
317
+ inputPrice: 3.0,
318
+ outputPrice: 15.0,
319
+ description: "Advanced Claude model balancing intelligence, speed, and cost",
320
+ maxTokens: 8192,
321
+ supportsImages: true,
322
+ supportsPromptCache: true,
323
+ cacheWritesPrice: 3.75,
324
+ cacheReadsPrice: 0.3,
325
+ reasoning: {
326
+ supported: true,
327
+ enabledByDefault: false,
328
+ canDisable: true,
329
+ minBudget: 1024,
330
+ maxBudget: 32000,
331
+ defaultBudget: 10000,
332
+ outputType: 'summary',
333
+ requiresStreamingAbove: 21333,
334
+ },
335
+ },
336
+ {
337
+ id: "claude-haiku-4-5-20251001",
338
+ name: "Claude Haiku 4.5",
339
+ providerId: "anthropic",
340
+ contextWindow: 200000,
341
+ inputPrice: 1.0,
342
+ outputPrice: 5.0,
343
+ description: "Fast and cost-effective Claude model with reasoning capabilities",
344
+ maxTokens: 8192,
345
+ supportsImages: true,
346
+ supportsPromptCache: true,
347
+ cacheWritesPrice: 1.25,
348
+ cacheReadsPrice: 0.1,
349
+ reasoning: {
350
+ supported: true,
351
+ enabledByDefault: false,
352
+ canDisable: true,
353
+ minBudget: 1024,
354
+ maxBudget: 32000,
355
+ defaultBudget: 10000,
356
+ outputType: 'summary',
357
+ requiresStreamingAbove: 21333,
358
+ },
359
+ },
360
+ // Anthropic Models - Claude 4 Series
288
361
  {
289
362
  id: "claude-sonnet-4-20250514",
290
363
  name: "Claude Sonnet 4",
@@ -385,7 +458,60 @@ exports.SUPPORTED_MODELS = [
385
458
  cacheWritesPrice: 1.0,
386
459
  cacheReadsPrice: 0.08,
387
460
  },
388
- // Google Gemini Models
461
+ // Google Gemini Models - Gemini 3 Series (Preview)
462
+ {
463
+ id: "gemini-3-pro-preview",
464
+ name: "Gemini 3 Pro (Preview)",
465
+ providerId: "gemini",
466
+ contextWindow: 1048576,
467
+ inputPrice: 2.0,
468
+ outputPrice: 12.0,
469
+ description: "Next-generation Gemini model with advanced reasoning and thinking capabilities",
470
+ maxTokens: 8192,
471
+ supportsImages: true,
472
+ supportsPromptCache: true,
473
+ cacheReadsPrice: 0.5,
474
+ reasoning: {
475
+ supported: true,
476
+ enabledByDefault: true,
477
+ canDisable: false,
478
+ minBudget: 1024,
479
+ maxBudget: 65536,
480
+ defaultBudget: -1,
481
+ dynamicBudget: {
482
+ value: -1,
483
+ description: "Let model decide based on query complexity",
484
+ },
485
+ outputType: 'summary',
486
+ },
487
+ },
488
+ {
489
+ id: "gemini-3-flash-preview",
490
+ name: "Gemini 3 Flash (Preview)",
491
+ providerId: "gemini",
492
+ contextWindow: 1048576,
493
+ inputPrice: 0.5,
494
+ outputPrice: 3.0,
495
+ description: "Fast Gemini 3 model with reasoning capabilities and large output support",
496
+ maxTokens: 65536,
497
+ supportsImages: true,
498
+ supportsPromptCache: true,
499
+ cacheReadsPrice: 0.125,
500
+ reasoning: {
501
+ supported: true,
502
+ enabledByDefault: true,
503
+ canDisable: true,
504
+ minBudget: 1024,
505
+ maxBudget: 24576,
506
+ defaultBudget: -1,
507
+ dynamicBudget: {
508
+ value: -1,
509
+ description: "Let model decide based on query complexity",
510
+ },
511
+ outputType: 'summary',
512
+ },
513
+ },
514
+ // Google Gemini Models - Gemini 2.5 Series
389
515
  {
390
516
  id: "gemini-2.5-pro",
391
517
  name: "Gemini 2.5 Pro",
@@ -438,8 +564,8 @@ exports.SUPPORTED_MODELS = [
438
564
  },
439
565
  },
440
566
  {
441
- id: "gemini-2.5-flash-lite-preview-06-17",
442
- name: "Gemini 2.5 Flash-Lite Preview",
567
+ id: "gemini-2.5-flash-lite",
568
+ name: "Gemini 2.5 Flash-Lite",
443
569
  providerId: "gemini",
444
570
  contextWindow: 1000000,
445
571
  inputPrice: 0.1,
@@ -488,7 +614,97 @@ exports.SUPPORTED_MODELS = [
488
614
  supportsImages: true,
489
615
  supportsPromptCache: false,
490
616
  },
491
- // OpenAI Models
617
+ // Google Gemma 3 Models (Open weights, free via Gemini API)
618
+ {
619
+ id: "gemma-3-27b-it",
620
+ name: "Gemma 3 27B",
621
+ providerId: "gemini",
622
+ contextWindow: 131072,
623
+ inputPrice: 0.0,
624
+ outputPrice: 0.0,
625
+ description: "Google's largest open model with multimodal capabilities and 128K context (free via Gemini API)",
626
+ maxTokens: 8192,
627
+ supportsImages: true,
628
+ supportsPromptCache: false,
629
+ },
630
+ // OpenAI Models - GPT-5 Series
631
+ {
632
+ id: "gpt-5.2",
633
+ name: "GPT-5.2",
634
+ providerId: "openai",
635
+ contextWindow: 272000,
636
+ inputPrice: 1.75,
637
+ outputPrice: 14.0,
638
+ description: "Latest GPT-5 flagship model with advanced reasoning",
639
+ maxTokens: 8192,
640
+ supportsImages: true,
641
+ supportsPromptCache: true,
642
+ cacheReadsPrice: 0.4375,
643
+ reasoning: {
644
+ supported: true,
645
+ enabledByDefault: false,
646
+ canDisable: true,
647
+ outputType: 'none',
648
+ },
649
+ },
650
+ {
651
+ id: "gpt-5.1",
652
+ name: "GPT-5.1",
653
+ providerId: "openai",
654
+ contextWindow: 272000,
655
+ inputPrice: 1.25,
656
+ outputPrice: 10.0,
657
+ description: "GPT-5 model with strong reasoning capabilities",
658
+ maxTokens: 8192,
659
+ supportsImages: true,
660
+ supportsPromptCache: true,
661
+ cacheReadsPrice: 0.3125,
662
+ reasoning: {
663
+ supported: true,
664
+ enabledByDefault: false,
665
+ canDisable: true,
666
+ outputType: 'none',
667
+ },
668
+ },
669
+ {
670
+ id: "gpt-5-mini-2025-08-07",
671
+ name: "GPT-5 Mini",
672
+ providerId: "openai",
673
+ contextWindow: 272000,
674
+ inputPrice: 0.25,
675
+ outputPrice: 2.0,
676
+ description: "Compact GPT-5 model balancing cost and capability",
677
+ maxTokens: 8192,
678
+ supportsImages: true,
679
+ supportsPromptCache: true,
680
+ cacheReadsPrice: 0.0625,
681
+ reasoning: {
682
+ supported: true,
683
+ enabledByDefault: false,
684
+ canDisable: true,
685
+ outputType: 'none',
686
+ },
687
+ },
688
+ {
689
+ id: "gpt-5-nano-2025-08-07",
690
+ name: "GPT-5 Nano",
691
+ providerId: "openai",
692
+ contextWindow: 272000,
693
+ inputPrice: 0.05,
694
+ outputPrice: 0.4,
695
+ description: "Ultra-efficient GPT-5 model for high-volume tasks",
696
+ maxTokens: 8192,
697
+ supportsImages: true,
698
+ supportsPromptCache: true,
699
+ cacheReadsPrice: 0.0125,
700
+ reasoning: {
701
+ supported: true,
702
+ enabledByDefault: false,
703
+ canDisable: true,
704
+ outputType: 'none',
705
+ },
706
+ },
707
+ // OpenAI Models - o-series
492
708
  {
493
709
  id: "o4-mini",
494
710
  name: "o4-mini",
@@ -509,6 +725,7 @@ exports.SUPPORTED_MODELS = [
509
725
  outputType: 'none',
510
726
  },
511
727
  },
728
+ // OpenAI Models - GPT-4.1 Series
512
729
  {
513
730
  id: "gpt-4.1",
514
731
  name: "GPT-4.1",
@@ -2,7 +2,7 @@
2
2
  * Type definitions for image generation API
3
3
  *
4
4
  * This module contains all types for the ImageService and image generation adapters.
5
- * Based on the design specification in docs/dev/2025-10-22-genai-lite-image-api-design.md
5
+ * Based on the design specification in docs/devlog/2025-10-22-genai-lite-image-api-design.md
6
6
  */
7
7
  /**
8
8
  * Image provider ID type - represents a unique identifier for an image generation provider
@@ -3,6 +3,6 @@
3
3
  * Type definitions for image generation API
4
4
  *
5
5
  * This module contains all types for the ImageService and image generation adapters.
6
- * Based on the design specification in docs/dev/2025-10-22-genai-lite-image-api-design.md
6
+ * Based on the design specification in docs/devlog/2025-10-22-genai-lite-image-api-design.md
7
7
  */
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "genai-lite",
3
- "version": "0.5.1",
3
+ "version": "0.6.1",
4
4
  "description": "A lightweight, portable toolkit for interacting with various Generative AI APIs.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",