@adaline/openai 1.18.0 → 1.18.1
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 +915 -123
- package/dist/index.d.ts +915 -123
- package/dist/index.js +232 -214
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -609,6 +609,179 @@ declare const OpenAIChatModelConfigs: {
|
|
|
609
609
|
reasoningEffort?: string | null | undefined;
|
|
610
610
|
}>;
|
|
611
611
|
};
|
|
612
|
+
readonly o1Series: (maxOutputTokens: number, maxSequences: number) => {
|
|
613
|
+
def: {
|
|
614
|
+
temperature: {
|
|
615
|
+
type: "range";
|
|
616
|
+
param: string;
|
|
617
|
+
title: string;
|
|
618
|
+
description: string;
|
|
619
|
+
max: number;
|
|
620
|
+
default: number;
|
|
621
|
+
min: number;
|
|
622
|
+
step: number;
|
|
623
|
+
};
|
|
624
|
+
reasoningEffort: {
|
|
625
|
+
type: "select-string";
|
|
626
|
+
param: string;
|
|
627
|
+
title: string;
|
|
628
|
+
description: string;
|
|
629
|
+
default: string;
|
|
630
|
+
choices: string[];
|
|
631
|
+
};
|
|
632
|
+
responseFormat: {
|
|
633
|
+
type: "select-string";
|
|
634
|
+
param: string;
|
|
635
|
+
title: string;
|
|
636
|
+
description: string;
|
|
637
|
+
default: string;
|
|
638
|
+
choices: string[];
|
|
639
|
+
};
|
|
640
|
+
responseSchema: {
|
|
641
|
+
type: "object-schema";
|
|
642
|
+
param: string;
|
|
643
|
+
title: string;
|
|
644
|
+
description: string;
|
|
645
|
+
objectSchema?: any;
|
|
646
|
+
};
|
|
647
|
+
maxTokens: {
|
|
648
|
+
type: "range";
|
|
649
|
+
param: string;
|
|
650
|
+
title: string;
|
|
651
|
+
description: string;
|
|
652
|
+
max: number;
|
|
653
|
+
default: number;
|
|
654
|
+
min: number;
|
|
655
|
+
step: number;
|
|
656
|
+
};
|
|
657
|
+
stop: {
|
|
658
|
+
type: "multi-string";
|
|
659
|
+
param: string;
|
|
660
|
+
title: string;
|
|
661
|
+
description: string;
|
|
662
|
+
max: number;
|
|
663
|
+
};
|
|
664
|
+
topP: {
|
|
665
|
+
type: "range";
|
|
666
|
+
param: string;
|
|
667
|
+
title: string;
|
|
668
|
+
description: string;
|
|
669
|
+
max: number;
|
|
670
|
+
default: number;
|
|
671
|
+
min: number;
|
|
672
|
+
step: number;
|
|
673
|
+
};
|
|
674
|
+
frequencyPenalty: {
|
|
675
|
+
type: "range";
|
|
676
|
+
param: string;
|
|
677
|
+
title: string;
|
|
678
|
+
description: string;
|
|
679
|
+
max: number;
|
|
680
|
+
default: number;
|
|
681
|
+
min: number;
|
|
682
|
+
step: number;
|
|
683
|
+
};
|
|
684
|
+
presencePenalty: {
|
|
685
|
+
type: "range";
|
|
686
|
+
param: string;
|
|
687
|
+
title: string;
|
|
688
|
+
description: string;
|
|
689
|
+
max: number;
|
|
690
|
+
default: number;
|
|
691
|
+
min: number;
|
|
692
|
+
step: number;
|
|
693
|
+
};
|
|
694
|
+
seed: {
|
|
695
|
+
type: "range";
|
|
696
|
+
param: string;
|
|
697
|
+
title: string;
|
|
698
|
+
description: string;
|
|
699
|
+
max: number;
|
|
700
|
+
default: number;
|
|
701
|
+
min: number;
|
|
702
|
+
step: number;
|
|
703
|
+
};
|
|
704
|
+
logProbs: {
|
|
705
|
+
type: "select-boolean";
|
|
706
|
+
param: string;
|
|
707
|
+
title: string;
|
|
708
|
+
description: string;
|
|
709
|
+
default: boolean | null;
|
|
710
|
+
};
|
|
711
|
+
topLogProbs: {
|
|
712
|
+
type: "range";
|
|
713
|
+
param: string;
|
|
714
|
+
title: string;
|
|
715
|
+
description: string;
|
|
716
|
+
max: number;
|
|
717
|
+
default: number;
|
|
718
|
+
min: number;
|
|
719
|
+
step: number;
|
|
720
|
+
};
|
|
721
|
+
toolChoice: {
|
|
722
|
+
type: "select-string";
|
|
723
|
+
param: string;
|
|
724
|
+
title: string;
|
|
725
|
+
description: string;
|
|
726
|
+
default: string;
|
|
727
|
+
choices: string[];
|
|
728
|
+
};
|
|
729
|
+
};
|
|
730
|
+
schema: zod.ZodObject<zod.objectUtil.extendShape<zod.objectUtil.extendShape<{
|
|
731
|
+
temperature: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
|
|
732
|
+
maxTokens: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
|
|
733
|
+
stop: zod.ZodOptional<zod.ZodDefault<zod.ZodArray<zod.ZodString, "many">>>;
|
|
734
|
+
topP: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
|
|
735
|
+
frequencyPenalty: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
|
|
736
|
+
presencePenalty: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
|
|
737
|
+
seed: zod.ZodEffects<zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>, number | undefined, number | undefined>;
|
|
738
|
+
logProbs: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodBoolean>>>;
|
|
739
|
+
topLogProbs: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
|
|
740
|
+
toolChoice: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodEnum<[string, ...string[]]>>>>;
|
|
741
|
+
}, {
|
|
742
|
+
responseFormat: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodEnum<[string, ...string[]]>>>>;
|
|
743
|
+
responseSchema: zod.ZodOptional<zod.ZodObject<zod.ZodRawShape, zod.UnknownKeysParam, zod.ZodTypeAny, {
|
|
744
|
+
[x: string]: any;
|
|
745
|
+
}, {
|
|
746
|
+
[x: string]: any;
|
|
747
|
+
}>>;
|
|
748
|
+
}>, {
|
|
749
|
+
temperature: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
|
|
750
|
+
reasoningEffort: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodEnum<[string, ...string[]]>>>>;
|
|
751
|
+
}>, "strip", zod.ZodTypeAny, {
|
|
752
|
+
temperature?: number | undefined;
|
|
753
|
+
seed?: number | undefined;
|
|
754
|
+
stop?: string[] | undefined;
|
|
755
|
+
maxTokens?: number | undefined;
|
|
756
|
+
topP?: number | undefined;
|
|
757
|
+
frequencyPenalty?: number | undefined;
|
|
758
|
+
presencePenalty?: number | undefined;
|
|
759
|
+
logProbs?: boolean | null | undefined;
|
|
760
|
+
topLogProbs?: number | undefined;
|
|
761
|
+
toolChoice?: string | null | undefined;
|
|
762
|
+
responseFormat?: string | null | undefined;
|
|
763
|
+
responseSchema?: {
|
|
764
|
+
[x: string]: any;
|
|
765
|
+
} | undefined;
|
|
766
|
+
reasoningEffort?: string | null | undefined;
|
|
767
|
+
}, {
|
|
768
|
+
temperature?: number | undefined;
|
|
769
|
+
seed?: number | undefined;
|
|
770
|
+
stop?: string[] | undefined;
|
|
771
|
+
maxTokens?: number | undefined;
|
|
772
|
+
topP?: number | undefined;
|
|
773
|
+
frequencyPenalty?: number | undefined;
|
|
774
|
+
presencePenalty?: number | undefined;
|
|
775
|
+
logProbs?: boolean | null | undefined;
|
|
776
|
+
topLogProbs?: number | undefined;
|
|
777
|
+
toolChoice?: string | null | undefined;
|
|
778
|
+
responseFormat?: string | null | undefined;
|
|
779
|
+
responseSchema?: {
|
|
780
|
+
[x: string]: any;
|
|
781
|
+
} | undefined;
|
|
782
|
+
reasoningEffort?: string | null | undefined;
|
|
783
|
+
}>;
|
|
784
|
+
};
|
|
612
785
|
readonly gpt5: (maxOutputTokens: number, maxSequences: number) => {
|
|
613
786
|
def: {
|
|
614
787
|
reasoningEffort: {
|
|
@@ -1473,8 +1646,25 @@ declare const ChatModelOSeriesConfigSchema: (maxOutputTokens: number, maxSequenc
|
|
|
1473
1646
|
} | undefined;
|
|
1474
1647
|
reasoningEffort?: string | null | undefined;
|
|
1475
1648
|
}>;
|
|
1476
|
-
|
|
1477
|
-
|
|
1649
|
+
declare const ChatModelO1SeriesConfigDef: (maxOutputTokens: number, maxSequences: number) => {
|
|
1650
|
+
temperature: {
|
|
1651
|
+
type: "range";
|
|
1652
|
+
param: string;
|
|
1653
|
+
title: string;
|
|
1654
|
+
description: string;
|
|
1655
|
+
max: number;
|
|
1656
|
+
default: number;
|
|
1657
|
+
min: number;
|
|
1658
|
+
step: number;
|
|
1659
|
+
};
|
|
1660
|
+
reasoningEffort: {
|
|
1661
|
+
type: "select-string";
|
|
1662
|
+
param: string;
|
|
1663
|
+
title: string;
|
|
1664
|
+
description: string;
|
|
1665
|
+
default: string;
|
|
1666
|
+
choices: string[];
|
|
1667
|
+
};
|
|
1478
1668
|
responseFormat: {
|
|
1479
1669
|
type: "select-string";
|
|
1480
1670
|
param: string;
|
|
@@ -1483,15 +1673,12 @@ declare const ChatModelResponseFormatConfigDef: (maxOutputTokens: number, maxSeq
|
|
|
1483
1673
|
default: string;
|
|
1484
1674
|
choices: string[];
|
|
1485
1675
|
};
|
|
1486
|
-
|
|
1487
|
-
type: "
|
|
1676
|
+
responseSchema: {
|
|
1677
|
+
type: "object-schema";
|
|
1488
1678
|
param: string;
|
|
1489
1679
|
title: string;
|
|
1490
1680
|
description: string;
|
|
1491
|
-
|
|
1492
|
-
default: number;
|
|
1493
|
-
min: number;
|
|
1494
|
-
step: number;
|
|
1681
|
+
objectSchema?: any;
|
|
1495
1682
|
};
|
|
1496
1683
|
maxTokens: {
|
|
1497
1684
|
type: "range";
|
|
@@ -1576,7 +1763,7 @@ declare const ChatModelResponseFormatConfigDef: (maxOutputTokens: number, maxSeq
|
|
|
1576
1763
|
choices: string[];
|
|
1577
1764
|
};
|
|
1578
1765
|
};
|
|
1579
|
-
declare const
|
|
1766
|
+
declare const ChatModelO1SeriesConfigSchema: (maxOutputTokens: number, maxSequences: number) => zod.ZodObject<zod.objectUtil.extendShape<zod.objectUtil.extendShape<{
|
|
1580
1767
|
temperature: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
|
|
1581
1768
|
maxTokens: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
|
|
1582
1769
|
stop: zod.ZodOptional<zod.ZodDefault<zod.ZodArray<zod.ZodString, "many">>>;
|
|
@@ -1589,6 +1776,14 @@ declare const ChatModelResponseFormatConfigSchema: (maxOutputTokens: number, max
|
|
|
1589
1776
|
toolChoice: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodEnum<[string, ...string[]]>>>>;
|
|
1590
1777
|
}, {
|
|
1591
1778
|
responseFormat: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodEnum<[string, ...string[]]>>>>;
|
|
1779
|
+
responseSchema: zod.ZodOptional<zod.ZodObject<zod.ZodRawShape, zod.UnknownKeysParam, zod.ZodTypeAny, {
|
|
1780
|
+
[x: string]: any;
|
|
1781
|
+
}, {
|
|
1782
|
+
[x: string]: any;
|
|
1783
|
+
}>>;
|
|
1784
|
+
}>, {
|
|
1785
|
+
temperature: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
|
|
1786
|
+
reasoningEffort: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodEnum<[string, ...string[]]>>>>;
|
|
1592
1787
|
}>, "strip", zod.ZodTypeAny, {
|
|
1593
1788
|
temperature?: number | undefined;
|
|
1594
1789
|
seed?: number | undefined;
|
|
@@ -1601,6 +1796,10 @@ declare const ChatModelResponseFormatConfigSchema: (maxOutputTokens: number, max
|
|
|
1601
1796
|
topLogProbs?: number | undefined;
|
|
1602
1797
|
toolChoice?: string | null | undefined;
|
|
1603
1798
|
responseFormat?: string | null | undefined;
|
|
1799
|
+
responseSchema?: {
|
|
1800
|
+
[x: string]: any;
|
|
1801
|
+
} | undefined;
|
|
1802
|
+
reasoningEffort?: string | null | undefined;
|
|
1604
1803
|
}, {
|
|
1605
1804
|
temperature?: number | undefined;
|
|
1606
1805
|
seed?: number | undefined;
|
|
@@ -1613,9 +1812,13 @@ declare const ChatModelResponseFormatConfigSchema: (maxOutputTokens: number, max
|
|
|
1613
1812
|
topLogProbs?: number | undefined;
|
|
1614
1813
|
toolChoice?: string | null | undefined;
|
|
1615
1814
|
responseFormat?: string | null | undefined;
|
|
1815
|
+
responseSchema?: {
|
|
1816
|
+
[x: string]: any;
|
|
1817
|
+
} | undefined;
|
|
1818
|
+
reasoningEffort?: string | null | undefined;
|
|
1616
1819
|
}>;
|
|
1617
1820
|
|
|
1618
|
-
declare const
|
|
1821
|
+
declare const ChatModelResponseFormatConfigDef: (maxOutputTokens: number, maxSequences: number) => {
|
|
1619
1822
|
responseFormat: {
|
|
1620
1823
|
type: "select-string";
|
|
1621
1824
|
param: string;
|
|
@@ -1624,13 +1827,6 @@ declare const ChatModelResponseSchemaConfigDef: (maxOutputTokens: number, maxSeq
|
|
|
1624
1827
|
default: string;
|
|
1625
1828
|
choices: string[];
|
|
1626
1829
|
};
|
|
1627
|
-
responseSchema: {
|
|
1628
|
-
type: "object-schema";
|
|
1629
|
-
param: string;
|
|
1630
|
-
title: string;
|
|
1631
|
-
description: string;
|
|
1632
|
-
objectSchema?: any;
|
|
1633
|
-
};
|
|
1634
1830
|
temperature: {
|
|
1635
1831
|
type: "range";
|
|
1636
1832
|
param: string;
|
|
@@ -1724,7 +1920,7 @@ declare const ChatModelResponseSchemaConfigDef: (maxOutputTokens: number, maxSeq
|
|
|
1724
1920
|
choices: string[];
|
|
1725
1921
|
};
|
|
1726
1922
|
};
|
|
1727
|
-
declare const
|
|
1923
|
+
declare const ChatModelResponseFormatConfigSchema: (maxOutputTokens: number, maxSequences: number) => zod.ZodObject<zod.objectUtil.extendShape<{
|
|
1728
1924
|
temperature: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
|
|
1729
1925
|
maxTokens: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
|
|
1730
1926
|
stop: zod.ZodOptional<zod.ZodDefault<zod.ZodArray<zod.ZodString, "many">>>;
|
|
@@ -1737,11 +1933,6 @@ declare const ChatModelResponseSchemaConfigSchema: (maxOutputTokens: number, max
|
|
|
1737
1933
|
toolChoice: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodEnum<[string, ...string[]]>>>>;
|
|
1738
1934
|
}, {
|
|
1739
1935
|
responseFormat: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodEnum<[string, ...string[]]>>>>;
|
|
1740
|
-
responseSchema: zod.ZodOptional<zod.ZodObject<zod.ZodRawShape, zod.UnknownKeysParam, zod.ZodTypeAny, {
|
|
1741
|
-
[x: string]: any;
|
|
1742
|
-
}, {
|
|
1743
|
-
[x: string]: any;
|
|
1744
|
-
}>>;
|
|
1745
1936
|
}>, "strip", zod.ZodTypeAny, {
|
|
1746
1937
|
temperature?: number | undefined;
|
|
1747
1938
|
seed?: number | undefined;
|
|
@@ -1754,9 +1945,6 @@ declare const ChatModelResponseSchemaConfigSchema: (maxOutputTokens: number, max
|
|
|
1754
1945
|
topLogProbs?: number | undefined;
|
|
1755
1946
|
toolChoice?: string | null | undefined;
|
|
1756
1947
|
responseFormat?: string | null | undefined;
|
|
1757
|
-
responseSchema?: {
|
|
1758
|
-
[x: string]: any;
|
|
1759
|
-
} | undefined;
|
|
1760
1948
|
}, {
|
|
1761
1949
|
temperature?: number | undefined;
|
|
1762
1950
|
seed?: number | undefined;
|
|
@@ -1769,20 +1957,10 @@ declare const ChatModelResponseSchemaConfigSchema: (maxOutputTokens: number, max
|
|
|
1769
1957
|
topLogProbs?: number | undefined;
|
|
1770
1958
|
toolChoice?: string | null | undefined;
|
|
1771
1959
|
responseFormat?: string | null | undefined;
|
|
1772
|
-
responseSchema?: {
|
|
1773
|
-
[x: string]: any;
|
|
1774
|
-
} | undefined;
|
|
1775
1960
|
}>;
|
|
1776
1961
|
|
|
1777
|
-
declare const
|
|
1778
|
-
|
|
1779
|
-
}, "strip", z.ZodTypeAny, {
|
|
1780
|
-
encodingFormat?: string | null | undefined;
|
|
1781
|
-
}, {
|
|
1782
|
-
encodingFormat?: string | null | undefined;
|
|
1783
|
-
}>;
|
|
1784
|
-
declare const EmbeddingModelBaseConfigDef: () => {
|
|
1785
|
-
readonly encodingFormat: {
|
|
1962
|
+
declare const ChatModelResponseSchemaConfigDef: (maxOutputTokens: number, maxSequences: number) => {
|
|
1963
|
+
responseFormat: {
|
|
1786
1964
|
type: "select-string";
|
|
1787
1965
|
param: string;
|
|
1788
1966
|
title: string;
|
|
@@ -1790,11 +1968,177 @@ declare const EmbeddingModelBaseConfigDef: () => {
|
|
|
1790
1968
|
default: string;
|
|
1791
1969
|
choices: string[];
|
|
1792
1970
|
};
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1971
|
+
responseSchema: {
|
|
1972
|
+
type: "object-schema";
|
|
1973
|
+
param: string;
|
|
1974
|
+
title: string;
|
|
1975
|
+
description: string;
|
|
1976
|
+
objectSchema?: any;
|
|
1977
|
+
};
|
|
1978
|
+
temperature: {
|
|
1979
|
+
type: "range";
|
|
1980
|
+
param: string;
|
|
1981
|
+
title: string;
|
|
1982
|
+
description: string;
|
|
1983
|
+
max: number;
|
|
1984
|
+
default: number;
|
|
1985
|
+
min: number;
|
|
1986
|
+
step: number;
|
|
1987
|
+
};
|
|
1988
|
+
maxTokens: {
|
|
1989
|
+
type: "range";
|
|
1990
|
+
param: string;
|
|
1991
|
+
title: string;
|
|
1992
|
+
description: string;
|
|
1993
|
+
max: number;
|
|
1994
|
+
default: number;
|
|
1995
|
+
min: number;
|
|
1996
|
+
step: number;
|
|
1997
|
+
};
|
|
1998
|
+
stop: {
|
|
1999
|
+
type: "multi-string";
|
|
2000
|
+
param: string;
|
|
2001
|
+
title: string;
|
|
2002
|
+
description: string;
|
|
2003
|
+
max: number;
|
|
2004
|
+
};
|
|
2005
|
+
topP: {
|
|
2006
|
+
type: "range";
|
|
2007
|
+
param: string;
|
|
2008
|
+
title: string;
|
|
2009
|
+
description: string;
|
|
2010
|
+
max: number;
|
|
2011
|
+
default: number;
|
|
2012
|
+
min: number;
|
|
2013
|
+
step: number;
|
|
2014
|
+
};
|
|
2015
|
+
frequencyPenalty: {
|
|
2016
|
+
type: "range";
|
|
2017
|
+
param: string;
|
|
2018
|
+
title: string;
|
|
2019
|
+
description: string;
|
|
2020
|
+
max: number;
|
|
2021
|
+
default: number;
|
|
2022
|
+
min: number;
|
|
2023
|
+
step: number;
|
|
2024
|
+
};
|
|
2025
|
+
presencePenalty: {
|
|
2026
|
+
type: "range";
|
|
2027
|
+
param: string;
|
|
2028
|
+
title: string;
|
|
2029
|
+
description: string;
|
|
2030
|
+
max: number;
|
|
2031
|
+
default: number;
|
|
2032
|
+
min: number;
|
|
2033
|
+
step: number;
|
|
2034
|
+
};
|
|
2035
|
+
seed: {
|
|
2036
|
+
type: "range";
|
|
2037
|
+
param: string;
|
|
2038
|
+
title: string;
|
|
2039
|
+
description: string;
|
|
2040
|
+
max: number;
|
|
2041
|
+
default: number;
|
|
2042
|
+
min: number;
|
|
2043
|
+
step: number;
|
|
2044
|
+
};
|
|
2045
|
+
logProbs: {
|
|
2046
|
+
type: "select-boolean";
|
|
2047
|
+
param: string;
|
|
2048
|
+
title: string;
|
|
2049
|
+
description: string;
|
|
2050
|
+
default: boolean | null;
|
|
2051
|
+
};
|
|
2052
|
+
topLogProbs: {
|
|
2053
|
+
type: "range";
|
|
2054
|
+
param: string;
|
|
2055
|
+
title: string;
|
|
2056
|
+
description: string;
|
|
2057
|
+
max: number;
|
|
2058
|
+
default: number;
|
|
2059
|
+
min: number;
|
|
2060
|
+
step: number;
|
|
2061
|
+
};
|
|
2062
|
+
toolChoice: {
|
|
2063
|
+
type: "select-string";
|
|
2064
|
+
param: string;
|
|
2065
|
+
title: string;
|
|
2066
|
+
description: string;
|
|
2067
|
+
default: string;
|
|
2068
|
+
choices: string[];
|
|
2069
|
+
};
|
|
2070
|
+
};
|
|
2071
|
+
declare const ChatModelResponseSchemaConfigSchema: (maxOutputTokens: number, maxSequences: number) => zod.ZodObject<zod.objectUtil.extendShape<{
|
|
2072
|
+
temperature: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
|
|
2073
|
+
maxTokens: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
|
|
2074
|
+
stop: zod.ZodOptional<zod.ZodDefault<zod.ZodArray<zod.ZodString, "many">>>;
|
|
2075
|
+
topP: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
|
|
2076
|
+
frequencyPenalty: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
|
|
2077
|
+
presencePenalty: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
|
|
2078
|
+
seed: zod.ZodEffects<zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>, number | undefined, number | undefined>;
|
|
2079
|
+
logProbs: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodBoolean>>>;
|
|
2080
|
+
topLogProbs: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
|
|
2081
|
+
toolChoice: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodEnum<[string, ...string[]]>>>>;
|
|
2082
|
+
}, {
|
|
2083
|
+
responseFormat: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodEnum<[string, ...string[]]>>>>;
|
|
2084
|
+
responseSchema: zod.ZodOptional<zod.ZodObject<zod.ZodRawShape, zod.UnknownKeysParam, zod.ZodTypeAny, {
|
|
2085
|
+
[x: string]: any;
|
|
2086
|
+
}, {
|
|
2087
|
+
[x: string]: any;
|
|
2088
|
+
}>>;
|
|
2089
|
+
}>, "strip", zod.ZodTypeAny, {
|
|
2090
|
+
temperature?: number | undefined;
|
|
2091
|
+
seed?: number | undefined;
|
|
2092
|
+
stop?: string[] | undefined;
|
|
2093
|
+
maxTokens?: number | undefined;
|
|
2094
|
+
topP?: number | undefined;
|
|
2095
|
+
frequencyPenalty?: number | undefined;
|
|
2096
|
+
presencePenalty?: number | undefined;
|
|
2097
|
+
logProbs?: boolean | null | undefined;
|
|
2098
|
+
topLogProbs?: number | undefined;
|
|
2099
|
+
toolChoice?: string | null | undefined;
|
|
2100
|
+
responseFormat?: string | null | undefined;
|
|
2101
|
+
responseSchema?: {
|
|
2102
|
+
[x: string]: any;
|
|
2103
|
+
} | undefined;
|
|
2104
|
+
}, {
|
|
2105
|
+
temperature?: number | undefined;
|
|
2106
|
+
seed?: number | undefined;
|
|
2107
|
+
stop?: string[] | undefined;
|
|
2108
|
+
maxTokens?: number | undefined;
|
|
2109
|
+
topP?: number | undefined;
|
|
2110
|
+
frequencyPenalty?: number | undefined;
|
|
2111
|
+
presencePenalty?: number | undefined;
|
|
2112
|
+
logProbs?: boolean | null | undefined;
|
|
2113
|
+
topLogProbs?: number | undefined;
|
|
2114
|
+
toolChoice?: string | null | undefined;
|
|
2115
|
+
responseFormat?: string | null | undefined;
|
|
2116
|
+
responseSchema?: {
|
|
2117
|
+
[x: string]: any;
|
|
2118
|
+
} | undefined;
|
|
2119
|
+
}>;
|
|
2120
|
+
|
|
2121
|
+
declare const EmbeddingModelBaseConfigSchema: () => z.ZodObject<{
|
|
2122
|
+
encodingFormat: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodEnum<[string, ...string[]]>>>>;
|
|
2123
|
+
}, "strip", z.ZodTypeAny, {
|
|
2124
|
+
encodingFormat?: string | null | undefined;
|
|
2125
|
+
}, {
|
|
2126
|
+
encodingFormat?: string | null | undefined;
|
|
2127
|
+
}>;
|
|
2128
|
+
declare const EmbeddingModelBaseConfigDef: () => {
|
|
2129
|
+
readonly encodingFormat: {
|
|
2130
|
+
type: "select-string";
|
|
2131
|
+
param: string;
|
|
2132
|
+
title: string;
|
|
2133
|
+
description: string;
|
|
2134
|
+
default: string;
|
|
2135
|
+
choices: string[];
|
|
2136
|
+
};
|
|
2137
|
+
};
|
|
2138
|
+
|
|
2139
|
+
declare const encodingFormat: {
|
|
2140
|
+
def: {
|
|
2141
|
+
type: "select-string";
|
|
1798
2142
|
param: string;
|
|
1799
2143
|
title: string;
|
|
1800
2144
|
description: string;
|
|
@@ -3749,6 +4093,118 @@ declare class BaseChatModelResponsesApi implements ChatModelV1<ChatModelSchemaTy
|
|
|
3749
4093
|
getModelPricing(): ChatModelPriceType;
|
|
3750
4094
|
}
|
|
3751
4095
|
|
|
4096
|
+
declare const ChatGPT_5_2Literal = "chatgpt-5.2";
|
|
4097
|
+
declare const ChatGPT_5_2Schema: {
|
|
4098
|
+
description: string;
|
|
4099
|
+
name: string;
|
|
4100
|
+
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
4101
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
4102
|
+
maxInputTokens: number;
|
|
4103
|
+
maxOutputTokens: number;
|
|
4104
|
+
config: {
|
|
4105
|
+
def: Record<string, {
|
|
4106
|
+
type: "multi-string";
|
|
4107
|
+
param: string;
|
|
4108
|
+
title: string;
|
|
4109
|
+
description: string;
|
|
4110
|
+
max: number;
|
|
4111
|
+
} | {
|
|
4112
|
+
type: "object-schema";
|
|
4113
|
+
param: string;
|
|
4114
|
+
title: string;
|
|
4115
|
+
description: string;
|
|
4116
|
+
objectSchema?: any;
|
|
4117
|
+
} | {
|
|
4118
|
+
type: "paired-select";
|
|
4119
|
+
param: string;
|
|
4120
|
+
title: string;
|
|
4121
|
+
description: string;
|
|
4122
|
+
fields: [{
|
|
4123
|
+
label: string;
|
|
4124
|
+
key: string;
|
|
4125
|
+
choices: {
|
|
4126
|
+
value: string;
|
|
4127
|
+
label: string;
|
|
4128
|
+
}[];
|
|
4129
|
+
description?: string | undefined;
|
|
4130
|
+
}, {
|
|
4131
|
+
label: string;
|
|
4132
|
+
key: string;
|
|
4133
|
+
choices: {
|
|
4134
|
+
value: string;
|
|
4135
|
+
label: string;
|
|
4136
|
+
}[];
|
|
4137
|
+
description?: string | undefined;
|
|
4138
|
+
}];
|
|
4139
|
+
uniqueByField?: string | undefined;
|
|
4140
|
+
} | {
|
|
4141
|
+
type: "range";
|
|
4142
|
+
param: string;
|
|
4143
|
+
title: string;
|
|
4144
|
+
description: string;
|
|
4145
|
+
max: number;
|
|
4146
|
+
default: number;
|
|
4147
|
+
min: number;
|
|
4148
|
+
step: number;
|
|
4149
|
+
} | {
|
|
4150
|
+
type: "select-boolean";
|
|
4151
|
+
param: string;
|
|
4152
|
+
title: string;
|
|
4153
|
+
description: string;
|
|
4154
|
+
default: boolean | null;
|
|
4155
|
+
} | {
|
|
4156
|
+
type: "select-string";
|
|
4157
|
+
param: string;
|
|
4158
|
+
title: string;
|
|
4159
|
+
description: string;
|
|
4160
|
+
default: string;
|
|
4161
|
+
choices: string[];
|
|
4162
|
+
}>;
|
|
4163
|
+
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
4164
|
+
};
|
|
4165
|
+
price: {
|
|
4166
|
+
modelName: string;
|
|
4167
|
+
currency: string;
|
|
4168
|
+
tokenRanges: {
|
|
4169
|
+
minTokens: number;
|
|
4170
|
+
prices: {
|
|
4171
|
+
base: {
|
|
4172
|
+
inputPricePerMillion: number;
|
|
4173
|
+
outputPricePerMillion: number;
|
|
4174
|
+
};
|
|
4175
|
+
};
|
|
4176
|
+
maxTokens?: number | null | undefined;
|
|
4177
|
+
}[];
|
|
4178
|
+
};
|
|
4179
|
+
maxReasoningTokens?: number | undefined;
|
|
4180
|
+
};
|
|
4181
|
+
declare const ChatGPT_5_2Options: z.ZodObject<{
|
|
4182
|
+
modelName: z.ZodString;
|
|
4183
|
+
apiKey: z.ZodString;
|
|
4184
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
4185
|
+
completeChatUrl: z.ZodOptional<z.ZodString>;
|
|
4186
|
+
streamChatUrl: z.ZodOptional<z.ZodString>;
|
|
4187
|
+
organization: z.ZodOptional<z.ZodString>;
|
|
4188
|
+
}, "strip", z.ZodTypeAny, {
|
|
4189
|
+
modelName: string;
|
|
4190
|
+
apiKey: string;
|
|
4191
|
+
baseUrl?: string | undefined;
|
|
4192
|
+
completeChatUrl?: string | undefined;
|
|
4193
|
+
streamChatUrl?: string | undefined;
|
|
4194
|
+
organization?: string | undefined;
|
|
4195
|
+
}, {
|
|
4196
|
+
modelName: string;
|
|
4197
|
+
apiKey: string;
|
|
4198
|
+
baseUrl?: string | undefined;
|
|
4199
|
+
completeChatUrl?: string | undefined;
|
|
4200
|
+
streamChatUrl?: string | undefined;
|
|
4201
|
+
organization?: string | undefined;
|
|
4202
|
+
}>;
|
|
4203
|
+
type ChatGPT_5_2OptionsType = z.infer<typeof ChatGPT_5_2Options>;
|
|
4204
|
+
declare class ChatGPT_5_2 extends BaseChatModel {
|
|
4205
|
+
constructor(options: ChatGPT_5_2OptionsType);
|
|
4206
|
+
}
|
|
4207
|
+
|
|
3752
4208
|
declare const GPT_3_5_Turbo_0125Literal = "gpt-3.5-turbo-0125";
|
|
3753
4209
|
declare const GPT_3_5_Turbo_0125Schema: {
|
|
3754
4210
|
description: string;
|
|
@@ -3973,8 +4429,232 @@ declare class GPT_3_5_Turbo_1106 extends BaseChatModel {
|
|
|
3973
4429
|
constructor(options: GPT_3_5_Turbo_1106OptionsType);
|
|
3974
4430
|
}
|
|
3975
4431
|
|
|
3976
|
-
declare const GPT_3_5_TurboLiteral = "gpt-3.5-turbo";
|
|
3977
|
-
declare const GPT_3_5_TurboSchema: {
|
|
4432
|
+
declare const GPT_3_5_TurboLiteral = "gpt-3.5-turbo";
|
|
4433
|
+
declare const GPT_3_5_TurboSchema: {
|
|
4434
|
+
description: string;
|
|
4435
|
+
name: string;
|
|
4436
|
+
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
4437
|
+
modalities: ["text" | "tool-call" | "tool-response", ...("text" | "tool-call" | "tool-response")[]];
|
|
4438
|
+
maxInputTokens: number;
|
|
4439
|
+
maxOutputTokens: number;
|
|
4440
|
+
config: {
|
|
4441
|
+
def: Record<string, {
|
|
4442
|
+
type: "multi-string";
|
|
4443
|
+
param: string;
|
|
4444
|
+
title: string;
|
|
4445
|
+
description: string;
|
|
4446
|
+
max: number;
|
|
4447
|
+
} | {
|
|
4448
|
+
type: "object-schema";
|
|
4449
|
+
param: string;
|
|
4450
|
+
title: string;
|
|
4451
|
+
description: string;
|
|
4452
|
+
objectSchema?: any;
|
|
4453
|
+
} | {
|
|
4454
|
+
type: "paired-select";
|
|
4455
|
+
param: string;
|
|
4456
|
+
title: string;
|
|
4457
|
+
description: string;
|
|
4458
|
+
fields: [{
|
|
4459
|
+
label: string;
|
|
4460
|
+
key: string;
|
|
4461
|
+
choices: {
|
|
4462
|
+
value: string;
|
|
4463
|
+
label: string;
|
|
4464
|
+
}[];
|
|
4465
|
+
description?: string | undefined;
|
|
4466
|
+
}, {
|
|
4467
|
+
label: string;
|
|
4468
|
+
key: string;
|
|
4469
|
+
choices: {
|
|
4470
|
+
value: string;
|
|
4471
|
+
label: string;
|
|
4472
|
+
}[];
|
|
4473
|
+
description?: string | undefined;
|
|
4474
|
+
}];
|
|
4475
|
+
uniqueByField?: string | undefined;
|
|
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;
|
|
4497
|
+
choices: string[];
|
|
4498
|
+
}>;
|
|
4499
|
+
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
4500
|
+
};
|
|
4501
|
+
price: {
|
|
4502
|
+
modelName: string;
|
|
4503
|
+
currency: string;
|
|
4504
|
+
tokenRanges: {
|
|
4505
|
+
minTokens: number;
|
|
4506
|
+
prices: {
|
|
4507
|
+
base: {
|
|
4508
|
+
inputPricePerMillion: number;
|
|
4509
|
+
outputPricePerMillion: number;
|
|
4510
|
+
};
|
|
4511
|
+
};
|
|
4512
|
+
maxTokens?: number | null | undefined;
|
|
4513
|
+
}[];
|
|
4514
|
+
};
|
|
4515
|
+
maxReasoningTokens?: number | undefined;
|
|
4516
|
+
};
|
|
4517
|
+
declare const GPT_3_5_TurboOptions: z.ZodObject<{
|
|
4518
|
+
modelName: z.ZodString;
|
|
4519
|
+
apiKey: z.ZodString;
|
|
4520
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
4521
|
+
completeChatUrl: z.ZodOptional<z.ZodString>;
|
|
4522
|
+
streamChatUrl: z.ZodOptional<z.ZodString>;
|
|
4523
|
+
organization: z.ZodOptional<z.ZodString>;
|
|
4524
|
+
}, "strip", z.ZodTypeAny, {
|
|
4525
|
+
modelName: string;
|
|
4526
|
+
apiKey: string;
|
|
4527
|
+
baseUrl?: string | undefined;
|
|
4528
|
+
completeChatUrl?: string | undefined;
|
|
4529
|
+
streamChatUrl?: string | undefined;
|
|
4530
|
+
organization?: string | undefined;
|
|
4531
|
+
}, {
|
|
4532
|
+
modelName: string;
|
|
4533
|
+
apiKey: string;
|
|
4534
|
+
baseUrl?: string | undefined;
|
|
4535
|
+
completeChatUrl?: string | undefined;
|
|
4536
|
+
streamChatUrl?: string | undefined;
|
|
4537
|
+
organization?: string | undefined;
|
|
4538
|
+
}>;
|
|
4539
|
+
type GPT_3_5_TurboOptionsType = z.infer<typeof GPT_3_5_TurboOptions>;
|
|
4540
|
+
declare class GPT_3_5_Turbo extends BaseChatModel {
|
|
4541
|
+
constructor(options: GPT_3_5_TurboOptionsType);
|
|
4542
|
+
}
|
|
4543
|
+
|
|
4544
|
+
declare const GPT_4_0125_PreviewLiteral = "gpt-4-0125-preview";
|
|
4545
|
+
declare const GPT_4_0125_PreviewSchema: {
|
|
4546
|
+
description: string;
|
|
4547
|
+
name: string;
|
|
4548
|
+
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
4549
|
+
modalities: ["text" | "tool-call" | "tool-response", ...("text" | "tool-call" | "tool-response")[]];
|
|
4550
|
+
maxInputTokens: number;
|
|
4551
|
+
maxOutputTokens: number;
|
|
4552
|
+
config: {
|
|
4553
|
+
def: Record<string, {
|
|
4554
|
+
type: "multi-string";
|
|
4555
|
+
param: string;
|
|
4556
|
+
title: string;
|
|
4557
|
+
description: string;
|
|
4558
|
+
max: number;
|
|
4559
|
+
} | {
|
|
4560
|
+
type: "object-schema";
|
|
4561
|
+
param: string;
|
|
4562
|
+
title: string;
|
|
4563
|
+
description: string;
|
|
4564
|
+
objectSchema?: any;
|
|
4565
|
+
} | {
|
|
4566
|
+
type: "paired-select";
|
|
4567
|
+
param: string;
|
|
4568
|
+
title: string;
|
|
4569
|
+
description: string;
|
|
4570
|
+
fields: [{
|
|
4571
|
+
label: string;
|
|
4572
|
+
key: string;
|
|
4573
|
+
choices: {
|
|
4574
|
+
value: string;
|
|
4575
|
+
label: string;
|
|
4576
|
+
}[];
|
|
4577
|
+
description?: string | undefined;
|
|
4578
|
+
}, {
|
|
4579
|
+
label: string;
|
|
4580
|
+
key: string;
|
|
4581
|
+
choices: {
|
|
4582
|
+
value: string;
|
|
4583
|
+
label: string;
|
|
4584
|
+
}[];
|
|
4585
|
+
description?: string | undefined;
|
|
4586
|
+
}];
|
|
4587
|
+
uniqueByField?: string | undefined;
|
|
4588
|
+
} | {
|
|
4589
|
+
type: "range";
|
|
4590
|
+
param: string;
|
|
4591
|
+
title: string;
|
|
4592
|
+
description: string;
|
|
4593
|
+
max: number;
|
|
4594
|
+
default: number;
|
|
4595
|
+
min: number;
|
|
4596
|
+
step: number;
|
|
4597
|
+
} | {
|
|
4598
|
+
type: "select-boolean";
|
|
4599
|
+
param: string;
|
|
4600
|
+
title: string;
|
|
4601
|
+
description: string;
|
|
4602
|
+
default: boolean | null;
|
|
4603
|
+
} | {
|
|
4604
|
+
type: "select-string";
|
|
4605
|
+
param: string;
|
|
4606
|
+
title: string;
|
|
4607
|
+
description: string;
|
|
4608
|
+
default: string;
|
|
4609
|
+
choices: string[];
|
|
4610
|
+
}>;
|
|
4611
|
+
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
4612
|
+
};
|
|
4613
|
+
price: {
|
|
4614
|
+
modelName: string;
|
|
4615
|
+
currency: string;
|
|
4616
|
+
tokenRanges: {
|
|
4617
|
+
minTokens: number;
|
|
4618
|
+
prices: {
|
|
4619
|
+
base: {
|
|
4620
|
+
inputPricePerMillion: number;
|
|
4621
|
+
outputPricePerMillion: number;
|
|
4622
|
+
};
|
|
4623
|
+
};
|
|
4624
|
+
maxTokens?: number | null | undefined;
|
|
4625
|
+
}[];
|
|
4626
|
+
};
|
|
4627
|
+
maxReasoningTokens?: number | undefined;
|
|
4628
|
+
};
|
|
4629
|
+
declare const GPT_4_0125_PreviewOptions: z.ZodObject<{
|
|
4630
|
+
modelName: z.ZodString;
|
|
4631
|
+
apiKey: z.ZodString;
|
|
4632
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
4633
|
+
completeChatUrl: z.ZodOptional<z.ZodString>;
|
|
4634
|
+
streamChatUrl: z.ZodOptional<z.ZodString>;
|
|
4635
|
+
organization: z.ZodOptional<z.ZodString>;
|
|
4636
|
+
}, "strip", z.ZodTypeAny, {
|
|
4637
|
+
modelName: string;
|
|
4638
|
+
apiKey: string;
|
|
4639
|
+
baseUrl?: string | undefined;
|
|
4640
|
+
completeChatUrl?: string | undefined;
|
|
4641
|
+
streamChatUrl?: string | undefined;
|
|
4642
|
+
organization?: string | undefined;
|
|
4643
|
+
}, {
|
|
4644
|
+
modelName: string;
|
|
4645
|
+
apiKey: string;
|
|
4646
|
+
baseUrl?: string | undefined;
|
|
4647
|
+
completeChatUrl?: string | undefined;
|
|
4648
|
+
streamChatUrl?: string | undefined;
|
|
4649
|
+
organization?: string | undefined;
|
|
4650
|
+
}>;
|
|
4651
|
+
type GPT_4_0125_PreviewOptionsType = z.infer<typeof GPT_4_0125_PreviewOptions>;
|
|
4652
|
+
declare class GPT_4_0125_Preview extends BaseChatModel {
|
|
4653
|
+
constructor(options: GPT_4_0125_PreviewOptionsType);
|
|
4654
|
+
}
|
|
4655
|
+
|
|
4656
|
+
declare const GPT_4_0613Literal = "gpt-4-0613";
|
|
4657
|
+
declare const GPT_4_0613Schema: {
|
|
3978
4658
|
description: string;
|
|
3979
4659
|
name: string;
|
|
3980
4660
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
@@ -4058,7 +4738,7 @@ declare const GPT_3_5_TurboSchema: {
|
|
|
4058
4738
|
};
|
|
4059
4739
|
maxReasoningTokens?: number | undefined;
|
|
4060
4740
|
};
|
|
4061
|
-
declare const
|
|
4741
|
+
declare const GPT_4_0613Options: z.ZodObject<{
|
|
4062
4742
|
modelName: z.ZodString;
|
|
4063
4743
|
apiKey: z.ZodString;
|
|
4064
4744
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -4080,13 +4760,13 @@ declare const GPT_3_5_TurboOptions: z.ZodObject<{
|
|
|
4080
4760
|
streamChatUrl?: string | undefined;
|
|
4081
4761
|
organization?: string | undefined;
|
|
4082
4762
|
}>;
|
|
4083
|
-
type
|
|
4084
|
-
declare class
|
|
4085
|
-
constructor(options:
|
|
4763
|
+
type GPT_4_0613OptionsType = z.infer<typeof GPT_4_0613Options>;
|
|
4764
|
+
declare class GPT_4_0613 extends BaseChatModel {
|
|
4765
|
+
constructor(options: GPT_4_0613OptionsType);
|
|
4086
4766
|
}
|
|
4087
4767
|
|
|
4088
|
-
declare const
|
|
4089
|
-
declare const
|
|
4768
|
+
declare const GPT_4_1106_PreviewLiteral = "gpt-4-1106-preview";
|
|
4769
|
+
declare const GPT_4_1106_PreviewSchema: {
|
|
4090
4770
|
description: string;
|
|
4091
4771
|
name: string;
|
|
4092
4772
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
@@ -4170,7 +4850,7 @@ declare const GPT_4_0125_PreviewSchema: {
|
|
|
4170
4850
|
};
|
|
4171
4851
|
maxReasoningTokens?: number | undefined;
|
|
4172
4852
|
};
|
|
4173
|
-
declare const
|
|
4853
|
+
declare const GPT_4_1106_PreviewOptions: z.ZodObject<{
|
|
4174
4854
|
modelName: z.ZodString;
|
|
4175
4855
|
apiKey: z.ZodString;
|
|
4176
4856
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -4192,17 +4872,17 @@ declare const GPT_4_0125_PreviewOptions: z.ZodObject<{
|
|
|
4192
4872
|
streamChatUrl?: string | undefined;
|
|
4193
4873
|
organization?: string | undefined;
|
|
4194
4874
|
}>;
|
|
4195
|
-
type
|
|
4196
|
-
declare class
|
|
4197
|
-
constructor(options:
|
|
4875
|
+
type GPT_4_1106_PreviewOptionsType = z.infer<typeof GPT_4_1106_PreviewOptions>;
|
|
4876
|
+
declare class GPT_4_1106_Preview extends BaseChatModel {
|
|
4877
|
+
constructor(options: GPT_4_1106_PreviewOptionsType);
|
|
4198
4878
|
}
|
|
4199
4879
|
|
|
4200
|
-
declare const
|
|
4201
|
-
declare const
|
|
4880
|
+
declare const GPT_4_1Literal = "gpt-4.1";
|
|
4881
|
+
declare const GPT_4_1Schema: {
|
|
4202
4882
|
description: string;
|
|
4203
4883
|
name: string;
|
|
4204
4884
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
4205
|
-
modalities: ["text" | "tool-call" | "tool-response", ...("text" | "tool-call" | "tool-response")[]];
|
|
4885
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
4206
4886
|
maxInputTokens: number;
|
|
4207
4887
|
maxOutputTokens: number;
|
|
4208
4888
|
config: {
|
|
@@ -4282,7 +4962,7 @@ declare const GPT_4_0613Schema: {
|
|
|
4282
4962
|
};
|
|
4283
4963
|
maxReasoningTokens?: number | undefined;
|
|
4284
4964
|
};
|
|
4285
|
-
declare const
|
|
4965
|
+
declare const GPT_4_1Options: z.ZodObject<{
|
|
4286
4966
|
modelName: z.ZodString;
|
|
4287
4967
|
apiKey: z.ZodString;
|
|
4288
4968
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -4304,17 +4984,17 @@ declare const GPT_4_0613Options: z.ZodObject<{
|
|
|
4304
4984
|
streamChatUrl?: string | undefined;
|
|
4305
4985
|
organization?: string | undefined;
|
|
4306
4986
|
}>;
|
|
4307
|
-
type
|
|
4308
|
-
declare class
|
|
4309
|
-
constructor(options:
|
|
4987
|
+
type GPT_4_1OptionsType = z.infer<typeof GPT_4_1Options>;
|
|
4988
|
+
declare class GPT_4_1 extends BaseChatModel {
|
|
4989
|
+
constructor(options: GPT_4_1OptionsType);
|
|
4310
4990
|
}
|
|
4311
4991
|
|
|
4312
|
-
declare const
|
|
4313
|
-
declare const
|
|
4992
|
+
declare const GPT_4_1_MiniLiteral = "gpt-4.1-mini";
|
|
4993
|
+
declare const GPT_4_1_MiniSchema: {
|
|
4314
4994
|
description: string;
|
|
4315
4995
|
name: string;
|
|
4316
4996
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
4317
|
-
modalities: ["text" | "tool-call" | "tool-response", ...("text" | "tool-call" | "tool-response")[]];
|
|
4997
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
4318
4998
|
maxInputTokens: number;
|
|
4319
4999
|
maxOutputTokens: number;
|
|
4320
5000
|
config: {
|
|
@@ -4394,7 +5074,7 @@ declare const GPT_4_1106_PreviewSchema: {
|
|
|
4394
5074
|
};
|
|
4395
5075
|
maxReasoningTokens?: number | undefined;
|
|
4396
5076
|
};
|
|
4397
|
-
declare const
|
|
5077
|
+
declare const GPT_4_1_MiniOptions: z.ZodObject<{
|
|
4398
5078
|
modelName: z.ZodString;
|
|
4399
5079
|
apiKey: z.ZodString;
|
|
4400
5080
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -4416,13 +5096,13 @@ declare const GPT_4_1106_PreviewOptions: z.ZodObject<{
|
|
|
4416
5096
|
streamChatUrl?: string | undefined;
|
|
4417
5097
|
organization?: string | undefined;
|
|
4418
5098
|
}>;
|
|
4419
|
-
type
|
|
4420
|
-
declare class
|
|
4421
|
-
constructor(options:
|
|
5099
|
+
type GPT_4_1_MiniOptionsType = z.infer<typeof GPT_4_1_MiniOptions>;
|
|
5100
|
+
declare class GPT_4_1_Mini extends BaseChatModel {
|
|
5101
|
+
constructor(options: GPT_4_1_MiniOptionsType);
|
|
4422
5102
|
}
|
|
4423
5103
|
|
|
4424
|
-
declare const
|
|
4425
|
-
declare const
|
|
5104
|
+
declare const GPT_4_1_NanoLiteral = "gpt-4.1-nano";
|
|
5105
|
+
declare const GPT_4_1_NanoSchema: {
|
|
4426
5106
|
description: string;
|
|
4427
5107
|
name: string;
|
|
4428
5108
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
@@ -4506,7 +5186,7 @@ declare const GPT_4_1Schema: {
|
|
|
4506
5186
|
};
|
|
4507
5187
|
maxReasoningTokens?: number | undefined;
|
|
4508
5188
|
};
|
|
4509
|
-
declare const
|
|
5189
|
+
declare const GPT_4_1_NanoOptions: z.ZodObject<{
|
|
4510
5190
|
modelName: z.ZodString;
|
|
4511
5191
|
apiKey: z.ZodString;
|
|
4512
5192
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -4528,13 +5208,13 @@ declare const GPT_4_1Options: z.ZodObject<{
|
|
|
4528
5208
|
streamChatUrl?: string | undefined;
|
|
4529
5209
|
organization?: string | undefined;
|
|
4530
5210
|
}>;
|
|
4531
|
-
type
|
|
4532
|
-
declare class
|
|
4533
|
-
constructor(options:
|
|
5211
|
+
type GPT_4_1_NanoOptionsType = z.infer<typeof GPT_4_1_NanoOptions>;
|
|
5212
|
+
declare class GPT_4_1_Nano extends BaseChatModel {
|
|
5213
|
+
constructor(options: GPT_4_1_NanoOptionsType);
|
|
4534
5214
|
}
|
|
4535
5215
|
|
|
4536
|
-
declare const
|
|
4537
|
-
declare const
|
|
5216
|
+
declare const GPT_5_1Literal = "gpt-5.1";
|
|
5217
|
+
declare const GPT_5_1Schema: {
|
|
4538
5218
|
description: string;
|
|
4539
5219
|
name: string;
|
|
4540
5220
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
@@ -4618,7 +5298,7 @@ declare const GPT_4_1_MiniSchema: {
|
|
|
4618
5298
|
};
|
|
4619
5299
|
maxReasoningTokens?: number | undefined;
|
|
4620
5300
|
};
|
|
4621
|
-
declare const
|
|
5301
|
+
declare const GPT_5_1Options: z.ZodObject<{
|
|
4622
5302
|
modelName: z.ZodString;
|
|
4623
5303
|
apiKey: z.ZodString;
|
|
4624
5304
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -4640,13 +5320,13 @@ declare const GPT_4_1_MiniOptions: z.ZodObject<{
|
|
|
4640
5320
|
streamChatUrl?: string | undefined;
|
|
4641
5321
|
organization?: string | undefined;
|
|
4642
5322
|
}>;
|
|
4643
|
-
type
|
|
4644
|
-
declare class
|
|
4645
|
-
constructor(options:
|
|
5323
|
+
type GPT_5_1OptionsType = z.infer<typeof GPT_5_1Options>;
|
|
5324
|
+
declare class GPT_5_1 extends BaseChatModel {
|
|
5325
|
+
constructor(options: GPT_5_1OptionsType);
|
|
4646
5326
|
}
|
|
4647
5327
|
|
|
4648
|
-
declare const
|
|
4649
|
-
declare const
|
|
5328
|
+
declare const GPT_5_2Literal = "gpt-5.2";
|
|
5329
|
+
declare const GPT_5_2Schema: {
|
|
4650
5330
|
description: string;
|
|
4651
5331
|
name: string;
|
|
4652
5332
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
@@ -4730,7 +5410,7 @@ declare const GPT_4_1_NanoSchema: {
|
|
|
4730
5410
|
};
|
|
4731
5411
|
maxReasoningTokens?: number | undefined;
|
|
4732
5412
|
};
|
|
4733
|
-
declare const
|
|
5413
|
+
declare const GPT_5_2Options: z.ZodObject<{
|
|
4734
5414
|
modelName: z.ZodString;
|
|
4735
5415
|
apiKey: z.ZodString;
|
|
4736
5416
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -4752,13 +5432,13 @@ declare const GPT_4_1_NanoOptions: z.ZodObject<{
|
|
|
4752
5432
|
streamChatUrl?: string | undefined;
|
|
4753
5433
|
organization?: string | undefined;
|
|
4754
5434
|
}>;
|
|
4755
|
-
type
|
|
4756
|
-
declare class
|
|
4757
|
-
constructor(options:
|
|
5435
|
+
type GPT_5_2OptionsType = z.infer<typeof GPT_5_2Options>;
|
|
5436
|
+
declare class GPT_5_2 extends BaseChatModel {
|
|
5437
|
+
constructor(options: GPT_5_2OptionsType);
|
|
4758
5438
|
}
|
|
4759
5439
|
|
|
4760
|
-
declare const
|
|
4761
|
-
declare const
|
|
5440
|
+
declare const GPT_5_2_ChatLatestLiteral = "gpt-5.2-chat-latest";
|
|
5441
|
+
declare const GPT_5_2_ChatLatestSchema: {
|
|
4762
5442
|
description: string;
|
|
4763
5443
|
name: string;
|
|
4764
5444
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
@@ -4842,7 +5522,7 @@ declare const GPT_5_1Schema: {
|
|
|
4842
5522
|
};
|
|
4843
5523
|
maxReasoningTokens?: number | undefined;
|
|
4844
5524
|
};
|
|
4845
|
-
declare const
|
|
5525
|
+
declare const GPT_5_2_ChatLatestOptions: z.ZodObject<{
|
|
4846
5526
|
modelName: z.ZodString;
|
|
4847
5527
|
apiKey: z.ZodString;
|
|
4848
5528
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -4864,13 +5544,13 @@ declare const GPT_5_1Options: z.ZodObject<{
|
|
|
4864
5544
|
streamChatUrl?: string | undefined;
|
|
4865
5545
|
organization?: string | undefined;
|
|
4866
5546
|
}>;
|
|
4867
|
-
type
|
|
4868
|
-
declare class
|
|
4869
|
-
constructor(options:
|
|
5547
|
+
type GPT_5_2_ChatLatestOptionsType = z.infer<typeof GPT_5_2_ChatLatestOptions>;
|
|
5548
|
+
declare class GPT_5_2_ChatLatest extends BaseChatModel {
|
|
5549
|
+
constructor(options: GPT_5_2_ChatLatestOptionsType);
|
|
4870
5550
|
}
|
|
4871
5551
|
|
|
4872
|
-
declare const
|
|
4873
|
-
declare const
|
|
5552
|
+
declare const GPT_5_2_CodexLiteral = "gpt-5.2-codex";
|
|
5553
|
+
declare const GPT_5_2_CodexSchema: {
|
|
4874
5554
|
description: string;
|
|
4875
5555
|
name: string;
|
|
4876
5556
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
@@ -4954,7 +5634,7 @@ declare const GPT_5_2Schema: {
|
|
|
4954
5634
|
};
|
|
4955
5635
|
maxReasoningTokens?: number | undefined;
|
|
4956
5636
|
};
|
|
4957
|
-
declare const
|
|
5637
|
+
declare const GPT_5_2_CodexOptions: z.ZodObject<{
|
|
4958
5638
|
modelName: z.ZodString;
|
|
4959
5639
|
apiKey: z.ZodString;
|
|
4960
5640
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -4976,13 +5656,13 @@ declare const GPT_5_2Options: z.ZodObject<{
|
|
|
4976
5656
|
streamChatUrl?: string | undefined;
|
|
4977
5657
|
organization?: string | undefined;
|
|
4978
5658
|
}>;
|
|
4979
|
-
type
|
|
4980
|
-
declare class
|
|
4981
|
-
constructor(options:
|
|
5659
|
+
type GPT_5_2_CodexOptionsType = z.infer<typeof GPT_5_2_CodexOptions>;
|
|
5660
|
+
declare class GPT_5_2_Codex extends BaseChatModel {
|
|
5661
|
+
constructor(options: GPT_5_2_CodexOptionsType);
|
|
4982
5662
|
}
|
|
4983
5663
|
|
|
4984
|
-
declare const
|
|
4985
|
-
declare const
|
|
5664
|
+
declare const GPT_5_2_ProLiteral = "gpt-5.2-pro";
|
|
5665
|
+
declare const GPT_5_2_ProSchema: {
|
|
4986
5666
|
description: string;
|
|
4987
5667
|
name: string;
|
|
4988
5668
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
@@ -5066,35 +5746,34 @@ declare const GPT_5_2_ChatLatestSchema: {
|
|
|
5066
5746
|
};
|
|
5067
5747
|
maxReasoningTokens?: number | undefined;
|
|
5068
5748
|
};
|
|
5069
|
-
declare const
|
|
5749
|
+
declare const GPT_5_2_ProOptions: z.ZodObject<{
|
|
5070
5750
|
modelName: z.ZodString;
|
|
5071
5751
|
apiKey: z.ZodString;
|
|
5072
5752
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
5073
|
-
completeChatUrl: z.ZodOptional<z.ZodString>;
|
|
5074
|
-
streamChatUrl: z.ZodOptional<z.ZodString>;
|
|
5075
5753
|
organization: z.ZodOptional<z.ZodString>;
|
|
5076
5754
|
}, "strip", z.ZodTypeAny, {
|
|
5077
5755
|
modelName: string;
|
|
5078
5756
|
apiKey: string;
|
|
5079
5757
|
baseUrl?: string | undefined;
|
|
5080
|
-
completeChatUrl?: string | undefined;
|
|
5081
|
-
streamChatUrl?: string | undefined;
|
|
5082
5758
|
organization?: string | undefined;
|
|
5083
5759
|
}, {
|
|
5084
5760
|
modelName: string;
|
|
5085
5761
|
apiKey: string;
|
|
5086
5762
|
baseUrl?: string | undefined;
|
|
5087
|
-
completeChatUrl?: string | undefined;
|
|
5088
|
-
streamChatUrl?: string | undefined;
|
|
5089
5763
|
organization?: string | undefined;
|
|
5090
5764
|
}>;
|
|
5091
|
-
type
|
|
5092
|
-
|
|
5093
|
-
|
|
5765
|
+
type GPT_5_2_ProOptionsType = z.infer<typeof GPT_5_2_ProOptions>;
|
|
5766
|
+
/**
|
|
5767
|
+
* GPT-5.2 Pro Model
|
|
5768
|
+
*
|
|
5769
|
+
* This model uses the OpenAI Responses API (/v1/responses)
|
|
5770
|
+
*/
|
|
5771
|
+
declare class GPT_5_2_Pro extends BaseChatModelResponsesApi {
|
|
5772
|
+
constructor(options: GPT_5_2_ProOptionsType);
|
|
5094
5773
|
}
|
|
5095
5774
|
|
|
5096
|
-
declare const
|
|
5097
|
-
declare const
|
|
5775
|
+
declare const GPT_5_3_CodexLiteral = "gpt-5.3-codex";
|
|
5776
|
+
declare const GPT_5_3_CodexSchema: {
|
|
5098
5777
|
description: string;
|
|
5099
5778
|
name: string;
|
|
5100
5779
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
@@ -5178,30 +5857,31 @@ declare const GPT_5_2_ProSchema: {
|
|
|
5178
5857
|
};
|
|
5179
5858
|
maxReasoningTokens?: number | undefined;
|
|
5180
5859
|
};
|
|
5181
|
-
declare const
|
|
5860
|
+
declare const GPT_5_3_CodexOptions: z.ZodObject<{
|
|
5182
5861
|
modelName: z.ZodString;
|
|
5183
5862
|
apiKey: z.ZodString;
|
|
5184
5863
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
5864
|
+
completeChatUrl: z.ZodOptional<z.ZodString>;
|
|
5865
|
+
streamChatUrl: z.ZodOptional<z.ZodString>;
|
|
5185
5866
|
organization: z.ZodOptional<z.ZodString>;
|
|
5186
5867
|
}, "strip", z.ZodTypeAny, {
|
|
5187
5868
|
modelName: string;
|
|
5188
5869
|
apiKey: string;
|
|
5189
5870
|
baseUrl?: string | undefined;
|
|
5871
|
+
completeChatUrl?: string | undefined;
|
|
5872
|
+
streamChatUrl?: string | undefined;
|
|
5190
5873
|
organization?: string | undefined;
|
|
5191
5874
|
}, {
|
|
5192
5875
|
modelName: string;
|
|
5193
5876
|
apiKey: string;
|
|
5194
5877
|
baseUrl?: string | undefined;
|
|
5878
|
+
completeChatUrl?: string | undefined;
|
|
5879
|
+
streamChatUrl?: string | undefined;
|
|
5195
5880
|
organization?: string | undefined;
|
|
5196
5881
|
}>;
|
|
5197
|
-
type
|
|
5198
|
-
|
|
5199
|
-
|
|
5200
|
-
*
|
|
5201
|
-
* This model uses the OpenAI Responses API (/v1/responses)
|
|
5202
|
-
*/
|
|
5203
|
-
declare class GPT_5_2_Pro extends BaseChatModelResponsesApi {
|
|
5204
|
-
constructor(options: GPT_5_2_ProOptionsType);
|
|
5882
|
+
type GPT_5_3_CodexOptionsType = z.infer<typeof GPT_5_3_CodexOptions>;
|
|
5883
|
+
declare class GPT_5_3_Codex extends BaseChatModel {
|
|
5884
|
+
constructor(options: GPT_5_3_CodexOptionsType);
|
|
5205
5885
|
}
|
|
5206
5886
|
|
|
5207
5887
|
declare const GPT_5Literal = "gpt-5";
|
|
@@ -6660,6 +7340,118 @@ declare class GPT_4o extends BaseChatModel {
|
|
|
6660
7340
|
constructor(options: GPT_4oOptionsType);
|
|
6661
7341
|
}
|
|
6662
7342
|
|
|
7343
|
+
declare const ChatGPT_4o_LatestLiteral = "chatgpt-4o-latest";
|
|
7344
|
+
declare const ChatGPT_4o_LatestSchema: {
|
|
7345
|
+
description: string;
|
|
7346
|
+
name: string;
|
|
7347
|
+
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
7348
|
+
modalities: ["text" | "image", ...("text" | "image")[]];
|
|
7349
|
+
maxInputTokens: number;
|
|
7350
|
+
maxOutputTokens: number;
|
|
7351
|
+
config: {
|
|
7352
|
+
def: Record<string, {
|
|
7353
|
+
type: "multi-string";
|
|
7354
|
+
param: string;
|
|
7355
|
+
title: string;
|
|
7356
|
+
description: string;
|
|
7357
|
+
max: number;
|
|
7358
|
+
} | {
|
|
7359
|
+
type: "object-schema";
|
|
7360
|
+
param: string;
|
|
7361
|
+
title: string;
|
|
7362
|
+
description: string;
|
|
7363
|
+
objectSchema?: any;
|
|
7364
|
+
} | {
|
|
7365
|
+
type: "paired-select";
|
|
7366
|
+
param: string;
|
|
7367
|
+
title: string;
|
|
7368
|
+
description: string;
|
|
7369
|
+
fields: [{
|
|
7370
|
+
label: string;
|
|
7371
|
+
key: string;
|
|
7372
|
+
choices: {
|
|
7373
|
+
value: string;
|
|
7374
|
+
label: string;
|
|
7375
|
+
}[];
|
|
7376
|
+
description?: string | undefined;
|
|
7377
|
+
}, {
|
|
7378
|
+
label: string;
|
|
7379
|
+
key: string;
|
|
7380
|
+
choices: {
|
|
7381
|
+
value: string;
|
|
7382
|
+
label: string;
|
|
7383
|
+
}[];
|
|
7384
|
+
description?: string | undefined;
|
|
7385
|
+
}];
|
|
7386
|
+
uniqueByField?: string | undefined;
|
|
7387
|
+
} | {
|
|
7388
|
+
type: "range";
|
|
7389
|
+
param: string;
|
|
7390
|
+
title: string;
|
|
7391
|
+
description: string;
|
|
7392
|
+
max: number;
|
|
7393
|
+
default: number;
|
|
7394
|
+
min: number;
|
|
7395
|
+
step: number;
|
|
7396
|
+
} | {
|
|
7397
|
+
type: "select-boolean";
|
|
7398
|
+
param: string;
|
|
7399
|
+
title: string;
|
|
7400
|
+
description: string;
|
|
7401
|
+
default: boolean | null;
|
|
7402
|
+
} | {
|
|
7403
|
+
type: "select-string";
|
|
7404
|
+
param: string;
|
|
7405
|
+
title: string;
|
|
7406
|
+
description: string;
|
|
7407
|
+
default: string;
|
|
7408
|
+
choices: string[];
|
|
7409
|
+
}>;
|
|
7410
|
+
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
7411
|
+
};
|
|
7412
|
+
price: {
|
|
7413
|
+
modelName: string;
|
|
7414
|
+
currency: string;
|
|
7415
|
+
tokenRanges: {
|
|
7416
|
+
minTokens: number;
|
|
7417
|
+
prices: {
|
|
7418
|
+
base: {
|
|
7419
|
+
inputPricePerMillion: number;
|
|
7420
|
+
outputPricePerMillion: number;
|
|
7421
|
+
};
|
|
7422
|
+
};
|
|
7423
|
+
maxTokens?: number | null | undefined;
|
|
7424
|
+
}[];
|
|
7425
|
+
};
|
|
7426
|
+
maxReasoningTokens?: number | undefined;
|
|
7427
|
+
};
|
|
7428
|
+
declare const ChatGPT_4o_LatestOptions: z.ZodObject<{
|
|
7429
|
+
modelName: z.ZodString;
|
|
7430
|
+
apiKey: z.ZodString;
|
|
7431
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
7432
|
+
completeChatUrl: z.ZodOptional<z.ZodString>;
|
|
7433
|
+
streamChatUrl: z.ZodOptional<z.ZodString>;
|
|
7434
|
+
organization: z.ZodOptional<z.ZodString>;
|
|
7435
|
+
}, "strip", z.ZodTypeAny, {
|
|
7436
|
+
modelName: string;
|
|
7437
|
+
apiKey: string;
|
|
7438
|
+
baseUrl?: string | undefined;
|
|
7439
|
+
completeChatUrl?: string | undefined;
|
|
7440
|
+
streamChatUrl?: string | undefined;
|
|
7441
|
+
organization?: string | undefined;
|
|
7442
|
+
}, {
|
|
7443
|
+
modelName: string;
|
|
7444
|
+
apiKey: string;
|
|
7445
|
+
baseUrl?: string | undefined;
|
|
7446
|
+
completeChatUrl?: string | undefined;
|
|
7447
|
+
streamChatUrl?: string | undefined;
|
|
7448
|
+
organization?: string | undefined;
|
|
7449
|
+
}>;
|
|
7450
|
+
type ChatGPT_4o_LatestOptionsType = z.infer<typeof ChatGPT_4o_LatestOptions>;
|
|
7451
|
+
declare class ChatGPT_4o_Latest extends BaseChatModel {
|
|
7452
|
+
constructor(options: ChatGPT_4o_LatestOptionsType);
|
|
7453
|
+
}
|
|
7454
|
+
|
|
6663
7455
|
declare const O1_2024_12_17Literal = "o1-2024-12-17";
|
|
6664
7456
|
declare const O1_2024_12_17Schema: {
|
|
6665
7457
|
description: string;
|
|
@@ -7962,4 +8754,4 @@ declare class OpenAI<C extends BaseChatModelOptionsType, E extends BaseEmbedding
|
|
|
7962
8754
|
embeddingModel(options: E): EmbeddingModelV1;
|
|
7963
8755
|
}
|
|
7964
8756
|
|
|
7965
|
-
export { BaseChatModel, BaseChatModelOptions, type BaseChatModelOptionsType, BaseChatModelResponsesApi, BaseChatModelResponsesApiOptions, type BaseChatModelResponsesApiOptionsType, BaseEmbeddingModel, BaseEmbeddingModelOptions, type BaseEmbeddingModelOptionsType, ChatModelBaseConfigDef, ChatModelBaseConfigSchema, ChatModelGPT5ConfigDef, ChatModelGPT5ConfigSchema, 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_1, GPT_4_1106_Preview, GPT_4_1106_PreviewLiteral, GPT_4_1106_PreviewOptions, type GPT_4_1106_PreviewOptionsType, GPT_4_1106_PreviewSchema, GPT_4_1Literal, GPT_4_1Options, type GPT_4_1OptionsType, GPT_4_1Schema, GPT_4_1_Mini, GPT_4_1_MiniLiteral, GPT_4_1_MiniOptions, type GPT_4_1_MiniOptionsType, GPT_4_1_MiniSchema, GPT_4_1_Nano, GPT_4_1_NanoLiteral, GPT_4_1_NanoOptions, type GPT_4_1_NanoOptionsType, GPT_4_1_NanoSchema, 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, GPT_5, GPT_5Literal, GPT_5Options, type GPT_5OptionsType, GPT_5Schema, GPT_5_1, GPT_5_1Literal, GPT_5_1Options, type GPT_5_1OptionsType, GPT_5_1Schema, GPT_5_2, GPT_5_2Literal, GPT_5_2Options, type GPT_5_2OptionsType, GPT_5_2Schema, GPT_5_2_ChatLatest, GPT_5_2_ChatLatestLiteral, GPT_5_2_ChatLatestOptions, type GPT_5_2_ChatLatestOptionsType, GPT_5_2_ChatLatestSchema, GPT_5_2_Pro, GPT_5_2_ProLiteral, GPT_5_2_ProOptions, type GPT_5_2_ProOptionsType, GPT_5_2_ProSchema, GPT_5_ChatLatest, GPT_5_ChatLatestLiteral, GPT_5_ChatLatestOptions, type GPT_5_ChatLatestOptionsType, GPT_5_ChatLatestSchema, GPT_5_Mini, GPT_5_MiniLiteral, GPT_5_MiniOptions, type GPT_5_MiniOptionsType, GPT_5_MiniSchema, GPT_5_Nano, GPT_5_NanoLiteral, GPT_5_NanoOptions, type GPT_5_NanoOptionsType, GPT_5_NanoSchema, 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, O3, O3Literal, O3Mini, O3Mini2025_01_31, O3Mini2025_01_31Literal, O3Mini2025_01_31Options, type O3Mini2025_01_31OptionsType, O3Mini2025_01_31Schema, O3MiniLiteral, O3MiniOptions, type O3MiniOptionsType, O3MiniSchema, O3Options, type O3OptionsType, O3Schema, O3_2025_04_16, O3_2025_04_16Literal, O3_2025_04_16Options, type O3_2025_04_16OptionsType, O3_2025_04_16Schema, O4_Mini, O4_MiniLiteral, O4_MiniOptions, type O4_MiniOptionsType, O4_MiniSchema, O4_Mini_2025_04_16, O4_Mini_2025_04_16Literal, O4_Mini_2025_04_16Options, type O4_Mini_2025_04_16OptionsType, O4_Mini_2025_04_16Schema, OpenAI, OpenAIChatModelConfigs, OpenAIChatModelModalities, OpenAIChatModelModalitiesEnum, OpenAIChatModelRoles, OpenAIChatModelRolesMap, OpenAIChatModelTextModalities, OpenAIChatModelTextModalitiesEnum, OpenAIChatModelTextToolModalities, OpenAIChatModelTextToolModalitiesEnum, 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, reasoningEffort, seed, stop, temperature, toolChoice, topLogProbs, topP, verbosity };
|
|
8757
|
+
export { BaseChatModel, BaseChatModelOptions, type BaseChatModelOptionsType, BaseChatModelResponsesApi, BaseChatModelResponsesApiOptions, type BaseChatModelResponsesApiOptionsType, BaseEmbeddingModel, BaseEmbeddingModelOptions, type BaseEmbeddingModelOptionsType, ChatGPT_4o_Latest, ChatGPT_4o_LatestLiteral, ChatGPT_4o_LatestOptions, type ChatGPT_4o_LatestOptionsType, ChatGPT_4o_LatestSchema, ChatGPT_5_2, ChatGPT_5_2Literal, ChatGPT_5_2Options, type ChatGPT_5_2OptionsType, ChatGPT_5_2Schema, ChatModelBaseConfigDef, ChatModelBaseConfigSchema, ChatModelGPT5ConfigDef, ChatModelGPT5ConfigSchema, ChatModelO1SeriesConfigDef, ChatModelO1SeriesConfigSchema, 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_1, GPT_4_1106_Preview, GPT_4_1106_PreviewLiteral, GPT_4_1106_PreviewOptions, type GPT_4_1106_PreviewOptionsType, GPT_4_1106_PreviewSchema, GPT_4_1Literal, GPT_4_1Options, type GPT_4_1OptionsType, GPT_4_1Schema, GPT_4_1_Mini, GPT_4_1_MiniLiteral, GPT_4_1_MiniOptions, type GPT_4_1_MiniOptionsType, GPT_4_1_MiniSchema, GPT_4_1_Nano, GPT_4_1_NanoLiteral, GPT_4_1_NanoOptions, type GPT_4_1_NanoOptionsType, GPT_4_1_NanoSchema, 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, GPT_5, GPT_5Literal, GPT_5Options, type GPT_5OptionsType, GPT_5Schema, GPT_5_1, GPT_5_1Literal, GPT_5_1Options, type GPT_5_1OptionsType, GPT_5_1Schema, GPT_5_2, GPT_5_2Literal, GPT_5_2Options, type GPT_5_2OptionsType, GPT_5_2Schema, GPT_5_2_ChatLatest, GPT_5_2_ChatLatestLiteral, GPT_5_2_ChatLatestOptions, type GPT_5_2_ChatLatestOptionsType, GPT_5_2_ChatLatestSchema, GPT_5_2_Codex, GPT_5_2_CodexLiteral, GPT_5_2_CodexOptions, type GPT_5_2_CodexOptionsType, GPT_5_2_CodexSchema, GPT_5_2_Pro, GPT_5_2_ProLiteral, GPT_5_2_ProOptions, type GPT_5_2_ProOptionsType, GPT_5_2_ProSchema, GPT_5_3_Codex, GPT_5_3_CodexLiteral, GPT_5_3_CodexOptions, type GPT_5_3_CodexOptionsType, GPT_5_3_CodexSchema, GPT_5_ChatLatest, GPT_5_ChatLatestLiteral, GPT_5_ChatLatestOptions, type GPT_5_ChatLatestOptionsType, GPT_5_ChatLatestSchema, GPT_5_Mini, GPT_5_MiniLiteral, GPT_5_MiniOptions, type GPT_5_MiniOptionsType, GPT_5_MiniSchema, GPT_5_Nano, GPT_5_NanoLiteral, GPT_5_NanoOptions, type GPT_5_NanoOptionsType, GPT_5_NanoSchema, 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, O3, O3Literal, O3Mini, O3Mini2025_01_31, O3Mini2025_01_31Literal, O3Mini2025_01_31Options, type O3Mini2025_01_31OptionsType, O3Mini2025_01_31Schema, O3MiniLiteral, O3MiniOptions, type O3MiniOptionsType, O3MiniSchema, O3Options, type O3OptionsType, O3Schema, O3_2025_04_16, O3_2025_04_16Literal, O3_2025_04_16Options, type O3_2025_04_16OptionsType, O3_2025_04_16Schema, O4_Mini, O4_MiniLiteral, O4_MiniOptions, type O4_MiniOptionsType, O4_MiniSchema, O4_Mini_2025_04_16, O4_Mini_2025_04_16Literal, O4_Mini_2025_04_16Options, type O4_Mini_2025_04_16OptionsType, O4_Mini_2025_04_16Schema, OpenAI, OpenAIChatModelConfigs, OpenAIChatModelModalities, OpenAIChatModelModalitiesEnum, OpenAIChatModelRoles, OpenAIChatModelRolesMap, OpenAIChatModelTextModalities, OpenAIChatModelTextModalitiesEnum, OpenAIChatModelTextToolModalities, OpenAIChatModelTextToolModalitiesEnum, 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, reasoningEffort, seed, stop, temperature, toolChoice, topLogProbs, topP, verbosity };
|