@adaline/azure 0.2.0 → 0.4.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
@@ -1,11 +1,11 @@
1
1
  import { ProviderV1, ChatModelV1, ChatModelSchemaType, EmbeddingModelV1, EmbeddingModelSchemaType, HeadersType } from '@adaline/provider';
2
- import { BaseChatModel, BaseEmbeddingModel } from '@adaline/openai';
3
2
  import { z } from 'zod';
3
+ import { BaseChatModel, BaseEmbeddingModel } from '@adaline/openai';
4
4
 
5
5
  declare class Azure<O extends Record<string, any> = Record<string, any>> implements ProviderV1<O> {
6
6
  readonly version: "v1";
7
7
  readonly name = "azure";
8
- static readonly azureUrl: (resourceName: string, deploymentName: string, provider: string) => string;
8
+ static readonly azureUrl: (resourceName: string, provider: string) => string;
9
9
  private readonly chatModelFactories;
10
10
  private readonly embeddingModelFactories;
11
11
  chatModelLiterals(): string[];
@@ -19,17 +19,20 @@ declare class Azure<O extends Record<string, any> = Record<string, any>> impleme
19
19
  }
20
20
 
21
21
  declare const AzureChatModelOptions: z.ZodObject<{
22
- resourceName: z.ZodString;
23
- deploymentName: z.ZodString;
24
22
  apiKey: z.ZodString;
23
+ deploymentName: z.ZodString;
24
+ resourceName: z.ZodOptional<z.ZodString>;
25
+ baseUrl: z.ZodOptional<z.ZodString>;
25
26
  }, "strip", z.ZodTypeAny, {
26
- resourceName: string;
27
- deploymentName: string;
28
27
  apiKey: string;
29
- }, {
30
- resourceName: string;
31
28
  deploymentName: string;
29
+ resourceName?: string | undefined;
30
+ baseUrl?: string | undefined;
31
+ }, {
32
32
  apiKey: string;
33
+ deploymentName: string;
34
+ resourceName?: string | undefined;
35
+ baseUrl?: string | undefined;
33
36
  }>;
34
37
  type AzureChatModelOptionsType = z.infer<typeof AzureChatModelOptions>;
35
38
 
@@ -37,6 +40,7 @@ declare class BaseChatModelOpenAI extends BaseChatModel {
37
40
  readonly version: "v1";
38
41
  modelSchema: ChatModelSchemaType;
39
42
  private readonly azureApiKey;
43
+ private readonly azureApiVersion;
40
44
  constructor(modelSchema: ChatModelSchemaType, options: AzureChatModelOptionsType);
41
45
  getDefaultHeaders(): HeadersType;
42
46
  }
@@ -89,51 +93,100 @@ declare const GPT_4oSchema: {
89
93
  };
90
94
  };
91
95
  declare const GPT_4oOptions: z.ZodObject<{
92
- resourceName: z.ZodString;
93
- deploymentName: z.ZodString;
94
96
  apiKey: z.ZodString;
97
+ deploymentName: z.ZodString;
98
+ resourceName: z.ZodOptional<z.ZodString>;
99
+ baseUrl: z.ZodOptional<z.ZodString>;
95
100
  }, "strip", z.ZodTypeAny, {
96
- resourceName: string;
97
- deploymentName: string;
98
101
  apiKey: string;
99
- }, {
100
- resourceName: string;
101
102
  deploymentName: string;
103
+ resourceName?: string | undefined;
104
+ baseUrl?: string | undefined;
105
+ }, {
102
106
  apiKey: string;
107
+ deploymentName: string;
108
+ resourceName?: string | undefined;
109
+ baseUrl?: string | undefined;
103
110
  }>;
104
111
  type GPT_4oOptionsType = z.infer<typeof GPT_4oOptions>;
105
112
  declare class GPT_4o extends BaseChatModelOpenAI {
106
113
  constructor(options: GPT_4oOptionsType);
107
114
  }
108
115
 
109
- declare const AzureEmbeddingModelOptions: z.ZodObject<{
110
- resourceName: z.ZodString;
111
- deploymentName: z.ZodString;
116
+ declare const GPT_4o_MiniLiteral: "gpt-4o-mini";
117
+ declare const GPT_4o_MiniSchema: {
118
+ description: string;
119
+ name: string;
120
+ roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
121
+ modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
122
+ maxInputTokens: number;
123
+ maxOutputTokens: number;
124
+ config: {
125
+ def: Record<string, {
126
+ type: "multi-string";
127
+ param: string;
128
+ title: string;
129
+ description: string;
130
+ max: number;
131
+ } | {
132
+ type: "range";
133
+ param: string;
134
+ title: string;
135
+ description: string;
136
+ max: number;
137
+ min: number;
138
+ step: number;
139
+ default: number;
140
+ } | {
141
+ type: "select-string";
142
+ param: string;
143
+ title: string;
144
+ description: string;
145
+ default: string | null;
146
+ choices: string[];
147
+ } | {
148
+ type: "object-schema";
149
+ param: string;
150
+ title: string;
151
+ description: string;
152
+ objectSchema?: any;
153
+ } | {
154
+ type: "select-boolean";
155
+ param: string;
156
+ title: string;
157
+ description: string;
158
+ default: boolean | null;
159
+ }>;
160
+ schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
161
+ };
162
+ };
163
+ declare const GPT_4o_MiniOptions: z.ZodObject<{
112
164
  apiKey: z.ZodString;
165
+ deploymentName: z.ZodString;
166
+ resourceName: z.ZodOptional<z.ZodString>;
167
+ baseUrl: z.ZodOptional<z.ZodString>;
113
168
  }, "strip", z.ZodTypeAny, {
114
- resourceName: string;
115
- deploymentName: string;
116
169
  apiKey: string;
117
- }, {
118
- resourceName: string;
119
170
  deploymentName: string;
171
+ resourceName?: string | undefined;
172
+ baseUrl?: string | undefined;
173
+ }, {
120
174
  apiKey: string;
175
+ deploymentName: string;
176
+ resourceName?: string | undefined;
177
+ baseUrl?: string | undefined;
121
178
  }>;
122
- type AzureEmbeddingModelOptionsType = z.infer<typeof AzureEmbeddingModelOptions>;
123
-
124
- declare class BaseEmbeddingModelOpenAI extends BaseEmbeddingModel {
125
- readonly version: "v1";
126
- modelSchema: EmbeddingModelSchemaType;
127
- private readonly azureApiKey;
128
- constructor(modelSchema: EmbeddingModelSchemaType, options: AzureEmbeddingModelOptionsType);
129
- getDefaultHeaders(): HeadersType;
179
+ type GPT_4o_MiniOptionsType = z.infer<typeof GPT_4o_MiniOptions>;
180
+ declare class GPT_4o_Mini extends BaseChatModelOpenAI {
181
+ constructor(options: GPT_4o_MiniOptionsType);
130
182
  }
131
183
 
132
- declare const Text_Embedding_3_LargeLiteral: "text-embedding-3-large";
133
- declare const Text_Embedding_3_LargeSchema: {
184
+ declare const GPT_4o_Mini_2024_07_18Literal: "gpt-4o-mini-2024-07-18";
185
+ declare const GPT_4o_Mini_2024_07_18Schema: {
134
186
  description: string;
135
187
  name: string;
136
- modalities: ["text" | "token", ...("text" | "token")[]];
188
+ roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
189
+ modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
137
190
  maxInputTokens: number;
138
191
  maxOutputTokens: number;
139
192
  config: {
@@ -175,22 +228,865 @@ declare const Text_Embedding_3_LargeSchema: {
175
228
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
176
229
  };
177
230
  };
178
- declare const Text_Embedding_3_LargeOptions: z.ZodObject<{
179
- resourceName: z.ZodString;
231
+ declare const GPT_4o_Mini_2024_07_18Options: z.ZodObject<{
232
+ apiKey: z.ZodString;
180
233
  deploymentName: z.ZodString;
234
+ resourceName: z.ZodOptional<z.ZodString>;
235
+ baseUrl: z.ZodOptional<z.ZodString>;
236
+ }, "strip", z.ZodTypeAny, {
237
+ apiKey: string;
238
+ deploymentName: string;
239
+ resourceName?: string | undefined;
240
+ baseUrl?: string | undefined;
241
+ }, {
242
+ apiKey: string;
243
+ deploymentName: string;
244
+ resourceName?: string | undefined;
245
+ baseUrl?: string | undefined;
246
+ }>;
247
+ type GPT_4o_Mini_2024_07_18OptionsType = z.infer<typeof GPT_4o_Mini_2024_07_18Options>;
248
+ declare class GPT_4o_Mini_2024_07_18 extends BaseChatModelOpenAI {
249
+ constructor(options: GPT_4o_Mini_2024_07_18OptionsType);
250
+ }
251
+
252
+ declare const GPT_4o_2024_08_06Literal: "gpt-4o-2024-08-06";
253
+ declare const GPT_4o_2024_08_06Schema: {
254
+ description: string;
255
+ name: string;
256
+ roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
257
+ modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
258
+ maxInputTokens: number;
259
+ maxOutputTokens: number;
260
+ config: {
261
+ def: Record<string, {
262
+ type: "multi-string";
263
+ param: string;
264
+ title: string;
265
+ description: string;
266
+ max: number;
267
+ } | {
268
+ type: "range";
269
+ param: string;
270
+ title: string;
271
+ description: string;
272
+ max: number;
273
+ min: number;
274
+ step: number;
275
+ default: number;
276
+ } | {
277
+ type: "select-string";
278
+ param: string;
279
+ title: string;
280
+ description: string;
281
+ default: string | null;
282
+ choices: string[];
283
+ } | {
284
+ type: "object-schema";
285
+ param: string;
286
+ title: string;
287
+ description: string;
288
+ objectSchema?: any;
289
+ } | {
290
+ type: "select-boolean";
291
+ param: string;
292
+ title: string;
293
+ description: string;
294
+ default: boolean | null;
295
+ }>;
296
+ schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
297
+ };
298
+ };
299
+ declare const GPT_4o_2024_08_06Options: z.ZodObject<{
181
300
  apiKey: z.ZodString;
301
+ deploymentName: z.ZodString;
302
+ resourceName: z.ZodOptional<z.ZodString>;
303
+ baseUrl: z.ZodOptional<z.ZodString>;
182
304
  }, "strip", z.ZodTypeAny, {
183
- resourceName: string;
305
+ apiKey: string;
306
+ deploymentName: string;
307
+ resourceName?: string | undefined;
308
+ baseUrl?: string | undefined;
309
+ }, {
310
+ apiKey: string;
184
311
  deploymentName: string;
312
+ resourceName?: string | undefined;
313
+ baseUrl?: string | undefined;
314
+ }>;
315
+ type GPT_4o_2024_08_06OptionsType = z.infer<typeof GPT_4o_2024_08_06Options>;
316
+ declare class GPT_4o_2024_08_06 extends BaseChatModelOpenAI {
317
+ constructor(options: GPT_4o_2024_08_06OptionsType);
318
+ }
319
+
320
+ declare const GPT_4o_2024_05_13Literal: "gpt-4o-2024-05-13";
321
+ declare const GPT_4o_2024_05_13Schema: {
322
+ description: string;
323
+ name: string;
324
+ roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
325
+ modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
326
+ maxInputTokens: number;
327
+ maxOutputTokens: number;
328
+ config: {
329
+ def: Record<string, {
330
+ type: "multi-string";
331
+ param: string;
332
+ title: string;
333
+ description: string;
334
+ max: number;
335
+ } | {
336
+ type: "range";
337
+ param: string;
338
+ title: string;
339
+ description: string;
340
+ max: number;
341
+ min: number;
342
+ step: number;
343
+ default: number;
344
+ } | {
345
+ type: "select-string";
346
+ param: string;
347
+ title: string;
348
+ description: string;
349
+ default: string | null;
350
+ choices: string[];
351
+ } | {
352
+ type: "object-schema";
353
+ param: string;
354
+ title: string;
355
+ description: string;
356
+ objectSchema?: any;
357
+ } | {
358
+ type: "select-boolean";
359
+ param: string;
360
+ title: string;
361
+ description: string;
362
+ default: boolean | null;
363
+ }>;
364
+ schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
365
+ };
366
+ };
367
+ declare const GPT_4o_2024_05_13Options: z.ZodObject<{
368
+ apiKey: z.ZodString;
369
+ deploymentName: z.ZodString;
370
+ resourceName: z.ZodOptional<z.ZodString>;
371
+ baseUrl: z.ZodOptional<z.ZodString>;
372
+ }, "strip", z.ZodTypeAny, {
185
373
  apiKey: string;
374
+ deploymentName: string;
375
+ resourceName?: string | undefined;
376
+ baseUrl?: string | undefined;
186
377
  }, {
187
- resourceName: string;
378
+ apiKey: string;
379
+ deploymentName: string;
380
+ resourceName?: string | undefined;
381
+ baseUrl?: string | undefined;
382
+ }>;
383
+ type GPT_4o_2024_05_13OptionsType = z.infer<typeof GPT_4o_2024_05_13Options>;
384
+ declare class GPT_4o_2024_05_13 extends BaseChatModelOpenAI {
385
+ constructor(options: GPT_4o_2024_05_13OptionsType);
386
+ }
387
+
388
+ declare const GPT_4Literal: "gpt-4";
389
+ declare const GPT_4Schema: {
390
+ description: string;
391
+ name: string;
392
+ roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
393
+ modalities: ["text" | "tool-call" | "tool-response", ...("text" | "tool-call" | "tool-response")[]];
394
+ maxInputTokens: number;
395
+ maxOutputTokens: number;
396
+ config: {
397
+ def: Record<string, {
398
+ type: "multi-string";
399
+ param: string;
400
+ title: string;
401
+ description: string;
402
+ max: number;
403
+ } | {
404
+ type: "range";
405
+ param: string;
406
+ title: string;
407
+ description: string;
408
+ max: number;
409
+ min: number;
410
+ step: number;
411
+ default: number;
412
+ } | {
413
+ type: "select-string";
414
+ param: string;
415
+ title: string;
416
+ description: string;
417
+ default: string | null;
418
+ choices: string[];
419
+ } | {
420
+ type: "object-schema";
421
+ param: string;
422
+ title: string;
423
+ description: string;
424
+ objectSchema?: any;
425
+ } | {
426
+ type: "select-boolean";
427
+ param: string;
428
+ title: string;
429
+ description: string;
430
+ default: boolean | null;
431
+ }>;
432
+ schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
433
+ };
434
+ };
435
+ declare const GPT_4Options: z.ZodObject<{
436
+ apiKey: z.ZodString;
437
+ deploymentName: z.ZodString;
438
+ resourceName: z.ZodOptional<z.ZodString>;
439
+ baseUrl: z.ZodOptional<z.ZodString>;
440
+ }, "strip", z.ZodTypeAny, {
441
+ apiKey: string;
188
442
  deploymentName: string;
443
+ resourceName?: string | undefined;
444
+ baseUrl?: string | undefined;
445
+ }, {
189
446
  apiKey: string;
447
+ deploymentName: string;
448
+ resourceName?: string | undefined;
449
+ baseUrl?: string | undefined;
190
450
  }>;
191
- type Text_Embedding_3_LargeOptionsType = z.infer<typeof Text_Embedding_3_LargeOptions>;
192
- declare class Text_Embedding_3_Large extends BaseEmbeddingModelOpenAI {
193
- constructor(options: Text_Embedding_3_LargeOptionsType);
451
+ type GPT_4OptionsType = z.infer<typeof GPT_4Options>;
452
+ declare class GPT_4 extends BaseChatModelOpenAI {
453
+ constructor(options: GPT_4OptionsType);
454
+ }
455
+
456
+ declare const GPT_4_Turbo_2024_04_09Literal: "gpt-4-turbo-2024-04-09";
457
+ declare const GPT_4_Turbo_2024_04_09Schema: {
458
+ description: string;
459
+ name: string;
460
+ roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
461
+ modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
462
+ maxInputTokens: number;
463
+ maxOutputTokens: number;
464
+ config: {
465
+ def: Record<string, {
466
+ type: "multi-string";
467
+ param: string;
468
+ title: string;
469
+ description: string;
470
+ max: number;
471
+ } | {
472
+ type: "range";
473
+ param: string;
474
+ title: string;
475
+ description: string;
476
+ max: number;
477
+ min: number;
478
+ step: number;
479
+ default: number;
480
+ } | {
481
+ type: "select-string";
482
+ param: string;
483
+ title: string;
484
+ description: string;
485
+ default: string | null;
486
+ choices: string[];
487
+ } | {
488
+ type: "object-schema";
489
+ param: string;
490
+ title: string;
491
+ description: string;
492
+ objectSchema?: any;
493
+ } | {
494
+ type: "select-boolean";
495
+ param: string;
496
+ title: string;
497
+ description: string;
498
+ default: boolean | null;
499
+ }>;
500
+ schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
501
+ };
502
+ };
503
+ declare const GPT_4_Turbo_2024_04_09Options: z.ZodObject<{
504
+ apiKey: z.ZodString;
505
+ deploymentName: z.ZodString;
506
+ resourceName: z.ZodOptional<z.ZodString>;
507
+ baseUrl: z.ZodOptional<z.ZodString>;
508
+ }, "strip", z.ZodTypeAny, {
509
+ apiKey: string;
510
+ deploymentName: string;
511
+ resourceName?: string | undefined;
512
+ baseUrl?: string | undefined;
513
+ }, {
514
+ apiKey: string;
515
+ deploymentName: string;
516
+ resourceName?: string | undefined;
517
+ baseUrl?: string | undefined;
518
+ }>;
519
+ type GPT_4_Turbo_2024_04_09OptionsType = z.infer<typeof GPT_4_Turbo_2024_04_09Options>;
520
+ declare class GPT_4_Turbo_2024_04_09 extends BaseChatModelOpenAI {
521
+ constructor(options: GPT_4_Turbo_2024_04_09OptionsType);
522
+ }
523
+
524
+ declare const GPT_4_1106_PreviewLiteral: "gpt-4-1106-preview";
525
+ declare const GPT_4_1106_PreviewSchema: {
526
+ description: string;
527
+ name: string;
528
+ roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
529
+ modalities: ["text" | "tool-call" | "tool-response", ...("text" | "tool-call" | "tool-response")[]];
530
+ maxInputTokens: number;
531
+ maxOutputTokens: number;
532
+ config: {
533
+ def: Record<string, {
534
+ type: "multi-string";
535
+ param: string;
536
+ title: string;
537
+ description: string;
538
+ max: number;
539
+ } | {
540
+ type: "range";
541
+ param: string;
542
+ title: string;
543
+ description: string;
544
+ max: number;
545
+ min: number;
546
+ step: number;
547
+ default: number;
548
+ } | {
549
+ type: "select-string";
550
+ param: string;
551
+ title: string;
552
+ description: string;
553
+ default: string | null;
554
+ choices: string[];
555
+ } | {
556
+ type: "object-schema";
557
+ param: string;
558
+ title: string;
559
+ description: string;
560
+ objectSchema?: any;
561
+ } | {
562
+ type: "select-boolean";
563
+ param: string;
564
+ title: string;
565
+ description: string;
566
+ default: boolean | null;
567
+ }>;
568
+ schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
569
+ };
570
+ };
571
+ declare const GPT_4_1106_PreviewOptions: z.ZodObject<{
572
+ apiKey: z.ZodString;
573
+ deploymentName: z.ZodString;
574
+ resourceName: z.ZodOptional<z.ZodString>;
575
+ baseUrl: z.ZodOptional<z.ZodString>;
576
+ }, "strip", z.ZodTypeAny, {
577
+ apiKey: string;
578
+ deploymentName: string;
579
+ resourceName?: string | undefined;
580
+ baseUrl?: string | undefined;
581
+ }, {
582
+ apiKey: string;
583
+ deploymentName: string;
584
+ resourceName?: string | undefined;
585
+ baseUrl?: string | undefined;
586
+ }>;
587
+ type GPT_4_1106_PreviewOptionsType = z.infer<typeof GPT_4_1106_PreviewOptions>;
588
+ declare class GPT_4_1106_Preview extends BaseChatModelOpenAI {
589
+ constructor(options: GPT_4_1106_PreviewOptionsType);
590
+ }
591
+
592
+ declare const GPT_4_0613Literal: "gpt-4-0613";
593
+ declare const GPT_4_0613Schema: {
594
+ description: string;
595
+ name: string;
596
+ roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
597
+ modalities: ["text" | "tool-call" | "tool-response", ...("text" | "tool-call" | "tool-response")[]];
598
+ maxInputTokens: number;
599
+ maxOutputTokens: number;
600
+ config: {
601
+ def: Record<string, {
602
+ type: "multi-string";
603
+ param: string;
604
+ title: string;
605
+ description: string;
606
+ max: number;
607
+ } | {
608
+ type: "range";
609
+ param: string;
610
+ title: string;
611
+ description: string;
612
+ max: number;
613
+ min: number;
614
+ step: number;
615
+ default: number;
616
+ } | {
617
+ type: "select-string";
618
+ param: string;
619
+ title: string;
620
+ description: string;
621
+ default: string | null;
622
+ choices: string[];
623
+ } | {
624
+ type: "object-schema";
625
+ param: string;
626
+ title: string;
627
+ description: string;
628
+ objectSchema?: any;
629
+ } | {
630
+ type: "select-boolean";
631
+ param: string;
632
+ title: string;
633
+ description: string;
634
+ default: boolean | null;
635
+ }>;
636
+ schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
637
+ };
638
+ };
639
+ declare const GPT_4_0613Options: z.ZodObject<{
640
+ apiKey: z.ZodString;
641
+ deploymentName: z.ZodString;
642
+ resourceName: z.ZodOptional<z.ZodString>;
643
+ baseUrl: z.ZodOptional<z.ZodString>;
644
+ }, "strip", z.ZodTypeAny, {
645
+ apiKey: string;
646
+ deploymentName: string;
647
+ resourceName?: string | undefined;
648
+ baseUrl?: string | undefined;
649
+ }, {
650
+ apiKey: string;
651
+ deploymentName: string;
652
+ resourceName?: string | undefined;
653
+ baseUrl?: string | undefined;
654
+ }>;
655
+ type GPT_4_0613OptionsType = z.infer<typeof GPT_4_0613Options>;
656
+ declare class GPT_4_0613 extends BaseChatModelOpenAI {
657
+ constructor(options: GPT_4_0613OptionsType);
658
+ }
659
+
660
+ declare const GPT_3_5_TurboLiteral: "gpt-3-5-turbo";
661
+ declare const GPT_3_5_TurboSchema: {
662
+ description: string;
663
+ name: string;
664
+ roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
665
+ modalities: ["text" | "tool-call" | "tool-response", ...("text" | "tool-call" | "tool-response")[]];
666
+ maxInputTokens: number;
667
+ maxOutputTokens: number;
668
+ config: {
669
+ def: Record<string, {
670
+ type: "multi-string";
671
+ param: string;
672
+ title: string;
673
+ description: string;
674
+ max: number;
675
+ } | {
676
+ type: "range";
677
+ param: string;
678
+ title: string;
679
+ description: string;
680
+ max: number;
681
+ min: number;
682
+ step: number;
683
+ default: number;
684
+ } | {
685
+ type: "select-string";
686
+ param: string;
687
+ title: string;
688
+ description: string;
689
+ default: string | null;
690
+ choices: string[];
691
+ } | {
692
+ type: "object-schema";
693
+ param: string;
694
+ title: string;
695
+ description: string;
696
+ objectSchema?: any;
697
+ } | {
698
+ type: "select-boolean";
699
+ param: string;
700
+ title: string;
701
+ description: string;
702
+ default: boolean | null;
703
+ }>;
704
+ schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
705
+ };
706
+ };
707
+ declare const GPT_3_5_TurboOptions: z.ZodObject<{
708
+ apiKey: z.ZodString;
709
+ deploymentName: z.ZodString;
710
+ resourceName: z.ZodOptional<z.ZodString>;
711
+ baseUrl: z.ZodOptional<z.ZodString>;
712
+ }, "strip", z.ZodTypeAny, {
713
+ apiKey: string;
714
+ deploymentName: string;
715
+ resourceName?: string | undefined;
716
+ baseUrl?: string | undefined;
717
+ }, {
718
+ apiKey: string;
719
+ deploymentName: string;
720
+ resourceName?: string | undefined;
721
+ baseUrl?: string | undefined;
722
+ }>;
723
+ type GPT_3_5_TurboOptionsType = z.infer<typeof GPT_3_5_TurboOptions>;
724
+ declare class GPT_3_5_Turbo extends BaseChatModelOpenAI {
725
+ constructor(options: GPT_3_5_TurboOptionsType);
726
+ }
727
+
728
+ declare const GPT_3_5_Turbo_1106Literal: "gpt-3-5-turbo-1106";
729
+ declare const GPT_3_5_Turbo_1106Schema: {
730
+ description: string;
731
+ name: string;
732
+ roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
733
+ modalities: ["text" | "tool-call" | "tool-response", ...("text" | "tool-call" | "tool-response")[]];
734
+ maxInputTokens: number;
735
+ maxOutputTokens: number;
736
+ config: {
737
+ def: Record<string, {
738
+ type: "multi-string";
739
+ param: string;
740
+ title: string;
741
+ description: string;
742
+ max: number;
743
+ } | {
744
+ type: "range";
745
+ param: string;
746
+ title: string;
747
+ description: string;
748
+ max: number;
749
+ min: number;
750
+ step: number;
751
+ default: number;
752
+ } | {
753
+ type: "select-string";
754
+ param: string;
755
+ title: string;
756
+ description: string;
757
+ default: string | null;
758
+ choices: string[];
759
+ } | {
760
+ type: "object-schema";
761
+ param: string;
762
+ title: string;
763
+ description: string;
764
+ objectSchema?: any;
765
+ } | {
766
+ type: "select-boolean";
767
+ param: string;
768
+ title: string;
769
+ description: string;
770
+ default: boolean | null;
771
+ }>;
772
+ schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
773
+ };
774
+ };
775
+ declare const GPT_3_5_Turbo_1106Options: z.ZodObject<{
776
+ apiKey: z.ZodString;
777
+ deploymentName: z.ZodString;
778
+ resourceName: z.ZodOptional<z.ZodString>;
779
+ baseUrl: z.ZodOptional<z.ZodString>;
780
+ }, "strip", z.ZodTypeAny, {
781
+ apiKey: string;
782
+ deploymentName: string;
783
+ resourceName?: string | undefined;
784
+ baseUrl?: string | undefined;
785
+ }, {
786
+ apiKey: string;
787
+ deploymentName: string;
788
+ resourceName?: string | undefined;
789
+ baseUrl?: string | undefined;
790
+ }>;
791
+ type GPT_3_5_Turbo_1106OptionsType = z.infer<typeof GPT_3_5_Turbo_1106Options>;
792
+ declare class GPT_3_5_Turbo_1106 extends BaseChatModelOpenAI {
793
+ constructor(options: GPT_3_5_Turbo_1106OptionsType);
794
+ }
795
+
796
+ declare const GPT_3_5_Turbo_0125Literal: "gpt-3-5-turbo-0125";
797
+ declare const GPT_3_5_Turbo_0125Schema: {
798
+ description: string;
799
+ name: string;
800
+ roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
801
+ modalities: ["text" | "tool-call" | "tool-response", ...("text" | "tool-call" | "tool-response")[]];
802
+ maxInputTokens: number;
803
+ maxOutputTokens: number;
804
+ config: {
805
+ def: Record<string, {
806
+ type: "multi-string";
807
+ param: string;
808
+ title: string;
809
+ description: string;
810
+ max: number;
811
+ } | {
812
+ type: "range";
813
+ param: string;
814
+ title: string;
815
+ description: string;
816
+ max: number;
817
+ min: number;
818
+ step: number;
819
+ default: number;
820
+ } | {
821
+ type: "select-string";
822
+ param: string;
823
+ title: string;
824
+ description: string;
825
+ default: string | null;
826
+ choices: string[];
827
+ } | {
828
+ type: "object-schema";
829
+ param: string;
830
+ title: string;
831
+ description: string;
832
+ objectSchema?: any;
833
+ } | {
834
+ type: "select-boolean";
835
+ param: string;
836
+ title: string;
837
+ description: string;
838
+ default: boolean | null;
839
+ }>;
840
+ schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
841
+ };
842
+ };
843
+ declare const GPT_3_5_Turbo_0125Options: z.ZodObject<{
844
+ apiKey: z.ZodString;
845
+ deploymentName: z.ZodString;
846
+ resourceName: z.ZodOptional<z.ZodString>;
847
+ baseUrl: z.ZodOptional<z.ZodString>;
848
+ }, "strip", z.ZodTypeAny, {
849
+ apiKey: string;
850
+ deploymentName: string;
851
+ resourceName?: string | undefined;
852
+ baseUrl?: string | undefined;
853
+ }, {
854
+ apiKey: string;
855
+ deploymentName: string;
856
+ resourceName?: string | undefined;
857
+ baseUrl?: string | undefined;
858
+ }>;
859
+ type GPT_3_5_Turbo_0125OptionsType = z.infer<typeof GPT_3_5_Turbo_0125Options>;
860
+ declare class GPT_3_5_Turbo_0125 extends BaseChatModelOpenAI {
861
+ constructor(options: GPT_3_5_Turbo_0125OptionsType);
862
+ }
863
+
864
+ declare const AzureEmbeddingModelOptions: z.ZodObject<{
865
+ apiKey: z.ZodString;
866
+ resourceName: z.ZodOptional<z.ZodString>;
867
+ baseUrl: z.ZodOptional<z.ZodString>;
868
+ deploymentName: z.ZodString;
869
+ }, "strip", z.ZodTypeAny, {
870
+ apiKey: string;
871
+ deploymentName: string;
872
+ resourceName?: string | undefined;
873
+ baseUrl?: string | undefined;
874
+ }, {
875
+ apiKey: string;
876
+ deploymentName: string;
877
+ resourceName?: string | undefined;
878
+ baseUrl?: string | undefined;
879
+ }>;
880
+ type AzureEmbeddingModelOptionsType = z.infer<typeof AzureEmbeddingModelOptions>;
881
+
882
+ declare class BaseEmbeddingModelOpenAI extends BaseEmbeddingModel {
883
+ readonly version: "v1";
884
+ modelSchema: EmbeddingModelSchemaType;
885
+ private readonly azureApiKey;
886
+ private readonly azureApiVersion;
887
+ constructor(modelSchema: EmbeddingModelSchemaType, options: AzureEmbeddingModelOptionsType);
888
+ getDefaultHeaders(): HeadersType;
889
+ }
890
+
891
+ declare const Text_Embedding_3_LargeLiteral: "text-embedding-3-large";
892
+ declare const Text_Embedding_3_LargeSchema: {
893
+ description: string;
894
+ name: string;
895
+ modalities: ["text" | "token", ...("text" | "token")[]];
896
+ maxInputTokens: number;
897
+ maxOutputTokens: number;
898
+ config: {
899
+ def: Record<string, {
900
+ type: "multi-string";
901
+ param: string;
902
+ title: string;
903
+ description: string;
904
+ max: number;
905
+ } | {
906
+ type: "range";
907
+ param: string;
908
+ title: string;
909
+ description: string;
910
+ max: number;
911
+ min: number;
912
+ step: number;
913
+ default: number;
914
+ } | {
915
+ type: "select-string";
916
+ param: string;
917
+ title: string;
918
+ description: string;
919
+ default: string | null;
920
+ choices: string[];
921
+ } | {
922
+ type: "object-schema";
923
+ param: string;
924
+ title: string;
925
+ description: string;
926
+ objectSchema?: any;
927
+ } | {
928
+ type: "select-boolean";
929
+ param: string;
930
+ title: string;
931
+ description: string;
932
+ default: boolean | null;
933
+ }>;
934
+ schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
935
+ };
936
+ };
937
+ declare const Text_Embedding_3_LargeOptions: z.ZodObject<{
938
+ apiKey: z.ZodString;
939
+ resourceName: z.ZodOptional<z.ZodString>;
940
+ baseUrl: z.ZodOptional<z.ZodString>;
941
+ deploymentName: z.ZodString;
942
+ }, "strip", z.ZodTypeAny, {
943
+ apiKey: string;
944
+ deploymentName: string;
945
+ resourceName?: string | undefined;
946
+ baseUrl?: string | undefined;
947
+ }, {
948
+ apiKey: string;
949
+ deploymentName: string;
950
+ resourceName?: string | undefined;
951
+ baseUrl?: string | undefined;
952
+ }>;
953
+ type Text_Embedding_3_LargeOptionsType = z.infer<typeof Text_Embedding_3_LargeOptions>;
954
+ declare class Text_Embedding_3_Large extends BaseEmbeddingModelOpenAI {
955
+ constructor(options: Text_Embedding_3_LargeOptionsType);
956
+ }
957
+
958
+ declare const Text_Embedding_Ada_002Literal: "text-embedding-ada-002";
959
+ declare const Text_Embedding_Ada_002Schema: {
960
+ description: string;
961
+ name: string;
962
+ modalities: ["text" | "token", ...("text" | "token")[]];
963
+ maxInputTokens: number;
964
+ maxOutputTokens: number;
965
+ config: {
966
+ def: Record<string, {
967
+ type: "multi-string";
968
+ param: string;
969
+ title: string;
970
+ description: string;
971
+ max: number;
972
+ } | {
973
+ type: "range";
974
+ param: string;
975
+ title: string;
976
+ description: string;
977
+ max: number;
978
+ min: number;
979
+ step: number;
980
+ default: number;
981
+ } | {
982
+ type: "select-string";
983
+ param: string;
984
+ title: string;
985
+ description: string;
986
+ default: string | null;
987
+ choices: string[];
988
+ } | {
989
+ type: "object-schema";
990
+ param: string;
991
+ title: string;
992
+ description: string;
993
+ objectSchema?: any;
994
+ } | {
995
+ type: "select-boolean";
996
+ param: string;
997
+ title: string;
998
+ description: string;
999
+ default: boolean | null;
1000
+ }>;
1001
+ schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
1002
+ };
1003
+ };
1004
+ declare const Text_Embedding_Ada_002Options: z.ZodObject<{
1005
+ apiKey: z.ZodString;
1006
+ resourceName: z.ZodOptional<z.ZodString>;
1007
+ baseUrl: z.ZodOptional<z.ZodString>;
1008
+ deploymentName: z.ZodString;
1009
+ }, "strip", z.ZodTypeAny, {
1010
+ apiKey: string;
1011
+ deploymentName: string;
1012
+ resourceName?: string | undefined;
1013
+ baseUrl?: string | undefined;
1014
+ }, {
1015
+ apiKey: string;
1016
+ deploymentName: string;
1017
+ resourceName?: string | undefined;
1018
+ baseUrl?: string | undefined;
1019
+ }>;
1020
+ type Text_Embedding_Ada_002OptionsType = z.infer<typeof Text_Embedding_Ada_002Options>;
1021
+ declare class Text_Embedding_Ada_002 extends BaseEmbeddingModelOpenAI {
1022
+ constructor(options: Text_Embedding_Ada_002OptionsType);
1023
+ }
1024
+
1025
+ declare const Text_Embedding_3_SmallLiteral: "text-embedding-3-small";
1026
+ declare const Text_Embedding_3_SmallSchema: {
1027
+ description: string;
1028
+ name: string;
1029
+ modalities: ["text" | "token", ...("text" | "token")[]];
1030
+ maxInputTokens: number;
1031
+ maxOutputTokens: number;
1032
+ config: {
1033
+ def: Record<string, {
1034
+ type: "multi-string";
1035
+ param: string;
1036
+ title: string;
1037
+ description: string;
1038
+ max: number;
1039
+ } | {
1040
+ type: "range";
1041
+ param: string;
1042
+ title: string;
1043
+ description: string;
1044
+ max: number;
1045
+ min: number;
1046
+ step: number;
1047
+ default: number;
1048
+ } | {
1049
+ type: "select-string";
1050
+ param: string;
1051
+ title: string;
1052
+ description: string;
1053
+ default: string | null;
1054
+ choices: string[];
1055
+ } | {
1056
+ type: "object-schema";
1057
+ param: string;
1058
+ title: string;
1059
+ description: string;
1060
+ objectSchema?: any;
1061
+ } | {
1062
+ type: "select-boolean";
1063
+ param: string;
1064
+ title: string;
1065
+ description: string;
1066
+ default: boolean | null;
1067
+ }>;
1068
+ schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
1069
+ };
1070
+ };
1071
+ declare const Text_Embedding_3_SmallOptions: z.ZodObject<{
1072
+ apiKey: z.ZodString;
1073
+ resourceName: z.ZodOptional<z.ZodString>;
1074
+ baseUrl: z.ZodOptional<z.ZodString>;
1075
+ deploymentName: z.ZodString;
1076
+ }, "strip", z.ZodTypeAny, {
1077
+ apiKey: string;
1078
+ deploymentName: string;
1079
+ resourceName?: string | undefined;
1080
+ baseUrl?: string | undefined;
1081
+ }, {
1082
+ apiKey: string;
1083
+ deploymentName: string;
1084
+ resourceName?: string | undefined;
1085
+ baseUrl?: string | undefined;
1086
+ }>;
1087
+ type Text_Embedding_3_SmallOptionsType = z.infer<typeof Text_Embedding_3_SmallOptions>;
1088
+ declare class Text_Embedding_3_Small extends BaseEmbeddingModelOpenAI {
1089
+ constructor(options: Text_Embedding_3_SmallOptionsType);
194
1090
  }
195
1091
 
196
- export { Azure, AzureEmbeddingModelOptions, type AzureEmbeddingModelOptionsType, BaseChatModelOpenAI, BaseEmbeddingModelOpenAI, GPT_4o, GPT_4oLiteral, GPT_4oOptions, type GPT_4oOptionsType, GPT_4oSchema, Text_Embedding_3_Large, Text_Embedding_3_LargeLiteral, Text_Embedding_3_LargeOptions, type Text_Embedding_3_LargeOptionsType, Text_Embedding_3_LargeSchema };
1092
+ export { Azure, AzureChatModelOptions, type AzureChatModelOptionsType, AzureEmbeddingModelOptions, type AzureEmbeddingModelOptionsType, BaseChatModelOpenAI, BaseEmbeddingModelOpenAI, GPT_3_5_Turbo, GPT_3_5_TurboLiteral, GPT_3_5_TurboOptions, type GPT_3_5_TurboOptionsType, GPT_3_5_TurboSchema, GPT_3_5_Turbo_0125, GPT_3_5_Turbo_0125Literal, GPT_3_5_Turbo_0125Options, type GPT_3_5_Turbo_0125OptionsType, GPT_3_5_Turbo_0125Schema, GPT_3_5_Turbo_1106, GPT_3_5_Turbo_1106Literal, GPT_3_5_Turbo_1106Options, type GPT_3_5_Turbo_1106OptionsType, GPT_3_5_Turbo_1106Schema, GPT_4, GPT_4Literal, GPT_4Options, type GPT_4OptionsType, GPT_4Schema, GPT_4_0613, GPT_4_0613Literal, GPT_4_0613Options, type GPT_4_0613OptionsType, GPT_4_0613Schema, GPT_4_1106_Preview, GPT_4_1106_PreviewLiteral, GPT_4_1106_PreviewOptions, type GPT_4_1106_PreviewOptionsType, GPT_4_1106_PreviewSchema, GPT_4_Turbo_2024_04_09, GPT_4_Turbo_2024_04_09Literal, GPT_4_Turbo_2024_04_09Options, type GPT_4_Turbo_2024_04_09OptionsType, GPT_4_Turbo_2024_04_09Schema, GPT_4o, GPT_4oLiteral, GPT_4oOptions, type GPT_4oOptionsType, GPT_4oSchema, GPT_4o_2024_05_13, GPT_4o_2024_05_13Literal, GPT_4o_2024_05_13Options, type GPT_4o_2024_05_13OptionsType, GPT_4o_2024_05_13Schema, GPT_4o_2024_08_06, GPT_4o_2024_08_06Literal, GPT_4o_2024_08_06Options, type GPT_4o_2024_08_06OptionsType, GPT_4o_2024_08_06Schema, GPT_4o_Mini, GPT_4o_MiniLiteral, GPT_4o_MiniOptions, type GPT_4o_MiniOptionsType, GPT_4o_MiniSchema, GPT_4o_Mini_2024_07_18, GPT_4o_Mini_2024_07_18Literal, GPT_4o_Mini_2024_07_18Options, type GPT_4o_Mini_2024_07_18OptionsType, GPT_4o_Mini_2024_07_18Schema, Text_Embedding_3_Large, Text_Embedding_3_LargeLiteral, Text_Embedding_3_LargeOptions, type Text_Embedding_3_LargeOptionsType, Text_Embedding_3_LargeSchema, Text_Embedding_3_Small, Text_Embedding_3_SmallLiteral, Text_Embedding_3_SmallOptions, type Text_Embedding_3_SmallOptionsType, Text_Embedding_3_SmallSchema, Text_Embedding_Ada_002, Text_Embedding_Ada_002Literal, Text_Embedding_Ada_002Options, type Text_Embedding_Ada_002OptionsType, Text_Embedding_Ada_002Schema };