@adaline/azure 0.2.0 → 0.3.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 +934 -38
- package/dist/index.d.ts +934 -38
- package/dist/index.js +77 -25
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -14
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -5,7 +5,7 @@ import { z } from 'zod';
|
|
|
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,
|
|
8
|
+
static readonly azureUrl: (resourceName: string, provider: string) => string;
|
|
9
9
|
private readonly chatModelFactories;
|
|
10
10
|
private readonly embeddingModelFactories;
|
|
11
11
|
chatModelLiterals(): string[];
|
|
@@ -19,34 +19,650 @@ declare class Azure<O extends Record<string, any> = Record<string, any>> impleme
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
declare const AzureChatModelOptions: z.ZodObject<{
|
|
22
|
-
|
|
22
|
+
apiKey: z.ZodString;
|
|
23
|
+
resourceName: z.ZodOptional<z.ZodString>;
|
|
24
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
25
|
+
deploymentName: z.ZodString;
|
|
26
|
+
}, "strip", z.ZodTypeAny, {
|
|
27
|
+
apiKey: string;
|
|
28
|
+
deploymentName: string;
|
|
29
|
+
resourceName?: string | undefined;
|
|
30
|
+
baseUrl?: string | undefined;
|
|
31
|
+
}, {
|
|
32
|
+
apiKey: string;
|
|
33
|
+
deploymentName: string;
|
|
34
|
+
resourceName?: string | undefined;
|
|
35
|
+
baseUrl?: string | undefined;
|
|
36
|
+
}>;
|
|
37
|
+
type AzureChatModelOptionsType = z.infer<typeof AzureChatModelOptions>;
|
|
38
|
+
|
|
39
|
+
declare class BaseChatModelOpenAI extends BaseChatModel {
|
|
40
|
+
readonly version: "v1";
|
|
41
|
+
modelSchema: ChatModelSchemaType;
|
|
42
|
+
private readonly azureApiKey;
|
|
43
|
+
private readonly azureApiVersion;
|
|
44
|
+
constructor(modelSchema: ChatModelSchemaType, options: AzureChatModelOptionsType);
|
|
45
|
+
getDefaultHeaders(): HeadersType;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
declare const GPT_4oLiteral: "gpt-4o";
|
|
49
|
+
declare const GPT_4oSchema: {
|
|
50
|
+
description: string;
|
|
51
|
+
name: string;
|
|
52
|
+
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
53
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
54
|
+
maxInputTokens: number;
|
|
55
|
+
maxOutputTokens: number;
|
|
56
|
+
config: {
|
|
57
|
+
def: Record<string, {
|
|
58
|
+
type: "multi-string";
|
|
59
|
+
param: string;
|
|
60
|
+
title: string;
|
|
61
|
+
description: string;
|
|
62
|
+
max: number;
|
|
63
|
+
} | {
|
|
64
|
+
type: "range";
|
|
65
|
+
param: string;
|
|
66
|
+
title: string;
|
|
67
|
+
description: string;
|
|
68
|
+
max: number;
|
|
69
|
+
min: number;
|
|
70
|
+
step: number;
|
|
71
|
+
default: number;
|
|
72
|
+
} | {
|
|
73
|
+
type: "select-string";
|
|
74
|
+
param: string;
|
|
75
|
+
title: string;
|
|
76
|
+
description: string;
|
|
77
|
+
default: string | null;
|
|
78
|
+
choices: string[];
|
|
79
|
+
} | {
|
|
80
|
+
type: "object-schema";
|
|
81
|
+
param: string;
|
|
82
|
+
title: string;
|
|
83
|
+
description: string;
|
|
84
|
+
objectSchema?: any;
|
|
85
|
+
} | {
|
|
86
|
+
type: "select-boolean";
|
|
87
|
+
param: string;
|
|
88
|
+
title: string;
|
|
89
|
+
description: string;
|
|
90
|
+
default: boolean | null;
|
|
91
|
+
}>;
|
|
92
|
+
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
declare const GPT_4oOptions: z.ZodObject<{
|
|
96
|
+
apiKey: z.ZodString;
|
|
97
|
+
resourceName: z.ZodOptional<z.ZodString>;
|
|
98
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
99
|
+
deploymentName: z.ZodString;
|
|
100
|
+
}, "strip", z.ZodTypeAny, {
|
|
101
|
+
apiKey: string;
|
|
102
|
+
deploymentName: string;
|
|
103
|
+
resourceName?: string | undefined;
|
|
104
|
+
baseUrl?: string | undefined;
|
|
105
|
+
}, {
|
|
106
|
+
apiKey: string;
|
|
107
|
+
deploymentName: string;
|
|
108
|
+
resourceName?: string | undefined;
|
|
109
|
+
baseUrl?: string | undefined;
|
|
110
|
+
}>;
|
|
111
|
+
type GPT_4oOptionsType = z.infer<typeof GPT_4oOptions>;
|
|
112
|
+
declare class GPT_4o extends BaseChatModelOpenAI {
|
|
113
|
+
constructor(options: GPT_4oOptionsType);
|
|
114
|
+
}
|
|
115
|
+
|
|
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<{
|
|
164
|
+
apiKey: z.ZodString;
|
|
165
|
+
resourceName: z.ZodOptional<z.ZodString>;
|
|
166
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
167
|
+
deploymentName: z.ZodString;
|
|
168
|
+
}, "strip", z.ZodTypeAny, {
|
|
169
|
+
apiKey: string;
|
|
170
|
+
deploymentName: string;
|
|
171
|
+
resourceName?: string | undefined;
|
|
172
|
+
baseUrl?: string | undefined;
|
|
173
|
+
}, {
|
|
174
|
+
apiKey: string;
|
|
175
|
+
deploymentName: string;
|
|
176
|
+
resourceName?: string | undefined;
|
|
177
|
+
baseUrl?: string | undefined;
|
|
178
|
+
}>;
|
|
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);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
declare const GPT_4o_Mini_2024_07_18Literal: "gpt-4o-mini-2024-07-18";
|
|
185
|
+
declare const GPT_4o_Mini_2024_07_18Schema: {
|
|
186
|
+
description: string;
|
|
187
|
+
name: string;
|
|
188
|
+
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
189
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
190
|
+
maxInputTokens: number;
|
|
191
|
+
maxOutputTokens: number;
|
|
192
|
+
config: {
|
|
193
|
+
def: Record<string, {
|
|
194
|
+
type: "multi-string";
|
|
195
|
+
param: string;
|
|
196
|
+
title: string;
|
|
197
|
+
description: string;
|
|
198
|
+
max: number;
|
|
199
|
+
} | {
|
|
200
|
+
type: "range";
|
|
201
|
+
param: string;
|
|
202
|
+
title: string;
|
|
203
|
+
description: string;
|
|
204
|
+
max: number;
|
|
205
|
+
min: number;
|
|
206
|
+
step: number;
|
|
207
|
+
default: number;
|
|
208
|
+
} | {
|
|
209
|
+
type: "select-string";
|
|
210
|
+
param: string;
|
|
211
|
+
title: string;
|
|
212
|
+
description: string;
|
|
213
|
+
default: string | null;
|
|
214
|
+
choices: string[];
|
|
215
|
+
} | {
|
|
216
|
+
type: "object-schema";
|
|
217
|
+
param: string;
|
|
218
|
+
title: string;
|
|
219
|
+
description: string;
|
|
220
|
+
objectSchema?: any;
|
|
221
|
+
} | {
|
|
222
|
+
type: "select-boolean";
|
|
223
|
+
param: string;
|
|
224
|
+
title: string;
|
|
225
|
+
description: string;
|
|
226
|
+
default: boolean | null;
|
|
227
|
+
}>;
|
|
228
|
+
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
declare const GPT_4o_Mini_2024_07_18Options: z.ZodObject<{
|
|
232
|
+
apiKey: z.ZodString;
|
|
233
|
+
resourceName: z.ZodOptional<z.ZodString>;
|
|
234
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
235
|
+
deploymentName: 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<{
|
|
300
|
+
apiKey: z.ZodString;
|
|
301
|
+
resourceName: z.ZodOptional<z.ZodString>;
|
|
302
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
303
|
+
deploymentName: z.ZodString;
|
|
304
|
+
}, "strip", z.ZodTypeAny, {
|
|
305
|
+
apiKey: string;
|
|
306
|
+
deploymentName: string;
|
|
307
|
+
resourceName?: string | undefined;
|
|
308
|
+
baseUrl?: string | undefined;
|
|
309
|
+
}, {
|
|
310
|
+
apiKey: string;
|
|
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
|
+
resourceName: z.ZodOptional<z.ZodString>;
|
|
370
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
371
|
+
deploymentName: z.ZodString;
|
|
372
|
+
}, "strip", z.ZodTypeAny, {
|
|
373
|
+
apiKey: string;
|
|
374
|
+
deploymentName: string;
|
|
375
|
+
resourceName?: string | undefined;
|
|
376
|
+
baseUrl?: string | undefined;
|
|
377
|
+
}, {
|
|
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
|
+
resourceName: z.ZodOptional<z.ZodString>;
|
|
438
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
439
|
+
deploymentName: z.ZodString;
|
|
440
|
+
}, "strip", z.ZodTypeAny, {
|
|
441
|
+
apiKey: string;
|
|
442
|
+
deploymentName: string;
|
|
443
|
+
resourceName?: string | undefined;
|
|
444
|
+
baseUrl?: string | undefined;
|
|
445
|
+
}, {
|
|
446
|
+
apiKey: string;
|
|
447
|
+
deploymentName: string;
|
|
448
|
+
resourceName?: string | undefined;
|
|
449
|
+
baseUrl?: string | undefined;
|
|
450
|
+
}>;
|
|
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
|
+
resourceName: z.ZodOptional<z.ZodString>;
|
|
506
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
507
|
+
deploymentName: 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
|
+
resourceName: z.ZodOptional<z.ZodString>;
|
|
574
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
23
575
|
deploymentName: 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<{
|
|
24
640
|
apiKey: z.ZodString;
|
|
641
|
+
resourceName: z.ZodOptional<z.ZodString>;
|
|
642
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
643
|
+
deploymentName: z.ZodString;
|
|
25
644
|
}, "strip", z.ZodTypeAny, {
|
|
26
|
-
resourceName: string;
|
|
27
|
-
deploymentName: string;
|
|
28
645
|
apiKey: string;
|
|
29
|
-
}, {
|
|
30
|
-
resourceName: string;
|
|
31
646
|
deploymentName: string;
|
|
647
|
+
resourceName?: string | undefined;
|
|
648
|
+
baseUrl?: string | undefined;
|
|
649
|
+
}, {
|
|
32
650
|
apiKey: string;
|
|
651
|
+
deploymentName: string;
|
|
652
|
+
resourceName?: string | undefined;
|
|
653
|
+
baseUrl?: string | undefined;
|
|
33
654
|
}>;
|
|
34
|
-
type
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
readonly version: "v1";
|
|
38
|
-
modelSchema: ChatModelSchemaType;
|
|
39
|
-
private readonly azureApiKey;
|
|
40
|
-
constructor(modelSchema: ChatModelSchemaType, options: AzureChatModelOptionsType);
|
|
41
|
-
getDefaultHeaders(): HeadersType;
|
|
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);
|
|
42
658
|
}
|
|
43
659
|
|
|
44
|
-
declare const
|
|
45
|
-
declare const
|
|
660
|
+
declare const GPT_3_5_TurboLiteral: "gpt-3-5-turbo";
|
|
661
|
+
declare const GPT_3_5_TurboSchema: {
|
|
46
662
|
description: string;
|
|
47
663
|
name: string;
|
|
48
664
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
49
|
-
modalities: ["text" | "
|
|
665
|
+
modalities: ["text" | "tool-call" | "tool-response", ...("text" | "tool-call" | "tool-response")[]];
|
|
50
666
|
maxInputTokens: number;
|
|
51
667
|
maxOutputTokens: number;
|
|
52
668
|
config: {
|
|
@@ -88,36 +704,178 @@ declare const GPT_4oSchema: {
|
|
|
88
704
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
89
705
|
};
|
|
90
706
|
};
|
|
91
|
-
declare const
|
|
92
|
-
resourceName: z.ZodString;
|
|
93
|
-
deploymentName: z.ZodString;
|
|
707
|
+
declare const GPT_3_5_TurboOptions: z.ZodObject<{
|
|
94
708
|
apiKey: z.ZodString;
|
|
709
|
+
resourceName: z.ZodOptional<z.ZodString>;
|
|
710
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
711
|
+
deploymentName: z.ZodString;
|
|
95
712
|
}, "strip", z.ZodTypeAny, {
|
|
96
|
-
|
|
713
|
+
apiKey: string;
|
|
714
|
+
deploymentName: string;
|
|
715
|
+
resourceName?: string | undefined;
|
|
716
|
+
baseUrl?: string | undefined;
|
|
717
|
+
}, {
|
|
718
|
+
apiKey: string;
|
|
97
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
|
+
resourceName: z.ZodOptional<z.ZodString>;
|
|
778
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
779
|
+
deploymentName: z.ZodString;
|
|
780
|
+
}, "strip", z.ZodTypeAny, {
|
|
98
781
|
apiKey: string;
|
|
782
|
+
deploymentName: string;
|
|
783
|
+
resourceName?: string | undefined;
|
|
784
|
+
baseUrl?: string | undefined;
|
|
99
785
|
}, {
|
|
100
|
-
|
|
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
|
+
resourceName: z.ZodOptional<z.ZodString>;
|
|
846
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
847
|
+
deploymentName: z.ZodString;
|
|
848
|
+
}, "strip", z.ZodTypeAny, {
|
|
849
|
+
apiKey: string;
|
|
101
850
|
deploymentName: string;
|
|
851
|
+
resourceName?: string | undefined;
|
|
852
|
+
baseUrl?: string | undefined;
|
|
853
|
+
}, {
|
|
102
854
|
apiKey: string;
|
|
855
|
+
deploymentName: string;
|
|
856
|
+
resourceName?: string | undefined;
|
|
857
|
+
baseUrl?: string | undefined;
|
|
103
858
|
}>;
|
|
104
|
-
type
|
|
105
|
-
declare class
|
|
106
|
-
constructor(options:
|
|
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);
|
|
107
862
|
}
|
|
108
863
|
|
|
109
864
|
declare const AzureEmbeddingModelOptions: z.ZodObject<{
|
|
110
|
-
resourceName: z.ZodString;
|
|
111
|
-
deploymentName: z.ZodString;
|
|
112
865
|
apiKey: z.ZodString;
|
|
866
|
+
resourceName: z.ZodOptional<z.ZodString>;
|
|
867
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
868
|
+
deploymentName: z.ZodString;
|
|
113
869
|
}, "strip", z.ZodTypeAny, {
|
|
114
|
-
resourceName: string;
|
|
115
|
-
deploymentName: string;
|
|
116
870
|
apiKey: string;
|
|
117
|
-
}, {
|
|
118
|
-
resourceName: string;
|
|
119
871
|
deploymentName: string;
|
|
872
|
+
resourceName?: string | undefined;
|
|
873
|
+
baseUrl?: string | undefined;
|
|
874
|
+
}, {
|
|
120
875
|
apiKey: string;
|
|
876
|
+
deploymentName: string;
|
|
877
|
+
resourceName?: string | undefined;
|
|
878
|
+
baseUrl?: string | undefined;
|
|
121
879
|
}>;
|
|
122
880
|
type AzureEmbeddingModelOptionsType = z.infer<typeof AzureEmbeddingModelOptions>;
|
|
123
881
|
|
|
@@ -125,6 +883,7 @@ declare class BaseEmbeddingModelOpenAI extends BaseEmbeddingModel {
|
|
|
125
883
|
readonly version: "v1";
|
|
126
884
|
modelSchema: EmbeddingModelSchemaType;
|
|
127
885
|
private readonly azureApiKey;
|
|
886
|
+
private readonly azureApiVersion;
|
|
128
887
|
constructor(modelSchema: EmbeddingModelSchemaType, options: AzureEmbeddingModelOptionsType);
|
|
129
888
|
getDefaultHeaders(): HeadersType;
|
|
130
889
|
}
|
|
@@ -176,21 +935,158 @@ declare const Text_Embedding_3_LargeSchema: {
|
|
|
176
935
|
};
|
|
177
936
|
};
|
|
178
937
|
declare const Text_Embedding_3_LargeOptions: z.ZodObject<{
|
|
179
|
-
resourceName: z.ZodString;
|
|
180
|
-
deploymentName: z.ZodString;
|
|
181
938
|
apiKey: z.ZodString;
|
|
939
|
+
resourceName: z.ZodOptional<z.ZodString>;
|
|
940
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
941
|
+
deploymentName: z.ZodString;
|
|
182
942
|
}, "strip", z.ZodTypeAny, {
|
|
183
|
-
resourceName: string;
|
|
184
|
-
deploymentName: string;
|
|
185
943
|
apiKey: string;
|
|
186
|
-
}, {
|
|
187
|
-
resourceName: string;
|
|
188
944
|
deploymentName: string;
|
|
945
|
+
resourceName?: string | undefined;
|
|
946
|
+
baseUrl?: string | undefined;
|
|
947
|
+
}, {
|
|
189
948
|
apiKey: string;
|
|
949
|
+
deploymentName: string;
|
|
950
|
+
resourceName?: string | undefined;
|
|
951
|
+
baseUrl?: string | undefined;
|
|
190
952
|
}>;
|
|
191
953
|
type Text_Embedding_3_LargeOptionsType = z.infer<typeof Text_Embedding_3_LargeOptions>;
|
|
192
954
|
declare class Text_Embedding_3_Large extends BaseEmbeddingModelOpenAI {
|
|
193
955
|
constructor(options: Text_Embedding_3_LargeOptionsType);
|
|
194
956
|
}
|
|
195
957
|
|
|
196
|
-
|
|
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);
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
export { Azure, 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 };
|