@llmgateway/ai-sdk-provider 2.5.1 → 3.0.0

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.
package/README.md CHANGED
@@ -4,10 +4,11 @@ Forked from https://github.com/OpenRouterTeam/ai-sdk-provider
4
4
 
5
5
  The [LLMGateway](https://llmgateway.io/) provider for the [Vercel AI SDK](https://sdk.vercel.ai/docs) gives access to over 300 large language model on the LLMGateway chat and completion APIs.
6
6
 
7
- # AI SDK v4 & v5 support
7
+ # AI SDK version support
8
8
 
9
9
  - For AI SDK v4 or lower, use `@llmgateway/ai-sdk-provider@1.x.x`.
10
10
  - For AI SDK v5, use `@llmgateway/ai-sdk-provider@2.x.x`.
11
+ - For AI SDK v6, use `@llmgateway/ai-sdk-provider@3.x.x`.
11
12
 
12
13
  ## Setup
13
14
 
package/dist/index.d.mts CHANGED
@@ -363,7 +363,7 @@ declare const models: [{
363
363
  readonly maxOutput: undefined;
364
364
  readonly streaming: true;
365
365
  readonly vision: true;
366
- readonly reasoning: true;
366
+ readonly reasoningText: true;
367
367
  readonly tools: false;
368
368
  }];
369
369
  readonly jsonOutput: true;
@@ -384,7 +384,7 @@ declare const models: [{
384
384
  readonly streaming: false;
385
385
  readonly vision: false;
386
386
  readonly tools: false;
387
- readonly reasoning: false;
387
+ readonly reasoningText: false;
388
388
  readonly supportsResponsesApi: false;
389
389
  }];
390
390
  readonly jsonOutput: true;
@@ -484,7 +484,7 @@ declare const models: [{
484
484
  readonly streaming: true;
485
485
  readonly vision: false;
486
486
  readonly tools: true;
487
- readonly reasoning: true;
487
+ readonly reasoningText: true;
488
488
  }];
489
489
  readonly jsonOutput: true;
490
490
  }, {
@@ -504,7 +504,7 @@ declare const models: [{
504
504
  readonly streaming: true;
505
505
  readonly vision: false;
506
506
  readonly tools: true;
507
- readonly reasoning: true;
507
+ readonly reasoningText: true;
508
508
  }];
509
509
  readonly jsonOutput: true;
510
510
  }, {
@@ -522,7 +522,7 @@ declare const models: [{
522
522
  readonly requestPrice: 0;
523
523
  readonly contextSize: 400000;
524
524
  readonly maxOutput: 128000;
525
- readonly reasoning: true;
525
+ readonly reasoningText: true;
526
526
  readonly streaming: true;
527
527
  readonly vision: true;
528
528
  readonly tools: true;
@@ -544,7 +544,7 @@ declare const models: [{
544
544
  readonly requestPrice: 0;
545
545
  readonly contextSize: 400000;
546
546
  readonly maxOutput: 128000;
547
- readonly reasoning: true;
547
+ readonly reasoningText: true;
548
548
  readonly streaming: true;
549
549
  readonly vision: true;
550
550
  readonly tools: true;
@@ -566,7 +566,7 @@ declare const models: [{
566
566
  readonly requestPrice: 0;
567
567
  readonly contextSize: 400000;
568
568
  readonly maxOutput: 128000;
569
- readonly reasoning: true;
569
+ readonly reasoningText: true;
570
570
  readonly streaming: true;
571
571
  readonly vision: false;
572
572
  readonly tools: true;
@@ -630,7 +630,7 @@ declare const models: [{
630
630
  readonly maxOutput: 8192;
631
631
  readonly streaming: true;
632
632
  readonly vision: false;
633
- readonly reasoning: true;
633
+ readonly reasoningText: true;
634
634
  readonly tools: true;
635
635
  }];
636
636
  }, {
@@ -725,7 +725,7 @@ declare const models: [{
725
725
  readonly maxOutput: 32000;
726
726
  readonly streaming: true;
727
727
  readonly vision: true;
728
- readonly reasoning: true;
728
+ readonly reasoningText: true;
729
729
  readonly tools: true;
730
730
  }];
731
731
  }, {
@@ -1109,7 +1109,7 @@ declare const models: [{
1109
1109
  readonly contextSize: 1000000;
1110
1110
  readonly maxOutput: undefined;
1111
1111
  readonly streaming: true;
1112
- readonly reasoning: false;
1112
+ readonly reasoningText: false;
1113
1113
  readonly vision: false;
1114
1114
  readonly tools: false;
1115
1115
  }];
@@ -1128,7 +1128,7 @@ declare const models: [{
1128
1128
  readonly contextSize: 1000000;
1129
1129
  readonly maxOutput: undefined;
1130
1130
  readonly streaming: true;
1131
- readonly reasoning: false;
1131
+ readonly reasoningText: false;
1132
1132
  readonly vision: false;
1133
1133
  readonly tools: false;
1134
1134
  }];
@@ -2039,7 +2039,7 @@ declare const models: [{
2039
2039
  readonly requestPrice: 0;
2040
2040
  readonly contextSize: 262000;
2041
2041
  readonly maxOutput: 8192;
2042
- readonly reasoning: false;
2042
+ readonly reasoningText: false;
2043
2043
  readonly streaming: true;
2044
2044
  readonly vision: false;
2045
2045
  readonly tools: true;
@@ -2059,7 +2059,7 @@ declare const models: [{
2059
2059
  readonly requestPrice: 0;
2060
2060
  readonly contextSize: 262000;
2061
2061
  readonly maxOutput: 8192;
2062
- readonly reasoning: true;
2062
+ readonly reasoningText: true;
2063
2063
  readonly streaming: true;
2064
2064
  readonly vision: false;
2065
2065
  readonly tools: true;
@@ -2291,7 +2291,7 @@ declare const models: [{
2291
2291
  readonly streaming: true;
2292
2292
  readonly vision: false;
2293
2293
  readonly tools: true;
2294
- readonly reasoning: true;
2294
+ readonly reasoningText: true;
2295
2295
  }];
2296
2296
  readonly jsonOutput: true;
2297
2297
  }, {
@@ -2346,7 +2346,7 @@ declare const models: [{
2346
2346
  readonly requestPrice: 0;
2347
2347
  readonly contextSize: 131072;
2348
2348
  readonly maxOutput: 32768;
2349
- readonly reasoning: true;
2349
+ readonly reasoningText: true;
2350
2350
  readonly reasoningOutput: "omit";
2351
2351
  readonly streaming: true;
2352
2352
  readonly vision: false;
@@ -2387,7 +2387,7 @@ declare const models: [{
2387
2387
  readonly requestPrice: 0;
2388
2388
  readonly contextSize: 256000;
2389
2389
  readonly maxOutput: 32800;
2390
- readonly reasoning: true;
2390
+ readonly reasoningText: true;
2391
2391
  readonly reasoningOutput: "omit";
2392
2392
  readonly streaming: true;
2393
2393
  readonly vision: true;
@@ -2608,7 +2608,7 @@ declare const models: [{
2608
2608
  readonly contextSize: 128000;
2609
2609
  readonly maxOutput: undefined;
2610
2610
  readonly streaming: true;
2611
- readonly reasoning: true;
2611
+ readonly reasoningText: true;
2612
2612
  readonly vision: false;
2613
2613
  readonly tools: true;
2614
2614
  }];
@@ -2628,7 +2628,7 @@ declare const models: [{
2628
2628
  readonly contextSize: 128000;
2629
2629
  readonly maxOutput: undefined;
2630
2630
  readonly streaming: true;
2631
- readonly reasoning: true;
2631
+ readonly reasoningText: true;
2632
2632
  readonly reasoningOutput: "omit";
2633
2633
  readonly vision: true;
2634
2634
  readonly tools: true;
@@ -2649,7 +2649,7 @@ declare const models: [{
2649
2649
  readonly contextSize: 128000;
2650
2650
  readonly maxOutput: undefined;
2651
2651
  readonly streaming: true;
2652
- readonly reasoning: false;
2652
+ readonly reasoningText: false;
2653
2653
  readonly vision: false;
2654
2654
  readonly tools: true;
2655
2655
  }];
@@ -2669,7 +2669,7 @@ declare const models: [{
2669
2669
  readonly contextSize: 128000;
2670
2670
  readonly maxOutput: undefined;
2671
2671
  readonly streaming: true;
2672
- readonly reasoning: true;
2672
+ readonly reasoningText: true;
2673
2673
  readonly vision: false;
2674
2674
  readonly tools: true;
2675
2675
  }];
@@ -2689,7 +2689,7 @@ declare const models: [{
2689
2689
  readonly contextSize: 128000;
2690
2690
  readonly maxOutput: undefined;
2691
2691
  readonly streaming: true;
2692
- readonly reasoning: false;
2692
+ readonly reasoningText: false;
2693
2693
  readonly vision: false;
2694
2694
  readonly tools: true;
2695
2695
  }];
@@ -2709,7 +2709,7 @@ declare const models: [{
2709
2709
  readonly contextSize: 128000;
2710
2710
  readonly maxOutput: undefined;
2711
2711
  readonly streaming: true;
2712
- readonly reasoning: false;
2712
+ readonly reasoningText: false;
2713
2713
  readonly vision: false;
2714
2714
  readonly tools: true;
2715
2715
  }];
@@ -2729,7 +2729,7 @@ declare const models: [{
2729
2729
  readonly contextSize: 128000;
2730
2730
  readonly maxOutput: undefined;
2731
2731
  readonly streaming: true;
2732
- readonly reasoning: false;
2732
+ readonly reasoningText: false;
2733
2733
  readonly vision: false;
2734
2734
  readonly tools: true;
2735
2735
  }];
@@ -2783,7 +2783,7 @@ type LLMGatewayProviderOptions = {
2783
2783
  * One of `max_tokens` or `effort` is required.
2784
2784
  * If `exclude` is true, reasoning will be removed from the response. Default is false.
2785
2785
  */
2786
- reasoning?: {
2786
+ reasoningText?: {
2787
2787
  enabled?: boolean;
2788
2788
  exclude?: boolean;
2789
2789
  } & ({
package/dist/index.d.ts CHANGED
@@ -363,7 +363,7 @@ declare const models: [{
363
363
  readonly maxOutput: undefined;
364
364
  readonly streaming: true;
365
365
  readonly vision: true;
366
- readonly reasoning: true;
366
+ readonly reasoningText: true;
367
367
  readonly tools: false;
368
368
  }];
369
369
  readonly jsonOutput: true;
@@ -384,7 +384,7 @@ declare const models: [{
384
384
  readonly streaming: false;
385
385
  readonly vision: false;
386
386
  readonly tools: false;
387
- readonly reasoning: false;
387
+ readonly reasoningText: false;
388
388
  readonly supportsResponsesApi: false;
389
389
  }];
390
390
  readonly jsonOutput: true;
@@ -484,7 +484,7 @@ declare const models: [{
484
484
  readonly streaming: true;
485
485
  readonly vision: false;
486
486
  readonly tools: true;
487
- readonly reasoning: true;
487
+ readonly reasoningText: true;
488
488
  }];
489
489
  readonly jsonOutput: true;
490
490
  }, {
@@ -504,7 +504,7 @@ declare const models: [{
504
504
  readonly streaming: true;
505
505
  readonly vision: false;
506
506
  readonly tools: true;
507
- readonly reasoning: true;
507
+ readonly reasoningText: true;
508
508
  }];
509
509
  readonly jsonOutput: true;
510
510
  }, {
@@ -522,7 +522,7 @@ declare const models: [{
522
522
  readonly requestPrice: 0;
523
523
  readonly contextSize: 400000;
524
524
  readonly maxOutput: 128000;
525
- readonly reasoning: true;
525
+ readonly reasoningText: true;
526
526
  readonly streaming: true;
527
527
  readonly vision: true;
528
528
  readonly tools: true;
@@ -544,7 +544,7 @@ declare const models: [{
544
544
  readonly requestPrice: 0;
545
545
  readonly contextSize: 400000;
546
546
  readonly maxOutput: 128000;
547
- readonly reasoning: true;
547
+ readonly reasoningText: true;
548
548
  readonly streaming: true;
549
549
  readonly vision: true;
550
550
  readonly tools: true;
@@ -566,7 +566,7 @@ declare const models: [{
566
566
  readonly requestPrice: 0;
567
567
  readonly contextSize: 400000;
568
568
  readonly maxOutput: 128000;
569
- readonly reasoning: true;
569
+ readonly reasoningText: true;
570
570
  readonly streaming: true;
571
571
  readonly vision: false;
572
572
  readonly tools: true;
@@ -630,7 +630,7 @@ declare const models: [{
630
630
  readonly maxOutput: 8192;
631
631
  readonly streaming: true;
632
632
  readonly vision: false;
633
- readonly reasoning: true;
633
+ readonly reasoningText: true;
634
634
  readonly tools: true;
635
635
  }];
636
636
  }, {
@@ -725,7 +725,7 @@ declare const models: [{
725
725
  readonly maxOutput: 32000;
726
726
  readonly streaming: true;
727
727
  readonly vision: true;
728
- readonly reasoning: true;
728
+ readonly reasoningText: true;
729
729
  readonly tools: true;
730
730
  }];
731
731
  }, {
@@ -1109,7 +1109,7 @@ declare const models: [{
1109
1109
  readonly contextSize: 1000000;
1110
1110
  readonly maxOutput: undefined;
1111
1111
  readonly streaming: true;
1112
- readonly reasoning: false;
1112
+ readonly reasoningText: false;
1113
1113
  readonly vision: false;
1114
1114
  readonly tools: false;
1115
1115
  }];
@@ -1128,7 +1128,7 @@ declare const models: [{
1128
1128
  readonly contextSize: 1000000;
1129
1129
  readonly maxOutput: undefined;
1130
1130
  readonly streaming: true;
1131
- readonly reasoning: false;
1131
+ readonly reasoningText: false;
1132
1132
  readonly vision: false;
1133
1133
  readonly tools: false;
1134
1134
  }];
@@ -2039,7 +2039,7 @@ declare const models: [{
2039
2039
  readonly requestPrice: 0;
2040
2040
  readonly contextSize: 262000;
2041
2041
  readonly maxOutput: 8192;
2042
- readonly reasoning: false;
2042
+ readonly reasoningText: false;
2043
2043
  readonly streaming: true;
2044
2044
  readonly vision: false;
2045
2045
  readonly tools: true;
@@ -2059,7 +2059,7 @@ declare const models: [{
2059
2059
  readonly requestPrice: 0;
2060
2060
  readonly contextSize: 262000;
2061
2061
  readonly maxOutput: 8192;
2062
- readonly reasoning: true;
2062
+ readonly reasoningText: true;
2063
2063
  readonly streaming: true;
2064
2064
  readonly vision: false;
2065
2065
  readonly tools: true;
@@ -2291,7 +2291,7 @@ declare const models: [{
2291
2291
  readonly streaming: true;
2292
2292
  readonly vision: false;
2293
2293
  readonly tools: true;
2294
- readonly reasoning: true;
2294
+ readonly reasoningText: true;
2295
2295
  }];
2296
2296
  readonly jsonOutput: true;
2297
2297
  }, {
@@ -2346,7 +2346,7 @@ declare const models: [{
2346
2346
  readonly requestPrice: 0;
2347
2347
  readonly contextSize: 131072;
2348
2348
  readonly maxOutput: 32768;
2349
- readonly reasoning: true;
2349
+ readonly reasoningText: true;
2350
2350
  readonly reasoningOutput: "omit";
2351
2351
  readonly streaming: true;
2352
2352
  readonly vision: false;
@@ -2387,7 +2387,7 @@ declare const models: [{
2387
2387
  readonly requestPrice: 0;
2388
2388
  readonly contextSize: 256000;
2389
2389
  readonly maxOutput: 32800;
2390
- readonly reasoning: true;
2390
+ readonly reasoningText: true;
2391
2391
  readonly reasoningOutput: "omit";
2392
2392
  readonly streaming: true;
2393
2393
  readonly vision: true;
@@ -2608,7 +2608,7 @@ declare const models: [{
2608
2608
  readonly contextSize: 128000;
2609
2609
  readonly maxOutput: undefined;
2610
2610
  readonly streaming: true;
2611
- readonly reasoning: true;
2611
+ readonly reasoningText: true;
2612
2612
  readonly vision: false;
2613
2613
  readonly tools: true;
2614
2614
  }];
@@ -2628,7 +2628,7 @@ declare const models: [{
2628
2628
  readonly contextSize: 128000;
2629
2629
  readonly maxOutput: undefined;
2630
2630
  readonly streaming: true;
2631
- readonly reasoning: true;
2631
+ readonly reasoningText: true;
2632
2632
  readonly reasoningOutput: "omit";
2633
2633
  readonly vision: true;
2634
2634
  readonly tools: true;
@@ -2649,7 +2649,7 @@ declare const models: [{
2649
2649
  readonly contextSize: 128000;
2650
2650
  readonly maxOutput: undefined;
2651
2651
  readonly streaming: true;
2652
- readonly reasoning: false;
2652
+ readonly reasoningText: false;
2653
2653
  readonly vision: false;
2654
2654
  readonly tools: true;
2655
2655
  }];
@@ -2669,7 +2669,7 @@ declare const models: [{
2669
2669
  readonly contextSize: 128000;
2670
2670
  readonly maxOutput: undefined;
2671
2671
  readonly streaming: true;
2672
- readonly reasoning: true;
2672
+ readonly reasoningText: true;
2673
2673
  readonly vision: false;
2674
2674
  readonly tools: true;
2675
2675
  }];
@@ -2689,7 +2689,7 @@ declare const models: [{
2689
2689
  readonly contextSize: 128000;
2690
2690
  readonly maxOutput: undefined;
2691
2691
  readonly streaming: true;
2692
- readonly reasoning: false;
2692
+ readonly reasoningText: false;
2693
2693
  readonly vision: false;
2694
2694
  readonly tools: true;
2695
2695
  }];
@@ -2709,7 +2709,7 @@ declare const models: [{
2709
2709
  readonly contextSize: 128000;
2710
2710
  readonly maxOutput: undefined;
2711
2711
  readonly streaming: true;
2712
- readonly reasoning: false;
2712
+ readonly reasoningText: false;
2713
2713
  readonly vision: false;
2714
2714
  readonly tools: true;
2715
2715
  }];
@@ -2729,7 +2729,7 @@ declare const models: [{
2729
2729
  readonly contextSize: 128000;
2730
2730
  readonly maxOutput: undefined;
2731
2731
  readonly streaming: true;
2732
- readonly reasoning: false;
2732
+ readonly reasoningText: false;
2733
2733
  readonly vision: false;
2734
2734
  readonly tools: true;
2735
2735
  }];
@@ -2783,7 +2783,7 @@ type LLMGatewayProviderOptions = {
2783
2783
  * One of `max_tokens` or `effort` is required.
2784
2784
  * If `exclude` is true, reasoning will be removed from the response. Default is false.
2785
2785
  */
2786
- reasoning?: {
2786
+ reasoningText?: {
2787
2787
  enabled?: boolean;
2788
2788
  exclude?: boolean;
2789
2789
  } & ({