@adaline/openai 0.20.0 → 0.22.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 +237 -15
- package/dist/index.d.ts +237 -15
- package/dist/index.js +156 -144
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -4452,6 +4452,80 @@ declare class GPT_4 extends BaseChatModel {
|
|
|
4452
4452
|
constructor(options: GPT_4OptionsType);
|
|
4453
4453
|
}
|
|
4454
4454
|
|
|
4455
|
+
declare const GPT_4o_2024_05_13Literal = "gpt-4o-2024-05-13";
|
|
4456
|
+
declare const GPT_4o_2024_05_13Schema: {
|
|
4457
|
+
description: string;
|
|
4458
|
+
name: string;
|
|
4459
|
+
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
4460
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
4461
|
+
maxInputTokens: number;
|
|
4462
|
+
maxOutputTokens: number;
|
|
4463
|
+
config: {
|
|
4464
|
+
def: Record<string, {
|
|
4465
|
+
type: "multi-string";
|
|
4466
|
+
param: string;
|
|
4467
|
+
title: string;
|
|
4468
|
+
description: string;
|
|
4469
|
+
max: number;
|
|
4470
|
+
} | {
|
|
4471
|
+
type: "object-schema";
|
|
4472
|
+
param: string;
|
|
4473
|
+
title: string;
|
|
4474
|
+
description: string;
|
|
4475
|
+
objectSchema?: any;
|
|
4476
|
+
} | {
|
|
4477
|
+
type: "range";
|
|
4478
|
+
param: string;
|
|
4479
|
+
title: string;
|
|
4480
|
+
description: string;
|
|
4481
|
+
max: number;
|
|
4482
|
+
default: number;
|
|
4483
|
+
min: number;
|
|
4484
|
+
step: number;
|
|
4485
|
+
} | {
|
|
4486
|
+
type: "select-boolean";
|
|
4487
|
+
param: string;
|
|
4488
|
+
title: string;
|
|
4489
|
+
description: string;
|
|
4490
|
+
default: boolean | null;
|
|
4491
|
+
} | {
|
|
4492
|
+
type: "select-string";
|
|
4493
|
+
param: string;
|
|
4494
|
+
title: string;
|
|
4495
|
+
description: string;
|
|
4496
|
+
default: string | null;
|
|
4497
|
+
choices: string[];
|
|
4498
|
+
}>;
|
|
4499
|
+
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
4500
|
+
};
|
|
4501
|
+
};
|
|
4502
|
+
declare const GPT_4o_2024_05_13Options: z.ZodObject<{
|
|
4503
|
+
modelName: z.ZodString;
|
|
4504
|
+
apiKey: z.ZodString;
|
|
4505
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
4506
|
+
completeChatUrl: z.ZodOptional<z.ZodString>;
|
|
4507
|
+
streamChatUrl: z.ZodOptional<z.ZodString>;
|
|
4508
|
+
organization: z.ZodOptional<z.ZodString>;
|
|
4509
|
+
}, "strip", z.ZodTypeAny, {
|
|
4510
|
+
modelName: string;
|
|
4511
|
+
apiKey: string;
|
|
4512
|
+
baseUrl?: string | undefined;
|
|
4513
|
+
completeChatUrl?: string | undefined;
|
|
4514
|
+
streamChatUrl?: string | undefined;
|
|
4515
|
+
organization?: string | undefined;
|
|
4516
|
+
}, {
|
|
4517
|
+
modelName: string;
|
|
4518
|
+
apiKey: string;
|
|
4519
|
+
baseUrl?: string | undefined;
|
|
4520
|
+
completeChatUrl?: string | undefined;
|
|
4521
|
+
streamChatUrl?: string | undefined;
|
|
4522
|
+
organization?: string | undefined;
|
|
4523
|
+
}>;
|
|
4524
|
+
type GPT_4o_2024_05_13OptionsType = z.infer<typeof GPT_4o_2024_05_13Options>;
|
|
4525
|
+
declare class GPT_4o_2024_05_13 extends BaseChatModel {
|
|
4526
|
+
constructor(options: GPT_4o_2024_05_13OptionsType);
|
|
4527
|
+
}
|
|
4528
|
+
|
|
4455
4529
|
declare const GPT_4o_2024_08_06Literal = "gpt-4o-2024-08-06";
|
|
4456
4530
|
declare const GPT_4o_2024_08_06Schema: {
|
|
4457
4531
|
description: string;
|
|
@@ -4526,6 +4600,80 @@ declare class GPT_4o_2024_08_06 extends BaseChatModel {
|
|
|
4526
4600
|
constructor(options: GPT_4o_2024_08_06OptionsType);
|
|
4527
4601
|
}
|
|
4528
4602
|
|
|
4603
|
+
declare const GPT_4o_Mini_2024_07_18Literal = "gpt-4o-mini-2024-07-18";
|
|
4604
|
+
declare const GPT_4o_Mini_2024_07_18Schema: {
|
|
4605
|
+
description: string;
|
|
4606
|
+
name: string;
|
|
4607
|
+
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
4608
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
4609
|
+
maxInputTokens: number;
|
|
4610
|
+
maxOutputTokens: number;
|
|
4611
|
+
config: {
|
|
4612
|
+
def: Record<string, {
|
|
4613
|
+
type: "multi-string";
|
|
4614
|
+
param: string;
|
|
4615
|
+
title: string;
|
|
4616
|
+
description: string;
|
|
4617
|
+
max: number;
|
|
4618
|
+
} | {
|
|
4619
|
+
type: "object-schema";
|
|
4620
|
+
param: string;
|
|
4621
|
+
title: string;
|
|
4622
|
+
description: string;
|
|
4623
|
+
objectSchema?: any;
|
|
4624
|
+
} | {
|
|
4625
|
+
type: "range";
|
|
4626
|
+
param: string;
|
|
4627
|
+
title: string;
|
|
4628
|
+
description: string;
|
|
4629
|
+
max: number;
|
|
4630
|
+
default: number;
|
|
4631
|
+
min: number;
|
|
4632
|
+
step: number;
|
|
4633
|
+
} | {
|
|
4634
|
+
type: "select-boolean";
|
|
4635
|
+
param: string;
|
|
4636
|
+
title: string;
|
|
4637
|
+
description: string;
|
|
4638
|
+
default: boolean | null;
|
|
4639
|
+
} | {
|
|
4640
|
+
type: "select-string";
|
|
4641
|
+
param: string;
|
|
4642
|
+
title: string;
|
|
4643
|
+
description: string;
|
|
4644
|
+
default: string | null;
|
|
4645
|
+
choices: string[];
|
|
4646
|
+
}>;
|
|
4647
|
+
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
4648
|
+
};
|
|
4649
|
+
};
|
|
4650
|
+
declare const GPT_4o_Mini_2024_07_18Options: z.ZodObject<{
|
|
4651
|
+
modelName: z.ZodString;
|
|
4652
|
+
apiKey: z.ZodString;
|
|
4653
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
4654
|
+
completeChatUrl: z.ZodOptional<z.ZodString>;
|
|
4655
|
+
streamChatUrl: z.ZodOptional<z.ZodString>;
|
|
4656
|
+
organization: z.ZodOptional<z.ZodString>;
|
|
4657
|
+
}, "strip", z.ZodTypeAny, {
|
|
4658
|
+
modelName: string;
|
|
4659
|
+
apiKey: string;
|
|
4660
|
+
baseUrl?: string | undefined;
|
|
4661
|
+
completeChatUrl?: string | undefined;
|
|
4662
|
+
streamChatUrl?: string | undefined;
|
|
4663
|
+
organization?: string | undefined;
|
|
4664
|
+
}, {
|
|
4665
|
+
modelName: string;
|
|
4666
|
+
apiKey: string;
|
|
4667
|
+
baseUrl?: string | undefined;
|
|
4668
|
+
completeChatUrl?: string | undefined;
|
|
4669
|
+
streamChatUrl?: string | undefined;
|
|
4670
|
+
organization?: string | undefined;
|
|
4671
|
+
}>;
|
|
4672
|
+
type GPT_4o_Mini_2024_07_18OptionsType = z.infer<typeof GPT_4o_Mini_2024_07_18Options>;
|
|
4673
|
+
declare class GPT_4o_Mini_2024_07_18 extends BaseChatModel {
|
|
4674
|
+
constructor(options: GPT_4o_Mini_2024_07_18OptionsType);
|
|
4675
|
+
}
|
|
4676
|
+
|
|
4529
4677
|
declare const GPT_4o_MiniLiteral = "gpt-4o-mini";
|
|
4530
4678
|
declare const GPT_4o_MiniSchema: {
|
|
4531
4679
|
description: string;
|
|
@@ -4674,8 +4822,8 @@ declare class GPT_4o extends BaseChatModel {
|
|
|
4674
4822
|
constructor(options: GPT_4oOptionsType);
|
|
4675
4823
|
}
|
|
4676
4824
|
|
|
4677
|
-
declare const
|
|
4678
|
-
declare const
|
|
4825
|
+
declare const O1_2024_12_17Literal = "o1-2024-12-17";
|
|
4826
|
+
declare const O1_2024_12_17Schema: {
|
|
4679
4827
|
description: string;
|
|
4680
4828
|
name: string;
|
|
4681
4829
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
@@ -4721,7 +4869,7 @@ declare const GPT_4o_Mini_2024_07_18Schema: {
|
|
|
4721
4869
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
4722
4870
|
};
|
|
4723
4871
|
};
|
|
4724
|
-
declare const
|
|
4872
|
+
declare const O1_2024_12_17Options: z.ZodObject<{
|
|
4725
4873
|
modelName: z.ZodString;
|
|
4726
4874
|
apiKey: z.ZodString;
|
|
4727
4875
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -4743,17 +4891,17 @@ declare const GPT_4o_Mini_2024_07_18Options: z.ZodObject<{
|
|
|
4743
4891
|
streamChatUrl?: string | undefined;
|
|
4744
4892
|
organization?: string | undefined;
|
|
4745
4893
|
}>;
|
|
4746
|
-
type
|
|
4747
|
-
declare class
|
|
4748
|
-
constructor(options:
|
|
4894
|
+
type O1_2024_12_17OptionsType = z.infer<typeof O1_2024_12_17Options>;
|
|
4895
|
+
declare class O1_2024_12_17 extends BaseChatModel {
|
|
4896
|
+
constructor(options: O1_2024_12_17OptionsType);
|
|
4749
4897
|
}
|
|
4750
4898
|
|
|
4751
|
-
declare const
|
|
4752
|
-
declare const
|
|
4899
|
+
declare const O1_Mini_2024_09_12Literal = "o1-mini-2024-09-12";
|
|
4900
|
+
declare const O1_Mini_2024_09_12Schema: {
|
|
4753
4901
|
description: string;
|
|
4754
4902
|
name: string;
|
|
4755
|
-
roles: Partial<Record<"
|
|
4756
|
-
modalities: ["text"
|
|
4903
|
+
roles: Partial<Record<"user" | "assistant", string | undefined>>;
|
|
4904
|
+
modalities: ["text", ..."text"[]];
|
|
4757
4905
|
maxInputTokens: number;
|
|
4758
4906
|
maxOutputTokens: number;
|
|
4759
4907
|
config: {
|
|
@@ -4795,7 +4943,7 @@ declare const GPT_4o_2024_05_13Schema: {
|
|
|
4795
4943
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
4796
4944
|
};
|
|
4797
4945
|
};
|
|
4798
|
-
declare const
|
|
4946
|
+
declare const O1_Mini_2024_09_12Options: z.ZodObject<{
|
|
4799
4947
|
modelName: z.ZodString;
|
|
4800
4948
|
apiKey: z.ZodString;
|
|
4801
4949
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -4817,9 +4965,9 @@ declare const GPT_4o_2024_05_13Options: z.ZodObject<{
|
|
|
4817
4965
|
streamChatUrl?: string | undefined;
|
|
4818
4966
|
organization?: string | undefined;
|
|
4819
4967
|
}>;
|
|
4820
|
-
type
|
|
4821
|
-
declare class
|
|
4822
|
-
constructor(options:
|
|
4968
|
+
type O1_Mini_2024_09_12OptionsType = z.infer<typeof O1_Mini_2024_09_12Options>;
|
|
4969
|
+
declare class O1_Mini_2024_09_12 extends BaseOSeriesChatModel {
|
|
4970
|
+
constructor(options: O1_Mini_2024_09_12OptionsType);
|
|
4823
4971
|
}
|
|
4824
4972
|
|
|
4825
4973
|
declare const O1_MiniLiteral = "o1-mini";
|
|
@@ -4970,6 +5118,80 @@ declare class O1_Preview extends BaseOSeriesChatModel {
|
|
|
4970
5118
|
constructor(options: O1_PreviewOptionsType);
|
|
4971
5119
|
}
|
|
4972
5120
|
|
|
5121
|
+
declare const O1Literal = "o1";
|
|
5122
|
+
declare const O1Schema: {
|
|
5123
|
+
description: string;
|
|
5124
|
+
name: string;
|
|
5125
|
+
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
5126
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
5127
|
+
maxInputTokens: number;
|
|
5128
|
+
maxOutputTokens: number;
|
|
5129
|
+
config: {
|
|
5130
|
+
def: Record<string, {
|
|
5131
|
+
type: "multi-string";
|
|
5132
|
+
param: string;
|
|
5133
|
+
title: string;
|
|
5134
|
+
description: string;
|
|
5135
|
+
max: number;
|
|
5136
|
+
} | {
|
|
5137
|
+
type: "object-schema";
|
|
5138
|
+
param: string;
|
|
5139
|
+
title: string;
|
|
5140
|
+
description: string;
|
|
5141
|
+
objectSchema?: any;
|
|
5142
|
+
} | {
|
|
5143
|
+
type: "range";
|
|
5144
|
+
param: string;
|
|
5145
|
+
title: string;
|
|
5146
|
+
description: string;
|
|
5147
|
+
max: number;
|
|
5148
|
+
default: number;
|
|
5149
|
+
min: number;
|
|
5150
|
+
step: number;
|
|
5151
|
+
} | {
|
|
5152
|
+
type: "select-boolean";
|
|
5153
|
+
param: string;
|
|
5154
|
+
title: string;
|
|
5155
|
+
description: string;
|
|
5156
|
+
default: boolean | null;
|
|
5157
|
+
} | {
|
|
5158
|
+
type: "select-string";
|
|
5159
|
+
param: string;
|
|
5160
|
+
title: string;
|
|
5161
|
+
description: string;
|
|
5162
|
+
default: string | null;
|
|
5163
|
+
choices: string[];
|
|
5164
|
+
}>;
|
|
5165
|
+
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
5166
|
+
};
|
|
5167
|
+
};
|
|
5168
|
+
declare const O1Options: z.ZodObject<{
|
|
5169
|
+
modelName: z.ZodString;
|
|
5170
|
+
apiKey: z.ZodString;
|
|
5171
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
5172
|
+
completeChatUrl: z.ZodOptional<z.ZodString>;
|
|
5173
|
+
streamChatUrl: z.ZodOptional<z.ZodString>;
|
|
5174
|
+
organization: z.ZodOptional<z.ZodString>;
|
|
5175
|
+
}, "strip", z.ZodTypeAny, {
|
|
5176
|
+
modelName: string;
|
|
5177
|
+
apiKey: string;
|
|
5178
|
+
baseUrl?: string | undefined;
|
|
5179
|
+
completeChatUrl?: string | undefined;
|
|
5180
|
+
streamChatUrl?: string | undefined;
|
|
5181
|
+
organization?: string | undefined;
|
|
5182
|
+
}, {
|
|
5183
|
+
modelName: string;
|
|
5184
|
+
apiKey: string;
|
|
5185
|
+
baseUrl?: string | undefined;
|
|
5186
|
+
completeChatUrl?: string | undefined;
|
|
5187
|
+
streamChatUrl?: string | undefined;
|
|
5188
|
+
organization?: string | undefined;
|
|
5189
|
+
}>;
|
|
5190
|
+
type O1OptionsType = z.infer<typeof O1Options>;
|
|
5191
|
+
declare class O1 extends BaseOSeriesChatModel {
|
|
5192
|
+
constructor(options: O1OptionsType);
|
|
5193
|
+
}
|
|
5194
|
+
|
|
4973
5195
|
declare const OpenAIEmbeddingModelModalities: EmbeddingModelSchemaType["modalities"];
|
|
4974
5196
|
declare const OpenAIEmbeddingModelModalitiesEnum: z.ZodEnum<["text", "token"]>;
|
|
4975
5197
|
|
|
@@ -5307,4 +5529,4 @@ declare class OpenAI<C extends BaseChatModelOptionsType, E extends BaseEmbedding
|
|
|
5307
5529
|
embeddingModel(options: E): EmbeddingModelV1;
|
|
5308
5530
|
}
|
|
5309
5531
|
|
|
5310
|
-
export { BaseChatModel, BaseChatModelOptions, type BaseChatModelOptionsType, BaseEmbeddingModel, BaseEmbeddingModelOptions, type BaseEmbeddingModelOptionsType, BaseOSeriesChatModel, ChatModelBaseConfigDef, ChatModelBaseConfigSchema, ChatModelOSeriesConfigDef, ChatModelOSeriesConfigSchema, ChatModelResponseFormatConfigDef, ChatModelResponseFormatConfigSchema, ChatModelResponseSchemaConfigDef, ChatModelResponseSchemaConfigSchema, EmbeddingModelBaseConfigDef, EmbeddingModelBaseConfigSchema, EmbeddingModelDimensionsConfigDef, EmbeddingModelDimensionsConfigSchema, 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_0125_Preview, GPT_4_0125_PreviewLiteral, GPT_4_0125_PreviewOptions, type GPT_4_0125_PreviewOptionsType, GPT_4_0125_PreviewSchema, 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, GPT_4_TurboLiteral, GPT_4_TurboOptions, type GPT_4_TurboOptionsType, GPT_4_TurboSchema, 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_4_Turbo_Preview, GPT_4_Turbo_PreviewLiteral, GPT_4_Turbo_PreviewOptions, type GPT_4_Turbo_PreviewOptionsType, GPT_4_Turbo_PreviewSchema, 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, O1_Mini, O1_MiniLiteral, O1_MiniOptions, type O1_MiniOptionsType, O1_MiniSchema, O1_Preview, O1_PreviewLiteral, O1_PreviewOptions, type O1_PreviewOptionsType, O1_PreviewSchema, OpenAI, OpenAIChatModelConfigs, OpenAIChatModelModalities, OpenAIChatModelModalitiesEnum, OpenAIChatModelOSSeriesRoles, OpenAIChatModelOSSeriesRolesMap, OpenAIChatModelRoles, OpenAIChatModelRolesMap, OpenAIChatModelTextModalities, OpenAIChatModelTextModalitiesEnum, OpenAIChatModelTextToolModalities, OpenAIChatModelTextToolModalitiesEnum, OpenAIChatOSeriesRequest, type OpenAIChatOSeriesRequestType, OpenAIChatRequest, OpenAIChatRequestAssistantMessage, type OpenAIChatRequestAssistantMessageType, OpenAIChatRequestImageContent, type OpenAIChatRequestImageContentType, OpenAIChatRequestMessage, type OpenAIChatRequestMessageType, OpenAIChatRequestResponseFormat, type OpenAIChatRequestResponseFormatType, OpenAIChatRequestSystemMessage, type OpenAIChatRequestSystemMessageType, OpenAIChatRequestTextContent, type OpenAIChatRequestTextContentType, OpenAIChatRequestTool, OpenAIChatRequestToolCallContent, type OpenAIChatRequestToolCallContentType, OpenAIChatRequestToolChoiceEnum, type OpenAIChatRequestToolChoiceEnumType, OpenAIChatRequestToolChoiceFunction, type OpenAIChatRequestToolChoiceFunctionType, OpenAIChatRequestToolMessage, type OpenAIChatRequestToolMessageType, type OpenAIChatRequestToolType, type OpenAIChatRequestType, OpenAIChatRequestUserMessage, type OpenAIChatRequestUserMessageType, OpenAICompleteChatResponse, type OpenAICompleteChatResponseType, OpenAIEmbeddingModelConfigs, OpenAIEmbeddingModelModalities, OpenAIEmbeddingModelModalitiesEnum, OpenAIEmbeddingRequest, OpenAIEmbeddingRequestInput, type OpenAIEmbeddingRequestInputType, type OpenAIEmbeddingRequestType, OpenAIGetEmbeddingsResponse, OpenAIStreamChatResponse, type OpenAIStreamChatResponseType, OpenAIToolCallsCompleteChatResponse, OpenAIToolCallsStreamChatResponse, ProviderLiteral, Text_Embedding_3_Large, Text_Embedding_3_LargeLiteral, Text_Embedding_3_LargeSchema, Text_Embedding_3_Large_Options, type Text_Embedding_3_Large_OptionsType, Text_Embedding_3_Small, Text_Embedding_3_SmallLiteral, Text_Embedding_3_SmallSchema, Text_Embedding_3_Small_Options, type Text_Embedding_3_Small_OptionsType, Text_Embedding_Ada002, Text_Embedding_Ada002Literal, Text_Embedding_Ada002Schema, Text_Embedding_Ada002_Options, type Text_Embedding_Ada002_OptionsType, dimensions, encodingFormat, frequencyPenalty, logProbs, maxTokens, presencePenalty, seed, stop, temperature, toolChoice, topLogProbs, topP };
|
|
5532
|
+
export { BaseChatModel, BaseChatModelOptions, type BaseChatModelOptionsType, BaseEmbeddingModel, BaseEmbeddingModelOptions, type BaseEmbeddingModelOptionsType, BaseOSeriesChatModel, ChatModelBaseConfigDef, ChatModelBaseConfigSchema, ChatModelOSeriesConfigDef, ChatModelOSeriesConfigSchema, ChatModelResponseFormatConfigDef, ChatModelResponseFormatConfigSchema, ChatModelResponseSchemaConfigDef, ChatModelResponseSchemaConfigSchema, EmbeddingModelBaseConfigDef, EmbeddingModelBaseConfigSchema, EmbeddingModelDimensionsConfigDef, EmbeddingModelDimensionsConfigSchema, 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_0125_Preview, GPT_4_0125_PreviewLiteral, GPT_4_0125_PreviewOptions, type GPT_4_0125_PreviewOptionsType, GPT_4_0125_PreviewSchema, 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, GPT_4_TurboLiteral, GPT_4_TurboOptions, type GPT_4_TurboOptionsType, GPT_4_TurboSchema, 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_4_Turbo_Preview, GPT_4_Turbo_PreviewLiteral, GPT_4_Turbo_PreviewOptions, type GPT_4_Turbo_PreviewOptionsType, GPT_4_Turbo_PreviewSchema, 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, O1, O1Literal, O1Options, type O1OptionsType, O1Schema, O1_2024_12_17, O1_2024_12_17Literal, O1_2024_12_17Options, type O1_2024_12_17OptionsType, O1_2024_12_17Schema, O1_Mini, O1_MiniLiteral, O1_MiniOptions, type O1_MiniOptionsType, O1_MiniSchema, O1_Mini_2024_09_12, O1_Mini_2024_09_12Literal, O1_Mini_2024_09_12Options, type O1_Mini_2024_09_12OptionsType, O1_Mini_2024_09_12Schema, O1_Preview, O1_PreviewLiteral, O1_PreviewOptions, type O1_PreviewOptionsType, O1_PreviewSchema, OpenAI, OpenAIChatModelConfigs, OpenAIChatModelModalities, OpenAIChatModelModalitiesEnum, OpenAIChatModelOSSeriesRoles, OpenAIChatModelOSSeriesRolesMap, OpenAIChatModelRoles, OpenAIChatModelRolesMap, OpenAIChatModelTextModalities, OpenAIChatModelTextModalitiesEnum, OpenAIChatModelTextToolModalities, OpenAIChatModelTextToolModalitiesEnum, OpenAIChatOSeriesRequest, type OpenAIChatOSeriesRequestType, OpenAIChatRequest, OpenAIChatRequestAssistantMessage, type OpenAIChatRequestAssistantMessageType, OpenAIChatRequestImageContent, type OpenAIChatRequestImageContentType, OpenAIChatRequestMessage, type OpenAIChatRequestMessageType, OpenAIChatRequestResponseFormat, type OpenAIChatRequestResponseFormatType, OpenAIChatRequestSystemMessage, type OpenAIChatRequestSystemMessageType, OpenAIChatRequestTextContent, type OpenAIChatRequestTextContentType, OpenAIChatRequestTool, OpenAIChatRequestToolCallContent, type OpenAIChatRequestToolCallContentType, OpenAIChatRequestToolChoiceEnum, type OpenAIChatRequestToolChoiceEnumType, OpenAIChatRequestToolChoiceFunction, type OpenAIChatRequestToolChoiceFunctionType, OpenAIChatRequestToolMessage, type OpenAIChatRequestToolMessageType, type OpenAIChatRequestToolType, type OpenAIChatRequestType, OpenAIChatRequestUserMessage, type OpenAIChatRequestUserMessageType, OpenAICompleteChatResponse, type OpenAICompleteChatResponseType, OpenAIEmbeddingModelConfigs, OpenAIEmbeddingModelModalities, OpenAIEmbeddingModelModalitiesEnum, OpenAIEmbeddingRequest, OpenAIEmbeddingRequestInput, type OpenAIEmbeddingRequestInputType, type OpenAIEmbeddingRequestType, OpenAIGetEmbeddingsResponse, OpenAIStreamChatResponse, type OpenAIStreamChatResponseType, OpenAIToolCallsCompleteChatResponse, OpenAIToolCallsStreamChatResponse, ProviderLiteral, Text_Embedding_3_Large, Text_Embedding_3_LargeLiteral, Text_Embedding_3_LargeSchema, Text_Embedding_3_Large_Options, type Text_Embedding_3_Large_OptionsType, Text_Embedding_3_Small, Text_Embedding_3_SmallLiteral, Text_Embedding_3_SmallSchema, Text_Embedding_3_Small_Options, type Text_Embedding_3_Small_OptionsType, Text_Embedding_Ada002, Text_Embedding_Ada002Literal, Text_Embedding_Ada002Schema, Text_Embedding_Ada002_Options, type Text_Embedding_Ada002_OptionsType, dimensions, encodingFormat, frequencyPenalty, logProbs, maxTokens, presencePenalty, seed, stop, temperature, toolChoice, topLogProbs, topP };
|
package/dist/index.d.ts
CHANGED
|
@@ -4452,6 +4452,80 @@ declare class GPT_4 extends BaseChatModel {
|
|
|
4452
4452
|
constructor(options: GPT_4OptionsType);
|
|
4453
4453
|
}
|
|
4454
4454
|
|
|
4455
|
+
declare const GPT_4o_2024_05_13Literal = "gpt-4o-2024-05-13";
|
|
4456
|
+
declare const GPT_4o_2024_05_13Schema: {
|
|
4457
|
+
description: string;
|
|
4458
|
+
name: string;
|
|
4459
|
+
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
4460
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
4461
|
+
maxInputTokens: number;
|
|
4462
|
+
maxOutputTokens: number;
|
|
4463
|
+
config: {
|
|
4464
|
+
def: Record<string, {
|
|
4465
|
+
type: "multi-string";
|
|
4466
|
+
param: string;
|
|
4467
|
+
title: string;
|
|
4468
|
+
description: string;
|
|
4469
|
+
max: number;
|
|
4470
|
+
} | {
|
|
4471
|
+
type: "object-schema";
|
|
4472
|
+
param: string;
|
|
4473
|
+
title: string;
|
|
4474
|
+
description: string;
|
|
4475
|
+
objectSchema?: any;
|
|
4476
|
+
} | {
|
|
4477
|
+
type: "range";
|
|
4478
|
+
param: string;
|
|
4479
|
+
title: string;
|
|
4480
|
+
description: string;
|
|
4481
|
+
max: number;
|
|
4482
|
+
default: number;
|
|
4483
|
+
min: number;
|
|
4484
|
+
step: number;
|
|
4485
|
+
} | {
|
|
4486
|
+
type: "select-boolean";
|
|
4487
|
+
param: string;
|
|
4488
|
+
title: string;
|
|
4489
|
+
description: string;
|
|
4490
|
+
default: boolean | null;
|
|
4491
|
+
} | {
|
|
4492
|
+
type: "select-string";
|
|
4493
|
+
param: string;
|
|
4494
|
+
title: string;
|
|
4495
|
+
description: string;
|
|
4496
|
+
default: string | null;
|
|
4497
|
+
choices: string[];
|
|
4498
|
+
}>;
|
|
4499
|
+
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
4500
|
+
};
|
|
4501
|
+
};
|
|
4502
|
+
declare const GPT_4o_2024_05_13Options: z.ZodObject<{
|
|
4503
|
+
modelName: z.ZodString;
|
|
4504
|
+
apiKey: z.ZodString;
|
|
4505
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
4506
|
+
completeChatUrl: z.ZodOptional<z.ZodString>;
|
|
4507
|
+
streamChatUrl: z.ZodOptional<z.ZodString>;
|
|
4508
|
+
organization: z.ZodOptional<z.ZodString>;
|
|
4509
|
+
}, "strip", z.ZodTypeAny, {
|
|
4510
|
+
modelName: string;
|
|
4511
|
+
apiKey: string;
|
|
4512
|
+
baseUrl?: string | undefined;
|
|
4513
|
+
completeChatUrl?: string | undefined;
|
|
4514
|
+
streamChatUrl?: string | undefined;
|
|
4515
|
+
organization?: string | undefined;
|
|
4516
|
+
}, {
|
|
4517
|
+
modelName: string;
|
|
4518
|
+
apiKey: string;
|
|
4519
|
+
baseUrl?: string | undefined;
|
|
4520
|
+
completeChatUrl?: string | undefined;
|
|
4521
|
+
streamChatUrl?: string | undefined;
|
|
4522
|
+
organization?: string | undefined;
|
|
4523
|
+
}>;
|
|
4524
|
+
type GPT_4o_2024_05_13OptionsType = z.infer<typeof GPT_4o_2024_05_13Options>;
|
|
4525
|
+
declare class GPT_4o_2024_05_13 extends BaseChatModel {
|
|
4526
|
+
constructor(options: GPT_4o_2024_05_13OptionsType);
|
|
4527
|
+
}
|
|
4528
|
+
|
|
4455
4529
|
declare const GPT_4o_2024_08_06Literal = "gpt-4o-2024-08-06";
|
|
4456
4530
|
declare const GPT_4o_2024_08_06Schema: {
|
|
4457
4531
|
description: string;
|
|
@@ -4526,6 +4600,80 @@ declare class GPT_4o_2024_08_06 extends BaseChatModel {
|
|
|
4526
4600
|
constructor(options: GPT_4o_2024_08_06OptionsType);
|
|
4527
4601
|
}
|
|
4528
4602
|
|
|
4603
|
+
declare const GPT_4o_Mini_2024_07_18Literal = "gpt-4o-mini-2024-07-18";
|
|
4604
|
+
declare const GPT_4o_Mini_2024_07_18Schema: {
|
|
4605
|
+
description: string;
|
|
4606
|
+
name: string;
|
|
4607
|
+
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
4608
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
4609
|
+
maxInputTokens: number;
|
|
4610
|
+
maxOutputTokens: number;
|
|
4611
|
+
config: {
|
|
4612
|
+
def: Record<string, {
|
|
4613
|
+
type: "multi-string";
|
|
4614
|
+
param: string;
|
|
4615
|
+
title: string;
|
|
4616
|
+
description: string;
|
|
4617
|
+
max: number;
|
|
4618
|
+
} | {
|
|
4619
|
+
type: "object-schema";
|
|
4620
|
+
param: string;
|
|
4621
|
+
title: string;
|
|
4622
|
+
description: string;
|
|
4623
|
+
objectSchema?: any;
|
|
4624
|
+
} | {
|
|
4625
|
+
type: "range";
|
|
4626
|
+
param: string;
|
|
4627
|
+
title: string;
|
|
4628
|
+
description: string;
|
|
4629
|
+
max: number;
|
|
4630
|
+
default: number;
|
|
4631
|
+
min: number;
|
|
4632
|
+
step: number;
|
|
4633
|
+
} | {
|
|
4634
|
+
type: "select-boolean";
|
|
4635
|
+
param: string;
|
|
4636
|
+
title: string;
|
|
4637
|
+
description: string;
|
|
4638
|
+
default: boolean | null;
|
|
4639
|
+
} | {
|
|
4640
|
+
type: "select-string";
|
|
4641
|
+
param: string;
|
|
4642
|
+
title: string;
|
|
4643
|
+
description: string;
|
|
4644
|
+
default: string | null;
|
|
4645
|
+
choices: string[];
|
|
4646
|
+
}>;
|
|
4647
|
+
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
4648
|
+
};
|
|
4649
|
+
};
|
|
4650
|
+
declare const GPT_4o_Mini_2024_07_18Options: z.ZodObject<{
|
|
4651
|
+
modelName: z.ZodString;
|
|
4652
|
+
apiKey: z.ZodString;
|
|
4653
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
4654
|
+
completeChatUrl: z.ZodOptional<z.ZodString>;
|
|
4655
|
+
streamChatUrl: z.ZodOptional<z.ZodString>;
|
|
4656
|
+
organization: z.ZodOptional<z.ZodString>;
|
|
4657
|
+
}, "strip", z.ZodTypeAny, {
|
|
4658
|
+
modelName: string;
|
|
4659
|
+
apiKey: string;
|
|
4660
|
+
baseUrl?: string | undefined;
|
|
4661
|
+
completeChatUrl?: string | undefined;
|
|
4662
|
+
streamChatUrl?: string | undefined;
|
|
4663
|
+
organization?: string | undefined;
|
|
4664
|
+
}, {
|
|
4665
|
+
modelName: string;
|
|
4666
|
+
apiKey: string;
|
|
4667
|
+
baseUrl?: string | undefined;
|
|
4668
|
+
completeChatUrl?: string | undefined;
|
|
4669
|
+
streamChatUrl?: string | undefined;
|
|
4670
|
+
organization?: string | undefined;
|
|
4671
|
+
}>;
|
|
4672
|
+
type GPT_4o_Mini_2024_07_18OptionsType = z.infer<typeof GPT_4o_Mini_2024_07_18Options>;
|
|
4673
|
+
declare class GPT_4o_Mini_2024_07_18 extends BaseChatModel {
|
|
4674
|
+
constructor(options: GPT_4o_Mini_2024_07_18OptionsType);
|
|
4675
|
+
}
|
|
4676
|
+
|
|
4529
4677
|
declare const GPT_4o_MiniLiteral = "gpt-4o-mini";
|
|
4530
4678
|
declare const GPT_4o_MiniSchema: {
|
|
4531
4679
|
description: string;
|
|
@@ -4674,8 +4822,8 @@ declare class GPT_4o extends BaseChatModel {
|
|
|
4674
4822
|
constructor(options: GPT_4oOptionsType);
|
|
4675
4823
|
}
|
|
4676
4824
|
|
|
4677
|
-
declare const
|
|
4678
|
-
declare const
|
|
4825
|
+
declare const O1_2024_12_17Literal = "o1-2024-12-17";
|
|
4826
|
+
declare const O1_2024_12_17Schema: {
|
|
4679
4827
|
description: string;
|
|
4680
4828
|
name: string;
|
|
4681
4829
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
@@ -4721,7 +4869,7 @@ declare const GPT_4o_Mini_2024_07_18Schema: {
|
|
|
4721
4869
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
4722
4870
|
};
|
|
4723
4871
|
};
|
|
4724
|
-
declare const
|
|
4872
|
+
declare const O1_2024_12_17Options: z.ZodObject<{
|
|
4725
4873
|
modelName: z.ZodString;
|
|
4726
4874
|
apiKey: z.ZodString;
|
|
4727
4875
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -4743,17 +4891,17 @@ declare const GPT_4o_Mini_2024_07_18Options: z.ZodObject<{
|
|
|
4743
4891
|
streamChatUrl?: string | undefined;
|
|
4744
4892
|
organization?: string | undefined;
|
|
4745
4893
|
}>;
|
|
4746
|
-
type
|
|
4747
|
-
declare class
|
|
4748
|
-
constructor(options:
|
|
4894
|
+
type O1_2024_12_17OptionsType = z.infer<typeof O1_2024_12_17Options>;
|
|
4895
|
+
declare class O1_2024_12_17 extends BaseChatModel {
|
|
4896
|
+
constructor(options: O1_2024_12_17OptionsType);
|
|
4749
4897
|
}
|
|
4750
4898
|
|
|
4751
|
-
declare const
|
|
4752
|
-
declare const
|
|
4899
|
+
declare const O1_Mini_2024_09_12Literal = "o1-mini-2024-09-12";
|
|
4900
|
+
declare const O1_Mini_2024_09_12Schema: {
|
|
4753
4901
|
description: string;
|
|
4754
4902
|
name: string;
|
|
4755
|
-
roles: Partial<Record<"
|
|
4756
|
-
modalities: ["text"
|
|
4903
|
+
roles: Partial<Record<"user" | "assistant", string | undefined>>;
|
|
4904
|
+
modalities: ["text", ..."text"[]];
|
|
4757
4905
|
maxInputTokens: number;
|
|
4758
4906
|
maxOutputTokens: number;
|
|
4759
4907
|
config: {
|
|
@@ -4795,7 +4943,7 @@ declare const GPT_4o_2024_05_13Schema: {
|
|
|
4795
4943
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
4796
4944
|
};
|
|
4797
4945
|
};
|
|
4798
|
-
declare const
|
|
4946
|
+
declare const O1_Mini_2024_09_12Options: z.ZodObject<{
|
|
4799
4947
|
modelName: z.ZodString;
|
|
4800
4948
|
apiKey: z.ZodString;
|
|
4801
4949
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -4817,9 +4965,9 @@ declare const GPT_4o_2024_05_13Options: z.ZodObject<{
|
|
|
4817
4965
|
streamChatUrl?: string | undefined;
|
|
4818
4966
|
organization?: string | undefined;
|
|
4819
4967
|
}>;
|
|
4820
|
-
type
|
|
4821
|
-
declare class
|
|
4822
|
-
constructor(options:
|
|
4968
|
+
type O1_Mini_2024_09_12OptionsType = z.infer<typeof O1_Mini_2024_09_12Options>;
|
|
4969
|
+
declare class O1_Mini_2024_09_12 extends BaseOSeriesChatModel {
|
|
4970
|
+
constructor(options: O1_Mini_2024_09_12OptionsType);
|
|
4823
4971
|
}
|
|
4824
4972
|
|
|
4825
4973
|
declare const O1_MiniLiteral = "o1-mini";
|
|
@@ -4970,6 +5118,80 @@ declare class O1_Preview extends BaseOSeriesChatModel {
|
|
|
4970
5118
|
constructor(options: O1_PreviewOptionsType);
|
|
4971
5119
|
}
|
|
4972
5120
|
|
|
5121
|
+
declare const O1Literal = "o1";
|
|
5122
|
+
declare const O1Schema: {
|
|
5123
|
+
description: string;
|
|
5124
|
+
name: string;
|
|
5125
|
+
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
5126
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
5127
|
+
maxInputTokens: number;
|
|
5128
|
+
maxOutputTokens: number;
|
|
5129
|
+
config: {
|
|
5130
|
+
def: Record<string, {
|
|
5131
|
+
type: "multi-string";
|
|
5132
|
+
param: string;
|
|
5133
|
+
title: string;
|
|
5134
|
+
description: string;
|
|
5135
|
+
max: number;
|
|
5136
|
+
} | {
|
|
5137
|
+
type: "object-schema";
|
|
5138
|
+
param: string;
|
|
5139
|
+
title: string;
|
|
5140
|
+
description: string;
|
|
5141
|
+
objectSchema?: any;
|
|
5142
|
+
} | {
|
|
5143
|
+
type: "range";
|
|
5144
|
+
param: string;
|
|
5145
|
+
title: string;
|
|
5146
|
+
description: string;
|
|
5147
|
+
max: number;
|
|
5148
|
+
default: number;
|
|
5149
|
+
min: number;
|
|
5150
|
+
step: number;
|
|
5151
|
+
} | {
|
|
5152
|
+
type: "select-boolean";
|
|
5153
|
+
param: string;
|
|
5154
|
+
title: string;
|
|
5155
|
+
description: string;
|
|
5156
|
+
default: boolean | null;
|
|
5157
|
+
} | {
|
|
5158
|
+
type: "select-string";
|
|
5159
|
+
param: string;
|
|
5160
|
+
title: string;
|
|
5161
|
+
description: string;
|
|
5162
|
+
default: string | null;
|
|
5163
|
+
choices: string[];
|
|
5164
|
+
}>;
|
|
5165
|
+
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
5166
|
+
};
|
|
5167
|
+
};
|
|
5168
|
+
declare const O1Options: z.ZodObject<{
|
|
5169
|
+
modelName: z.ZodString;
|
|
5170
|
+
apiKey: z.ZodString;
|
|
5171
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
5172
|
+
completeChatUrl: z.ZodOptional<z.ZodString>;
|
|
5173
|
+
streamChatUrl: z.ZodOptional<z.ZodString>;
|
|
5174
|
+
organization: z.ZodOptional<z.ZodString>;
|
|
5175
|
+
}, "strip", z.ZodTypeAny, {
|
|
5176
|
+
modelName: string;
|
|
5177
|
+
apiKey: string;
|
|
5178
|
+
baseUrl?: string | undefined;
|
|
5179
|
+
completeChatUrl?: string | undefined;
|
|
5180
|
+
streamChatUrl?: string | undefined;
|
|
5181
|
+
organization?: string | undefined;
|
|
5182
|
+
}, {
|
|
5183
|
+
modelName: string;
|
|
5184
|
+
apiKey: string;
|
|
5185
|
+
baseUrl?: string | undefined;
|
|
5186
|
+
completeChatUrl?: string | undefined;
|
|
5187
|
+
streamChatUrl?: string | undefined;
|
|
5188
|
+
organization?: string | undefined;
|
|
5189
|
+
}>;
|
|
5190
|
+
type O1OptionsType = z.infer<typeof O1Options>;
|
|
5191
|
+
declare class O1 extends BaseOSeriesChatModel {
|
|
5192
|
+
constructor(options: O1OptionsType);
|
|
5193
|
+
}
|
|
5194
|
+
|
|
4973
5195
|
declare const OpenAIEmbeddingModelModalities: EmbeddingModelSchemaType["modalities"];
|
|
4974
5196
|
declare const OpenAIEmbeddingModelModalitiesEnum: z.ZodEnum<["text", "token"]>;
|
|
4975
5197
|
|
|
@@ -5307,4 +5529,4 @@ declare class OpenAI<C extends BaseChatModelOptionsType, E extends BaseEmbedding
|
|
|
5307
5529
|
embeddingModel(options: E): EmbeddingModelV1;
|
|
5308
5530
|
}
|
|
5309
5531
|
|
|
5310
|
-
export { BaseChatModel, BaseChatModelOptions, type BaseChatModelOptionsType, BaseEmbeddingModel, BaseEmbeddingModelOptions, type BaseEmbeddingModelOptionsType, BaseOSeriesChatModel, ChatModelBaseConfigDef, ChatModelBaseConfigSchema, ChatModelOSeriesConfigDef, ChatModelOSeriesConfigSchema, ChatModelResponseFormatConfigDef, ChatModelResponseFormatConfigSchema, ChatModelResponseSchemaConfigDef, ChatModelResponseSchemaConfigSchema, EmbeddingModelBaseConfigDef, EmbeddingModelBaseConfigSchema, EmbeddingModelDimensionsConfigDef, EmbeddingModelDimensionsConfigSchema, 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_0125_Preview, GPT_4_0125_PreviewLiteral, GPT_4_0125_PreviewOptions, type GPT_4_0125_PreviewOptionsType, GPT_4_0125_PreviewSchema, 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, GPT_4_TurboLiteral, GPT_4_TurboOptions, type GPT_4_TurboOptionsType, GPT_4_TurboSchema, 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_4_Turbo_Preview, GPT_4_Turbo_PreviewLiteral, GPT_4_Turbo_PreviewOptions, type GPT_4_Turbo_PreviewOptionsType, GPT_4_Turbo_PreviewSchema, 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, O1_Mini, O1_MiniLiteral, O1_MiniOptions, type O1_MiniOptionsType, O1_MiniSchema, O1_Preview, O1_PreviewLiteral, O1_PreviewOptions, type O1_PreviewOptionsType, O1_PreviewSchema, OpenAI, OpenAIChatModelConfigs, OpenAIChatModelModalities, OpenAIChatModelModalitiesEnum, OpenAIChatModelOSSeriesRoles, OpenAIChatModelOSSeriesRolesMap, OpenAIChatModelRoles, OpenAIChatModelRolesMap, OpenAIChatModelTextModalities, OpenAIChatModelTextModalitiesEnum, OpenAIChatModelTextToolModalities, OpenAIChatModelTextToolModalitiesEnum, OpenAIChatOSeriesRequest, type OpenAIChatOSeriesRequestType, OpenAIChatRequest, OpenAIChatRequestAssistantMessage, type OpenAIChatRequestAssistantMessageType, OpenAIChatRequestImageContent, type OpenAIChatRequestImageContentType, OpenAIChatRequestMessage, type OpenAIChatRequestMessageType, OpenAIChatRequestResponseFormat, type OpenAIChatRequestResponseFormatType, OpenAIChatRequestSystemMessage, type OpenAIChatRequestSystemMessageType, OpenAIChatRequestTextContent, type OpenAIChatRequestTextContentType, OpenAIChatRequestTool, OpenAIChatRequestToolCallContent, type OpenAIChatRequestToolCallContentType, OpenAIChatRequestToolChoiceEnum, type OpenAIChatRequestToolChoiceEnumType, OpenAIChatRequestToolChoiceFunction, type OpenAIChatRequestToolChoiceFunctionType, OpenAIChatRequestToolMessage, type OpenAIChatRequestToolMessageType, type OpenAIChatRequestToolType, type OpenAIChatRequestType, OpenAIChatRequestUserMessage, type OpenAIChatRequestUserMessageType, OpenAICompleteChatResponse, type OpenAICompleteChatResponseType, OpenAIEmbeddingModelConfigs, OpenAIEmbeddingModelModalities, OpenAIEmbeddingModelModalitiesEnum, OpenAIEmbeddingRequest, OpenAIEmbeddingRequestInput, type OpenAIEmbeddingRequestInputType, type OpenAIEmbeddingRequestType, OpenAIGetEmbeddingsResponse, OpenAIStreamChatResponse, type OpenAIStreamChatResponseType, OpenAIToolCallsCompleteChatResponse, OpenAIToolCallsStreamChatResponse, ProviderLiteral, Text_Embedding_3_Large, Text_Embedding_3_LargeLiteral, Text_Embedding_3_LargeSchema, Text_Embedding_3_Large_Options, type Text_Embedding_3_Large_OptionsType, Text_Embedding_3_Small, Text_Embedding_3_SmallLiteral, Text_Embedding_3_SmallSchema, Text_Embedding_3_Small_Options, type Text_Embedding_3_Small_OptionsType, Text_Embedding_Ada002, Text_Embedding_Ada002Literal, Text_Embedding_Ada002Schema, Text_Embedding_Ada002_Options, type Text_Embedding_Ada002_OptionsType, dimensions, encodingFormat, frequencyPenalty, logProbs, maxTokens, presencePenalty, seed, stop, temperature, toolChoice, topLogProbs, topP };
|
|
5532
|
+
export { BaseChatModel, BaseChatModelOptions, type BaseChatModelOptionsType, BaseEmbeddingModel, BaseEmbeddingModelOptions, type BaseEmbeddingModelOptionsType, BaseOSeriesChatModel, ChatModelBaseConfigDef, ChatModelBaseConfigSchema, ChatModelOSeriesConfigDef, ChatModelOSeriesConfigSchema, ChatModelResponseFormatConfigDef, ChatModelResponseFormatConfigSchema, ChatModelResponseSchemaConfigDef, ChatModelResponseSchemaConfigSchema, EmbeddingModelBaseConfigDef, EmbeddingModelBaseConfigSchema, EmbeddingModelDimensionsConfigDef, EmbeddingModelDimensionsConfigSchema, 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_0125_Preview, GPT_4_0125_PreviewLiteral, GPT_4_0125_PreviewOptions, type GPT_4_0125_PreviewOptionsType, GPT_4_0125_PreviewSchema, 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, GPT_4_TurboLiteral, GPT_4_TurboOptions, type GPT_4_TurboOptionsType, GPT_4_TurboSchema, 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_4_Turbo_Preview, GPT_4_Turbo_PreviewLiteral, GPT_4_Turbo_PreviewOptions, type GPT_4_Turbo_PreviewOptionsType, GPT_4_Turbo_PreviewSchema, 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, O1, O1Literal, O1Options, type O1OptionsType, O1Schema, O1_2024_12_17, O1_2024_12_17Literal, O1_2024_12_17Options, type O1_2024_12_17OptionsType, O1_2024_12_17Schema, O1_Mini, O1_MiniLiteral, O1_MiniOptions, type O1_MiniOptionsType, O1_MiniSchema, O1_Mini_2024_09_12, O1_Mini_2024_09_12Literal, O1_Mini_2024_09_12Options, type O1_Mini_2024_09_12OptionsType, O1_Mini_2024_09_12Schema, O1_Preview, O1_PreviewLiteral, O1_PreviewOptions, type O1_PreviewOptionsType, O1_PreviewSchema, OpenAI, OpenAIChatModelConfigs, OpenAIChatModelModalities, OpenAIChatModelModalitiesEnum, OpenAIChatModelOSSeriesRoles, OpenAIChatModelOSSeriesRolesMap, OpenAIChatModelRoles, OpenAIChatModelRolesMap, OpenAIChatModelTextModalities, OpenAIChatModelTextModalitiesEnum, OpenAIChatModelTextToolModalities, OpenAIChatModelTextToolModalitiesEnum, OpenAIChatOSeriesRequest, type OpenAIChatOSeriesRequestType, OpenAIChatRequest, OpenAIChatRequestAssistantMessage, type OpenAIChatRequestAssistantMessageType, OpenAIChatRequestImageContent, type OpenAIChatRequestImageContentType, OpenAIChatRequestMessage, type OpenAIChatRequestMessageType, OpenAIChatRequestResponseFormat, type OpenAIChatRequestResponseFormatType, OpenAIChatRequestSystemMessage, type OpenAIChatRequestSystemMessageType, OpenAIChatRequestTextContent, type OpenAIChatRequestTextContentType, OpenAIChatRequestTool, OpenAIChatRequestToolCallContent, type OpenAIChatRequestToolCallContentType, OpenAIChatRequestToolChoiceEnum, type OpenAIChatRequestToolChoiceEnumType, OpenAIChatRequestToolChoiceFunction, type OpenAIChatRequestToolChoiceFunctionType, OpenAIChatRequestToolMessage, type OpenAIChatRequestToolMessageType, type OpenAIChatRequestToolType, type OpenAIChatRequestType, OpenAIChatRequestUserMessage, type OpenAIChatRequestUserMessageType, OpenAICompleteChatResponse, type OpenAICompleteChatResponseType, OpenAIEmbeddingModelConfigs, OpenAIEmbeddingModelModalities, OpenAIEmbeddingModelModalitiesEnum, OpenAIEmbeddingRequest, OpenAIEmbeddingRequestInput, type OpenAIEmbeddingRequestInputType, type OpenAIEmbeddingRequestType, OpenAIGetEmbeddingsResponse, OpenAIStreamChatResponse, type OpenAIStreamChatResponseType, OpenAIToolCallsCompleteChatResponse, OpenAIToolCallsStreamChatResponse, ProviderLiteral, Text_Embedding_3_Large, Text_Embedding_3_LargeLiteral, Text_Embedding_3_LargeSchema, Text_Embedding_3_Large_Options, type Text_Embedding_3_Large_OptionsType, Text_Embedding_3_Small, Text_Embedding_3_SmallLiteral, Text_Embedding_3_SmallSchema, Text_Embedding_3_Small_Options, type Text_Embedding_3_Small_OptionsType, Text_Embedding_Ada002, Text_Embedding_Ada002Literal, Text_Embedding_Ada002Schema, Text_Embedding_Ada002_Options, type Text_Embedding_Ada002_OptionsType, dimensions, encodingFormat, frequencyPenalty, logProbs, maxTokens, presencePenalty, seed, stop, temperature, toolChoice, topLogProbs, topP };
|