@adaline/groq 0.13.0 → 0.15.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/dist/index.d.mts CHANGED
@@ -23,68 +23,6 @@ declare class BaseChatModelGroq extends BaseChatModel {
23
23
  transformMessages(messages: MessageType[]): ParamsType;
24
24
  }
25
25
 
26
- declare const Gemma_7b_ITLiteral: "gemma-7b-it";
27
- declare const Gemma_7b_ITSchema: {
28
- name: string;
29
- description: string;
30
- roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
31
- modalities: ["text" | "tool-call" | "tool-response", ...("text" | "tool-call" | "tool-response")[]];
32
- maxInputTokens: number;
33
- maxOutputTokens: number;
34
- config: {
35
- def: Record<string, {
36
- type: "multi-string";
37
- param: string;
38
- title: string;
39
- description: string;
40
- max: number;
41
- } | {
42
- type: "object-schema";
43
- param: string;
44
- title: string;
45
- description: string;
46
- objectSchema?: any;
47
- } | {
48
- type: "range";
49
- param: string;
50
- title: string;
51
- description: string;
52
- max: number;
53
- default: number;
54
- min: number;
55
- step: number;
56
- } | {
57
- type: "select-boolean";
58
- param: string;
59
- title: string;
60
- description: string;
61
- default: boolean | null;
62
- } | {
63
- type: "select-string";
64
- param: string;
65
- title: string;
66
- description: string;
67
- default: string | null;
68
- choices: string[];
69
- }>;
70
- schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
71
- };
72
- };
73
- declare const Gemma_7b_ITOptions: z.ZodObject<{
74
- modelName: z.ZodString;
75
- apiKey: z.ZodString;
76
- }, "strip", z.ZodTypeAny, {
77
- modelName: string;
78
- apiKey: string;
79
- }, {
80
- modelName: string;
81
- apiKey: string;
82
- }>;
83
- type Gemma_7b_ITOptionsType = z.infer<typeof Gemma_7b_ITOptions>;
84
- declare class Gemma_7b_IT extends BaseChatModelGroq {
85
- constructor(options: Gemma_7b_ITOptionsType);
86
- }
87
-
88
26
  declare const Gemma2_9b_ITLiteral: "gemma2-9b-it";
89
27
  declare const Gemma2_9b_ITSchema: {
90
28
  name: string;
@@ -126,7 +64,7 @@ declare const Gemma2_9b_ITSchema: {
126
64
  param: string;
127
65
  title: string;
128
66
  description: string;
129
- default: string | null;
67
+ default: string;
130
68
  choices: string[];
131
69
  }>;
132
70
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
@@ -147,68 +85,6 @@ declare class Gemma2_9b_IT extends BaseChatModelGroq {
147
85
  constructor(options: Gemma2_9b_ITOptionsType);
148
86
  }
149
87
 
150
- declare const Llama_3_1_70bLiteral: "llama-3.1-70b-versatile";
151
- declare const Llama_3_1_70bSchema: {
152
- name: string;
153
- description: string;
154
- roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
155
- modalities: ["text" | "tool-call" | "tool-response", ...("text" | "tool-call" | "tool-response")[]];
156
- maxInputTokens: number;
157
- maxOutputTokens: number;
158
- config: {
159
- def: Record<string, {
160
- type: "multi-string";
161
- param: string;
162
- title: string;
163
- description: string;
164
- max: number;
165
- } | {
166
- type: "object-schema";
167
- param: string;
168
- title: string;
169
- description: string;
170
- objectSchema?: any;
171
- } | {
172
- type: "range";
173
- param: string;
174
- title: string;
175
- description: string;
176
- max: number;
177
- default: number;
178
- min: number;
179
- step: number;
180
- } | {
181
- type: "select-boolean";
182
- param: string;
183
- title: string;
184
- description: string;
185
- default: boolean | null;
186
- } | {
187
- type: "select-string";
188
- param: string;
189
- title: string;
190
- description: string;
191
- default: string | null;
192
- choices: string[];
193
- }>;
194
- schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
195
- };
196
- };
197
- declare const Llama_3_1_70b_Options: z.ZodObject<{
198
- modelName: z.ZodString;
199
- apiKey: z.ZodString;
200
- }, "strip", z.ZodTypeAny, {
201
- modelName: string;
202
- apiKey: string;
203
- }, {
204
- modelName: string;
205
- apiKey: string;
206
- }>;
207
- type Llama_3_1_70b_OptionsType = z.infer<typeof Llama_3_1_70b_Options>;
208
- declare class Llama_3_1_70b extends BaseChatModelGroq {
209
- constructor(options: Llama_3_1_70b_OptionsType);
210
- }
211
-
212
88
  declare const Llama_3_1_8bLiteral: "llama-3.1-8b-instant";
213
89
  declare const Llama_3_1_8bSchema: {
214
90
  name: string;
@@ -250,7 +126,7 @@ declare const Llama_3_1_8bSchema: {
250
126
  param: string;
251
127
  title: string;
252
128
  description: string;
253
- default: string | null;
129
+ default: string;
254
130
  choices: string[];
255
131
  }>;
256
132
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
@@ -312,7 +188,7 @@ declare const Llama_3_2_11b_VisionSchema: {
312
188
  param: string;
313
189
  title: string;
314
190
  description: string;
315
- default: string | null;
191
+ default: string;
316
192
  choices: string[];
317
193
  }>;
318
194
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
@@ -374,7 +250,7 @@ declare const Llama_3_2_1bSchema: {
374
250
  param: string;
375
251
  title: string;
376
252
  description: string;
377
- default: string | null;
253
+ default: string;
378
254
  choices: string[];
379
255
  }>;
380
256
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
@@ -436,7 +312,7 @@ declare const Llama_3_2_3bSchema: {
436
312
  param: string;
437
313
  title: string;
438
314
  description: string;
439
- default: string | null;
315
+ default: string;
440
316
  choices: string[];
441
317
  }>;
442
318
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
@@ -498,7 +374,7 @@ declare const Llama_3_2_90b_VisionSchema: {
498
374
  param: string;
499
375
  title: string;
500
376
  description: string;
501
- default: string | null;
377
+ default: string;
502
378
  choices: string[];
503
379
  }>;
504
380
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
@@ -519,68 +395,6 @@ declare class Llama_3_2_90b_Vision extends BaseChatModelGroq {
519
395
  constructor(options: Llama_3_2_90b_VisionOptionsType);
520
396
  }
521
397
 
522
- declare const Llama_3_70b_Tool_UseLiteral: "llama3-groq-70b-8192-tool-use-preview";
523
- declare const Llama_3_70b_Tool_UseSchema: {
524
- name: string;
525
- description: string;
526
- roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
527
- modalities: ["text" | "tool-call" | "tool-response", ...("text" | "tool-call" | "tool-response")[]];
528
- maxInputTokens: number;
529
- maxOutputTokens: number;
530
- config: {
531
- def: Record<string, {
532
- type: "multi-string";
533
- param: string;
534
- title: string;
535
- description: string;
536
- max: number;
537
- } | {
538
- type: "object-schema";
539
- param: string;
540
- title: string;
541
- description: string;
542
- objectSchema?: any;
543
- } | {
544
- type: "range";
545
- param: string;
546
- title: string;
547
- description: string;
548
- max: number;
549
- default: number;
550
- min: number;
551
- step: number;
552
- } | {
553
- type: "select-boolean";
554
- param: string;
555
- title: string;
556
- description: string;
557
- default: boolean | null;
558
- } | {
559
- type: "select-string";
560
- param: string;
561
- title: string;
562
- description: string;
563
- default: string | null;
564
- choices: string[];
565
- }>;
566
- schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
567
- };
568
- };
569
- declare const Llama_3_70b_Tool_Use_Options: z.ZodObject<{
570
- modelName: z.ZodString;
571
- apiKey: z.ZodString;
572
- }, "strip", z.ZodTypeAny, {
573
- modelName: string;
574
- apiKey: string;
575
- }, {
576
- modelName: string;
577
- apiKey: string;
578
- }>;
579
- type Llama_3_70b_Tool_Use_OptionsType = z.infer<typeof Llama_3_70b_Tool_Use_Options>;
580
- declare class Llama_3_70b_Tool_Use extends BaseChatModelGroq {
581
- constructor(options: Llama_3_70b_Tool_Use_OptionsType);
582
- }
583
-
584
398
  declare const Llama_3_70bLiteral: "llama3-70b-8192";
585
399
  declare const Llama_3_70bSchema: {
586
400
  name: string;
@@ -622,7 +436,7 @@ declare const Llama_3_70bSchema: {
622
436
  param: string;
623
437
  title: string;
624
438
  description: string;
625
- default: string | null;
439
+ default: string;
626
440
  choices: string[];
627
441
  }>;
628
442
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
@@ -643,68 +457,6 @@ declare class Llama_3_70b extends BaseChatModelGroq {
643
457
  constructor(options: Llama_3_70bOptionsType);
644
458
  }
645
459
 
646
- declare const Llama_3_8b_Tool_UseLiteral: "llama3-groq-8b-8192-tool-use-preview";
647
- declare const Llama_3_8b_Tool_UseSchema: {
648
- name: string;
649
- description: string;
650
- roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
651
- modalities: ["text" | "tool-call" | "tool-response", ...("text" | "tool-call" | "tool-response")[]];
652
- maxInputTokens: number;
653
- maxOutputTokens: number;
654
- config: {
655
- def: Record<string, {
656
- type: "multi-string";
657
- param: string;
658
- title: string;
659
- description: string;
660
- max: number;
661
- } | {
662
- type: "object-schema";
663
- param: string;
664
- title: string;
665
- description: string;
666
- objectSchema?: any;
667
- } | {
668
- type: "range";
669
- param: string;
670
- title: string;
671
- description: string;
672
- max: number;
673
- default: number;
674
- min: number;
675
- step: number;
676
- } | {
677
- type: "select-boolean";
678
- param: string;
679
- title: string;
680
- description: string;
681
- default: boolean | null;
682
- } | {
683
- type: "select-string";
684
- param: string;
685
- title: string;
686
- description: string;
687
- default: string | null;
688
- choices: string[];
689
- }>;
690
- schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
691
- };
692
- };
693
- declare const Llama_3_8b_Tool_Use_Options: z.ZodObject<{
694
- modelName: z.ZodString;
695
- apiKey: z.ZodString;
696
- }, "strip", z.ZodTypeAny, {
697
- modelName: string;
698
- apiKey: string;
699
- }, {
700
- modelName: string;
701
- apiKey: string;
702
- }>;
703
- type Llama_3_8b_Tool_Use_OptionsType = z.infer<typeof Llama_3_8b_Tool_Use_Options>;
704
- declare class Llama_3_8b_Tool_Use extends BaseChatModelGroq {
705
- constructor(options: Llama_3_8b_Tool_Use_OptionsType);
706
- }
707
-
708
460
  declare const Llama_3_8bLiteral: "llama3-8b-8192";
709
461
  declare const Llama_3_8bSchema: {
710
462
  name: string;
@@ -746,7 +498,7 @@ declare const Llama_3_8bSchema: {
746
498
  param: string;
747
499
  title: string;
748
500
  description: string;
749
- default: string | null;
501
+ default: string;
750
502
  choices: string[];
751
503
  }>;
752
504
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
@@ -808,7 +560,7 @@ declare const LlamaGuard_3_8bSchema: {
808
560
  param: string;
809
561
  title: string;
810
562
  description: string;
811
- default: string | null;
563
+ default: string;
812
564
  choices: string[];
813
565
  }>;
814
566
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
@@ -829,68 +581,6 @@ declare class LlamaGuard_3_8b extends BaseChatModelGroq {
829
581
  constructor(options: LlamaGuard_3_8bOptionsType);
830
582
  }
831
583
 
832
- declare const Mixtral_8x7bLiteral: "mixtral-8x7b-32768";
833
- declare const Mixtral_8x7bSchema: {
834
- name: string;
835
- description: string;
836
- roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
837
- modalities: ["text" | "tool-call" | "tool-response", ...("text" | "tool-call" | "tool-response")[]];
838
- maxInputTokens: number;
839
- maxOutputTokens: number;
840
- config: {
841
- def: Record<string, {
842
- type: "multi-string";
843
- param: string;
844
- title: string;
845
- description: string;
846
- max: number;
847
- } | {
848
- type: "object-schema";
849
- param: string;
850
- title: string;
851
- description: string;
852
- objectSchema?: any;
853
- } | {
854
- type: "range";
855
- param: string;
856
- title: string;
857
- description: string;
858
- max: number;
859
- default: number;
860
- min: number;
861
- step: number;
862
- } | {
863
- type: "select-boolean";
864
- param: string;
865
- title: string;
866
- description: string;
867
- default: boolean | null;
868
- } | {
869
- type: "select-string";
870
- param: string;
871
- title: string;
872
- description: string;
873
- default: string | null;
874
- choices: string[];
875
- }>;
876
- schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
877
- };
878
- };
879
- declare const Mixtral_8x7bOptions: z.ZodObject<{
880
- modelName: z.ZodString;
881
- apiKey: z.ZodString;
882
- }, "strip", z.ZodTypeAny, {
883
- modelName: string;
884
- apiKey: string;
885
- }, {
886
- modelName: string;
887
- apiKey: string;
888
- }>;
889
- type Mixtral_8x7bOptionsType = z.infer<typeof Mixtral_8x7bOptions>;
890
- declare class Mixtral_8x7b extends BaseChatModelGroq {
891
- constructor(options: Mixtral_8x7bOptionsType);
892
- }
893
-
894
584
  declare class Groq<C extends BaseChatModelOptionsType, E extends Record<string, any> = Record<string, any>> implements ProviderV1<C, E> {
895
585
  readonly version: "v1";
896
586
  readonly name = "groq";
@@ -905,4 +595,4 @@ declare class Groq<C extends BaseChatModelOptionsType, E extends Record<string,
905
595
  embeddingModel(options: E): EmbeddingModelV1;
906
596
  }
907
597
 
908
- export { BaseChatModelGroq, BaseChatModelOptions, type BaseChatModelOptionsType, Gemma2_9b_IT, Gemma2_9b_ITLiteral, Gemma2_9b_ITOptions, type Gemma2_9b_ITOptionsType, Gemma2_9b_ITSchema, Gemma_7b_IT, Gemma_7b_ITLiteral, Gemma_7b_ITOptions, type Gemma_7b_ITOptionsType, Gemma_7b_ITSchema, Groq, LlamaGuard_3_8b, LlamaGuard_3_8bLiteral, LlamaGuard_3_8bOptions, type LlamaGuard_3_8bOptionsType, LlamaGuard_3_8bSchema, Llama_3_1_70b, Llama_3_1_70bLiteral, Llama_3_1_70bSchema, Llama_3_1_70b_Options, type Llama_3_1_70b_OptionsType, Llama_3_1_8b, Llama_3_1_8bLiteral, Llama_3_1_8bSchema, Llama_3_1_8b_Options, type Llama_3_1_8b_OptionsType, Llama_3_2_11b_Vision, Llama_3_2_11b_VisionLiteral, Llama_3_2_11b_VisionOptions, type Llama_3_2_11b_VisionOptionsType, Llama_3_2_11b_VisionSchema, Llama_3_2_1b, Llama_3_2_1bLiteral, Llama_3_2_1bSchema, Llama_3_2_1b_Options, type Llama_3_2_1b_OptionsType, Llama_3_2_3b, Llama_3_2_3bLiteral, Llama_3_2_3bSchema, Llama_3_2_3b_Options, type Llama_3_2_3b_OptionsType, Llama_3_2_90b_Vision, Llama_3_2_90b_VisionLiteral, Llama_3_2_90b_VisionOptions, type Llama_3_2_90b_VisionOptionsType, Llama_3_2_90b_VisionSchema, Llama_3_70b, Llama_3_70bLiteral, Llama_3_70bOptions, type Llama_3_70bOptionsType, Llama_3_70bSchema, Llama_3_70b_Tool_Use, Llama_3_70b_Tool_UseLiteral, Llama_3_70b_Tool_UseSchema, Llama_3_70b_Tool_Use_Options, type Llama_3_70b_Tool_Use_OptionsType, Llama_3_8b, Llama_3_8bLiteral, Llama_3_8bOptions, type Llama_3_8bOptionsType, Llama_3_8bSchema, Llama_3_8b_Tool_Use, Llama_3_8b_Tool_UseLiteral, Llama_3_8b_Tool_UseSchema, Llama_3_8b_Tool_Use_Options, type Llama_3_8b_Tool_Use_OptionsType, Mixtral_8x7b, Mixtral_8x7bLiteral, Mixtral_8x7bOptions, type Mixtral_8x7bOptionsType, Mixtral_8x7bSchema };
598
+ export { BaseChatModelGroq, BaseChatModelOptions, type BaseChatModelOptionsType, Gemma2_9b_IT, Gemma2_9b_ITLiteral, Gemma2_9b_ITOptions, type Gemma2_9b_ITOptionsType, Gemma2_9b_ITSchema, Groq, LlamaGuard_3_8b, LlamaGuard_3_8bLiteral, LlamaGuard_3_8bOptions, type LlamaGuard_3_8bOptionsType, LlamaGuard_3_8bSchema, Llama_3_1_8b, Llama_3_1_8bLiteral, Llama_3_1_8bSchema, Llama_3_1_8b_Options, type Llama_3_1_8b_OptionsType, Llama_3_2_11b_Vision, Llama_3_2_11b_VisionLiteral, Llama_3_2_11b_VisionOptions, type Llama_3_2_11b_VisionOptionsType, Llama_3_2_11b_VisionSchema, Llama_3_2_1b, Llama_3_2_1bLiteral, Llama_3_2_1bSchema, Llama_3_2_1b_Options, type Llama_3_2_1b_OptionsType, Llama_3_2_3b, Llama_3_2_3bLiteral, Llama_3_2_3bSchema, Llama_3_2_3b_Options, type Llama_3_2_3b_OptionsType, Llama_3_2_90b_Vision, Llama_3_2_90b_VisionLiteral, Llama_3_2_90b_VisionOptions, type Llama_3_2_90b_VisionOptionsType, Llama_3_2_90b_VisionSchema, Llama_3_70b, Llama_3_70bLiteral, Llama_3_70bOptions, type Llama_3_70bOptionsType, Llama_3_70bSchema, Llama_3_8b, Llama_3_8bLiteral, Llama_3_8bOptions, type Llama_3_8bOptionsType, Llama_3_8bSchema };