@adaline/openai 0.13.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +199 -57
- package/dist/index.d.ts +199 -57
- package/dist/index.js +131 -123
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -1558,7 +1558,7 @@ declare const OpenAICompleteChatResponse: z.ZodObject<{
|
|
|
1558
1558
|
}[] | undefined;
|
|
1559
1559
|
}>;
|
|
1560
1560
|
logprobs: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1561
|
-
content: z.ZodNullable<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
|
1561
|
+
content: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
|
1562
1562
|
token: z.ZodString;
|
|
1563
1563
|
logprob: z.ZodNumber;
|
|
1564
1564
|
bytes: z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>;
|
|
@@ -1594,8 +1594,8 @@ declare const OpenAICompleteChatResponse: z.ZodObject<{
|
|
|
1594
1594
|
token: string;
|
|
1595
1595
|
logprob: number;
|
|
1596
1596
|
bytes: number[] | null;
|
|
1597
|
-
}>, "many"
|
|
1598
|
-
refusal: z.ZodNullable<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
|
1597
|
+
}>, "many">>>;
|
|
1598
|
+
refusal: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
|
1599
1599
|
token: z.ZodString;
|
|
1600
1600
|
logprob: z.ZodNumber;
|
|
1601
1601
|
bytes: z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>;
|
|
@@ -1631,9 +1631,9 @@ declare const OpenAICompleteChatResponse: z.ZodObject<{
|
|
|
1631
1631
|
token: string;
|
|
1632
1632
|
logprob: number;
|
|
1633
1633
|
bytes: number[] | null;
|
|
1634
|
-
}>, "many"
|
|
1634
|
+
}>, "many">>>;
|
|
1635
1635
|
}, "strip", z.ZodTypeAny, {
|
|
1636
|
-
content
|
|
1636
|
+
content?: {
|
|
1637
1637
|
top_logprobs: {
|
|
1638
1638
|
token: string;
|
|
1639
1639
|
logprob: number;
|
|
@@ -1642,8 +1642,8 @@ declare const OpenAICompleteChatResponse: z.ZodObject<{
|
|
|
1642
1642
|
token: string;
|
|
1643
1643
|
logprob: number;
|
|
1644
1644
|
bytes: number[] | null;
|
|
1645
|
-
}[] | null;
|
|
1646
|
-
refusal
|
|
1645
|
+
}[] | null | undefined;
|
|
1646
|
+
refusal?: {
|
|
1647
1647
|
top_logprobs: {
|
|
1648
1648
|
token: string;
|
|
1649
1649
|
logprob: number;
|
|
@@ -1652,9 +1652,9 @@ declare const OpenAICompleteChatResponse: z.ZodObject<{
|
|
|
1652
1652
|
token: string;
|
|
1653
1653
|
logprob: number;
|
|
1654
1654
|
bytes: number[] | null;
|
|
1655
|
-
}[] | null;
|
|
1655
|
+
}[] | null | undefined;
|
|
1656
1656
|
}, {
|
|
1657
|
-
content
|
|
1657
|
+
content?: {
|
|
1658
1658
|
top_logprobs: {
|
|
1659
1659
|
token: string;
|
|
1660
1660
|
logprob: number;
|
|
@@ -1663,8 +1663,8 @@ declare const OpenAICompleteChatResponse: z.ZodObject<{
|
|
|
1663
1663
|
token: string;
|
|
1664
1664
|
logprob: number;
|
|
1665
1665
|
bytes: number[] | null;
|
|
1666
|
-
}[] | null;
|
|
1667
|
-
refusal
|
|
1666
|
+
}[] | null | undefined;
|
|
1667
|
+
refusal?: {
|
|
1668
1668
|
top_logprobs: {
|
|
1669
1669
|
token: string;
|
|
1670
1670
|
logprob: number;
|
|
@@ -1673,7 +1673,7 @@ declare const OpenAICompleteChatResponse: z.ZodObject<{
|
|
|
1673
1673
|
token: string;
|
|
1674
1674
|
logprob: number;
|
|
1675
1675
|
bytes: number[] | null;
|
|
1676
|
-
}[] | null;
|
|
1676
|
+
}[] | null | undefined;
|
|
1677
1677
|
}>>>;
|
|
1678
1678
|
finish_reason: z.ZodString;
|
|
1679
1679
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1693,7 +1693,7 @@ declare const OpenAICompleteChatResponse: z.ZodObject<{
|
|
|
1693
1693
|
index: number;
|
|
1694
1694
|
finish_reason: string;
|
|
1695
1695
|
logprobs?: {
|
|
1696
|
-
content
|
|
1696
|
+
content?: {
|
|
1697
1697
|
top_logprobs: {
|
|
1698
1698
|
token: string;
|
|
1699
1699
|
logprob: number;
|
|
@@ -1702,8 +1702,8 @@ declare const OpenAICompleteChatResponse: z.ZodObject<{
|
|
|
1702
1702
|
token: string;
|
|
1703
1703
|
logprob: number;
|
|
1704
1704
|
bytes: number[] | null;
|
|
1705
|
-
}[] | null;
|
|
1706
|
-
refusal
|
|
1705
|
+
}[] | null | undefined;
|
|
1706
|
+
refusal?: {
|
|
1707
1707
|
top_logprobs: {
|
|
1708
1708
|
token: string;
|
|
1709
1709
|
logprob: number;
|
|
@@ -1712,7 +1712,7 @@ declare const OpenAICompleteChatResponse: z.ZodObject<{
|
|
|
1712
1712
|
token: string;
|
|
1713
1713
|
logprob: number;
|
|
1714
1714
|
bytes: number[] | null;
|
|
1715
|
-
}[] | null;
|
|
1715
|
+
}[] | null | undefined;
|
|
1716
1716
|
} | null | undefined;
|
|
1717
1717
|
}, {
|
|
1718
1718
|
message: {
|
|
@@ -1731,7 +1731,7 @@ declare const OpenAICompleteChatResponse: z.ZodObject<{
|
|
|
1731
1731
|
index: number;
|
|
1732
1732
|
finish_reason: string;
|
|
1733
1733
|
logprobs?: {
|
|
1734
|
-
content
|
|
1734
|
+
content?: {
|
|
1735
1735
|
top_logprobs: {
|
|
1736
1736
|
token: string;
|
|
1737
1737
|
logprob: number;
|
|
@@ -1740,8 +1740,8 @@ declare const OpenAICompleteChatResponse: z.ZodObject<{
|
|
|
1740
1740
|
token: string;
|
|
1741
1741
|
logprob: number;
|
|
1742
1742
|
bytes: number[] | null;
|
|
1743
|
-
}[] | null;
|
|
1744
|
-
refusal
|
|
1743
|
+
}[] | null | undefined;
|
|
1744
|
+
refusal?: {
|
|
1745
1745
|
top_logprobs: {
|
|
1746
1746
|
token: string;
|
|
1747
1747
|
logprob: number;
|
|
@@ -1750,7 +1750,7 @@ declare const OpenAICompleteChatResponse: z.ZodObject<{
|
|
|
1750
1750
|
token: string;
|
|
1751
1751
|
logprob: number;
|
|
1752
1752
|
bytes: number[] | null;
|
|
1753
|
-
}[] | null;
|
|
1753
|
+
}[] | null | undefined;
|
|
1754
1754
|
} | null | undefined;
|
|
1755
1755
|
}>, "many">;
|
|
1756
1756
|
usage: z.ZodObject<{
|
|
@@ -1785,7 +1785,7 @@ declare const OpenAICompleteChatResponse: z.ZodObject<{
|
|
|
1785
1785
|
index: number;
|
|
1786
1786
|
finish_reason: string;
|
|
1787
1787
|
logprobs?: {
|
|
1788
|
-
content
|
|
1788
|
+
content?: {
|
|
1789
1789
|
top_logprobs: {
|
|
1790
1790
|
token: string;
|
|
1791
1791
|
logprob: number;
|
|
@@ -1794,8 +1794,8 @@ declare const OpenAICompleteChatResponse: z.ZodObject<{
|
|
|
1794
1794
|
token: string;
|
|
1795
1795
|
logprob: number;
|
|
1796
1796
|
bytes: number[] | null;
|
|
1797
|
-
}[] | null;
|
|
1798
|
-
refusal
|
|
1797
|
+
}[] | null | undefined;
|
|
1798
|
+
refusal?: {
|
|
1799
1799
|
top_logprobs: {
|
|
1800
1800
|
token: string;
|
|
1801
1801
|
logprob: number;
|
|
@@ -1804,7 +1804,7 @@ declare const OpenAICompleteChatResponse: z.ZodObject<{
|
|
|
1804
1804
|
token: string;
|
|
1805
1805
|
logprob: number;
|
|
1806
1806
|
bytes: number[] | null;
|
|
1807
|
-
}[] | null;
|
|
1807
|
+
}[] | null | undefined;
|
|
1808
1808
|
} | null | undefined;
|
|
1809
1809
|
}[];
|
|
1810
1810
|
id: string;
|
|
@@ -1835,7 +1835,7 @@ declare const OpenAICompleteChatResponse: z.ZodObject<{
|
|
|
1835
1835
|
index: number;
|
|
1836
1836
|
finish_reason: string;
|
|
1837
1837
|
logprobs?: {
|
|
1838
|
-
content
|
|
1838
|
+
content?: {
|
|
1839
1839
|
top_logprobs: {
|
|
1840
1840
|
token: string;
|
|
1841
1841
|
logprob: number;
|
|
@@ -1844,8 +1844,8 @@ declare const OpenAICompleteChatResponse: z.ZodObject<{
|
|
|
1844
1844
|
token: string;
|
|
1845
1845
|
logprob: number;
|
|
1846
1846
|
bytes: number[] | null;
|
|
1847
|
-
}[] | null;
|
|
1848
|
-
refusal
|
|
1847
|
+
}[] | null | undefined;
|
|
1848
|
+
refusal?: {
|
|
1849
1849
|
top_logprobs: {
|
|
1850
1850
|
token: string;
|
|
1851
1851
|
logprob: number;
|
|
@@ -1854,7 +1854,7 @@ declare const OpenAICompleteChatResponse: z.ZodObject<{
|
|
|
1854
1854
|
token: string;
|
|
1855
1855
|
logprob: number;
|
|
1856
1856
|
bytes: number[] | null;
|
|
1857
|
-
}[] | null;
|
|
1857
|
+
}[] | null | undefined;
|
|
1858
1858
|
} | null | undefined;
|
|
1859
1859
|
}[];
|
|
1860
1860
|
id: string;
|
|
@@ -1967,7 +1967,7 @@ declare const OpenAIStreamChatResponse: z.ZodObject<{
|
|
|
1967
1967
|
}[] | undefined;
|
|
1968
1968
|
}>, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>]>;
|
|
1969
1969
|
logprobs: z.ZodNullable<z.ZodObject<{
|
|
1970
|
-
content: z.ZodNullable<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
|
1970
|
+
content: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
|
1971
1971
|
token: z.ZodString;
|
|
1972
1972
|
logprob: z.ZodNumber;
|
|
1973
1973
|
bytes: z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>;
|
|
@@ -2003,8 +2003,8 @@ declare const OpenAIStreamChatResponse: z.ZodObject<{
|
|
|
2003
2003
|
token: string;
|
|
2004
2004
|
logprob: number;
|
|
2005
2005
|
bytes: number[] | null;
|
|
2006
|
-
}>, "many"
|
|
2007
|
-
refusal: z.ZodNullable<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
|
2006
|
+
}>, "many">>>;
|
|
2007
|
+
refusal: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
|
2008
2008
|
token: z.ZodString;
|
|
2009
2009
|
logprob: z.ZodNumber;
|
|
2010
2010
|
bytes: z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>;
|
|
@@ -2040,9 +2040,9 @@ declare const OpenAIStreamChatResponse: z.ZodObject<{
|
|
|
2040
2040
|
token: string;
|
|
2041
2041
|
logprob: number;
|
|
2042
2042
|
bytes: number[] | null;
|
|
2043
|
-
}>, "many"
|
|
2043
|
+
}>, "many">>>;
|
|
2044
2044
|
}, "strip", z.ZodTypeAny, {
|
|
2045
|
-
content
|
|
2045
|
+
content?: {
|
|
2046
2046
|
top_logprobs: {
|
|
2047
2047
|
token: string;
|
|
2048
2048
|
logprob: number;
|
|
@@ -2051,8 +2051,8 @@ declare const OpenAIStreamChatResponse: z.ZodObject<{
|
|
|
2051
2051
|
token: string;
|
|
2052
2052
|
logprob: number;
|
|
2053
2053
|
bytes: number[] | null;
|
|
2054
|
-
}[] | null;
|
|
2055
|
-
refusal
|
|
2054
|
+
}[] | null | undefined;
|
|
2055
|
+
refusal?: {
|
|
2056
2056
|
top_logprobs: {
|
|
2057
2057
|
token: string;
|
|
2058
2058
|
logprob: number;
|
|
@@ -2061,9 +2061,9 @@ declare const OpenAIStreamChatResponse: z.ZodObject<{
|
|
|
2061
2061
|
token: string;
|
|
2062
2062
|
logprob: number;
|
|
2063
2063
|
bytes: number[] | null;
|
|
2064
|
-
}[] | null;
|
|
2064
|
+
}[] | null | undefined;
|
|
2065
2065
|
}, {
|
|
2066
|
-
content
|
|
2066
|
+
content?: {
|
|
2067
2067
|
top_logprobs: {
|
|
2068
2068
|
token: string;
|
|
2069
2069
|
logprob: number;
|
|
@@ -2072,8 +2072,8 @@ declare const OpenAIStreamChatResponse: z.ZodObject<{
|
|
|
2072
2072
|
token: string;
|
|
2073
2073
|
logprob: number;
|
|
2074
2074
|
bytes: number[] | null;
|
|
2075
|
-
}[] | null;
|
|
2076
|
-
refusal
|
|
2075
|
+
}[] | null | undefined;
|
|
2076
|
+
refusal?: {
|
|
2077
2077
|
top_logprobs: {
|
|
2078
2078
|
token: string;
|
|
2079
2079
|
logprob: number;
|
|
@@ -2082,12 +2082,12 @@ declare const OpenAIStreamChatResponse: z.ZodObject<{
|
|
|
2082
2082
|
token: string;
|
|
2083
2083
|
logprob: number;
|
|
2084
2084
|
bytes: number[] | null;
|
|
2085
|
-
}[] | null;
|
|
2085
|
+
}[] | null | undefined;
|
|
2086
2086
|
}>>;
|
|
2087
2087
|
finish_reason: z.ZodNullable<z.ZodString>;
|
|
2088
2088
|
}, "strip", z.ZodTypeAny, {
|
|
2089
2089
|
logprobs: {
|
|
2090
|
-
content
|
|
2090
|
+
content?: {
|
|
2091
2091
|
top_logprobs: {
|
|
2092
2092
|
token: string;
|
|
2093
2093
|
logprob: number;
|
|
@@ -2096,8 +2096,8 @@ declare const OpenAIStreamChatResponse: z.ZodObject<{
|
|
|
2096
2096
|
token: string;
|
|
2097
2097
|
logprob: number;
|
|
2098
2098
|
bytes: number[] | null;
|
|
2099
|
-
}[] | null;
|
|
2100
|
-
refusal
|
|
2099
|
+
}[] | null | undefined;
|
|
2100
|
+
refusal?: {
|
|
2101
2101
|
top_logprobs: {
|
|
2102
2102
|
token: string;
|
|
2103
2103
|
logprob: number;
|
|
@@ -2106,7 +2106,7 @@ declare const OpenAIStreamChatResponse: z.ZodObject<{
|
|
|
2106
2106
|
token: string;
|
|
2107
2107
|
logprob: number;
|
|
2108
2108
|
bytes: number[] | null;
|
|
2109
|
-
}[] | null;
|
|
2109
|
+
}[] | null | undefined;
|
|
2110
2110
|
} | null;
|
|
2111
2111
|
index: number;
|
|
2112
2112
|
finish_reason: string | null;
|
|
@@ -2125,7 +2125,7 @@ declare const OpenAIStreamChatResponse: z.ZodObject<{
|
|
|
2125
2125
|
} | {};
|
|
2126
2126
|
}, {
|
|
2127
2127
|
logprobs: {
|
|
2128
|
-
content
|
|
2128
|
+
content?: {
|
|
2129
2129
|
top_logprobs: {
|
|
2130
2130
|
token: string;
|
|
2131
2131
|
logprob: number;
|
|
@@ -2134,8 +2134,8 @@ declare const OpenAIStreamChatResponse: z.ZodObject<{
|
|
|
2134
2134
|
token: string;
|
|
2135
2135
|
logprob: number;
|
|
2136
2136
|
bytes: number[] | null;
|
|
2137
|
-
}[] | null;
|
|
2138
|
-
refusal
|
|
2137
|
+
}[] | null | undefined;
|
|
2138
|
+
refusal?: {
|
|
2139
2139
|
top_logprobs: {
|
|
2140
2140
|
token: string;
|
|
2141
2141
|
logprob: number;
|
|
@@ -2144,7 +2144,7 @@ declare const OpenAIStreamChatResponse: z.ZodObject<{
|
|
|
2144
2144
|
token: string;
|
|
2145
2145
|
logprob: number;
|
|
2146
2146
|
bytes: number[] | null;
|
|
2147
|
-
}[] | null;
|
|
2147
|
+
}[] | null | undefined;
|
|
2148
2148
|
} | null;
|
|
2149
2149
|
index: number;
|
|
2150
2150
|
finish_reason: string | null;
|
|
@@ -2179,7 +2179,7 @@ declare const OpenAIStreamChatResponse: z.ZodObject<{
|
|
|
2179
2179
|
object: string;
|
|
2180
2180
|
choices: {
|
|
2181
2181
|
logprobs: {
|
|
2182
|
-
content
|
|
2182
|
+
content?: {
|
|
2183
2183
|
top_logprobs: {
|
|
2184
2184
|
token: string;
|
|
2185
2185
|
logprob: number;
|
|
@@ -2188,8 +2188,8 @@ declare const OpenAIStreamChatResponse: z.ZodObject<{
|
|
|
2188
2188
|
token: string;
|
|
2189
2189
|
logprob: number;
|
|
2190
2190
|
bytes: number[] | null;
|
|
2191
|
-
}[] | null;
|
|
2192
|
-
refusal
|
|
2191
|
+
}[] | null | undefined;
|
|
2192
|
+
refusal?: {
|
|
2193
2193
|
top_logprobs: {
|
|
2194
2194
|
token: string;
|
|
2195
2195
|
logprob: number;
|
|
@@ -2198,7 +2198,7 @@ declare const OpenAIStreamChatResponse: z.ZodObject<{
|
|
|
2198
2198
|
token: string;
|
|
2199
2199
|
logprob: number;
|
|
2200
2200
|
bytes: number[] | null;
|
|
2201
|
-
}[] | null;
|
|
2201
|
+
}[] | null | undefined;
|
|
2202
2202
|
} | null;
|
|
2203
2203
|
index: number;
|
|
2204
2204
|
finish_reason: string | null;
|
|
@@ -2229,7 +2229,7 @@ declare const OpenAIStreamChatResponse: z.ZodObject<{
|
|
|
2229
2229
|
object: string;
|
|
2230
2230
|
choices: {
|
|
2231
2231
|
logprobs: {
|
|
2232
|
-
content
|
|
2232
|
+
content?: {
|
|
2233
2233
|
top_logprobs: {
|
|
2234
2234
|
token: string;
|
|
2235
2235
|
logprob: number;
|
|
@@ -2238,8 +2238,8 @@ declare const OpenAIStreamChatResponse: z.ZodObject<{
|
|
|
2238
2238
|
token: string;
|
|
2239
2239
|
logprob: number;
|
|
2240
2240
|
bytes: number[] | null;
|
|
2241
|
-
}[] | null;
|
|
2242
|
-
refusal
|
|
2241
|
+
}[] | null | undefined;
|
|
2242
|
+
refusal?: {
|
|
2243
2243
|
top_logprobs: {
|
|
2244
2244
|
token: string;
|
|
2245
2245
|
logprob: number;
|
|
@@ -2248,7 +2248,7 @@ declare const OpenAIStreamChatResponse: z.ZodObject<{
|
|
|
2248
2248
|
token: string;
|
|
2249
2249
|
logprob: number;
|
|
2250
2250
|
bytes: number[] | null;
|
|
2251
|
-
}[] | null;
|
|
2251
|
+
}[] | null | undefined;
|
|
2252
2252
|
} | null;
|
|
2253
2253
|
index: number;
|
|
2254
2254
|
finish_reason: string | null;
|
|
@@ -4631,6 +4631,148 @@ declare class GPT_4o extends BaseChatModel {
|
|
|
4631
4631
|
constructor(options: GPT_4oOptionsType);
|
|
4632
4632
|
}
|
|
4633
4633
|
|
|
4634
|
+
declare const GPT_4o_Mini_2024_07_18Literal = "gpt-4o-mini-2024-07-18";
|
|
4635
|
+
declare const GPT_4o_Mini_2024_07_18Schema: {
|
|
4636
|
+
description: string;
|
|
4637
|
+
name: string;
|
|
4638
|
+
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
4639
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
4640
|
+
maxInputTokens: number;
|
|
4641
|
+
maxOutputTokens: number;
|
|
4642
|
+
config: {
|
|
4643
|
+
def: Record<string, {
|
|
4644
|
+
type: "multi-string";
|
|
4645
|
+
param: string;
|
|
4646
|
+
title: string;
|
|
4647
|
+
description: string;
|
|
4648
|
+
max: number;
|
|
4649
|
+
} | {
|
|
4650
|
+
type: "range";
|
|
4651
|
+
param: string;
|
|
4652
|
+
title: string;
|
|
4653
|
+
description: string;
|
|
4654
|
+
max: number;
|
|
4655
|
+
min: number;
|
|
4656
|
+
step: number;
|
|
4657
|
+
default: number;
|
|
4658
|
+
} | {
|
|
4659
|
+
type: "select-string";
|
|
4660
|
+
param: string;
|
|
4661
|
+
title: string;
|
|
4662
|
+
description: string;
|
|
4663
|
+
default: string | null;
|
|
4664
|
+
choices: string[];
|
|
4665
|
+
} | {
|
|
4666
|
+
type: "object-schema";
|
|
4667
|
+
param: string;
|
|
4668
|
+
title: string;
|
|
4669
|
+
description: string;
|
|
4670
|
+
objectSchema?: any;
|
|
4671
|
+
} | {
|
|
4672
|
+
type: "select-boolean";
|
|
4673
|
+
param: string;
|
|
4674
|
+
title: string;
|
|
4675
|
+
description: string;
|
|
4676
|
+
default: boolean | null;
|
|
4677
|
+
}>;
|
|
4678
|
+
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
4679
|
+
};
|
|
4680
|
+
};
|
|
4681
|
+
declare const GPT_4o_Mini_2024_07_18Options: z.ZodObject<{
|
|
4682
|
+
apiKey: z.ZodString;
|
|
4683
|
+
baseUrl: z.ZodString;
|
|
4684
|
+
completeChatUrl: z.ZodOptional<z.ZodString>;
|
|
4685
|
+
streamChatUrl: z.ZodOptional<z.ZodString>;
|
|
4686
|
+
organization: z.ZodOptional<z.ZodString>;
|
|
4687
|
+
}, "strip", z.ZodTypeAny, {
|
|
4688
|
+
apiKey: string;
|
|
4689
|
+
baseUrl: string;
|
|
4690
|
+
completeChatUrl?: string | undefined;
|
|
4691
|
+
streamChatUrl?: string | undefined;
|
|
4692
|
+
organization?: string | undefined;
|
|
4693
|
+
}, {
|
|
4694
|
+
apiKey: string;
|
|
4695
|
+
baseUrl: string;
|
|
4696
|
+
completeChatUrl?: string | undefined;
|
|
4697
|
+
streamChatUrl?: string | undefined;
|
|
4698
|
+
organization?: string | undefined;
|
|
4699
|
+
}>;
|
|
4700
|
+
type GPT_4o_Mini_2024_07_18OptionsType = z.infer<typeof GPT_4o_Mini_2024_07_18Options>;
|
|
4701
|
+
declare class GPT_4o_Mini_2024_07_18 extends BaseChatModel {
|
|
4702
|
+
constructor(options: GPT_4o_Mini_2024_07_18OptionsType);
|
|
4703
|
+
}
|
|
4704
|
+
|
|
4705
|
+
declare const GPT_4o_2024_05_13Literal = "gpt-4o-2024-05-13";
|
|
4706
|
+
declare const GPT_4o_2024_05_13Schema: {
|
|
4707
|
+
description: string;
|
|
4708
|
+
name: string;
|
|
4709
|
+
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
4710
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
|
|
4711
|
+
maxInputTokens: number;
|
|
4712
|
+
maxOutputTokens: number;
|
|
4713
|
+
config: {
|
|
4714
|
+
def: Record<string, {
|
|
4715
|
+
type: "multi-string";
|
|
4716
|
+
param: string;
|
|
4717
|
+
title: string;
|
|
4718
|
+
description: string;
|
|
4719
|
+
max: number;
|
|
4720
|
+
} | {
|
|
4721
|
+
type: "range";
|
|
4722
|
+
param: string;
|
|
4723
|
+
title: string;
|
|
4724
|
+
description: string;
|
|
4725
|
+
max: number;
|
|
4726
|
+
min: number;
|
|
4727
|
+
step: number;
|
|
4728
|
+
default: number;
|
|
4729
|
+
} | {
|
|
4730
|
+
type: "select-string";
|
|
4731
|
+
param: string;
|
|
4732
|
+
title: string;
|
|
4733
|
+
description: string;
|
|
4734
|
+
default: string | null;
|
|
4735
|
+
choices: string[];
|
|
4736
|
+
} | {
|
|
4737
|
+
type: "object-schema";
|
|
4738
|
+
param: string;
|
|
4739
|
+
title: string;
|
|
4740
|
+
description: string;
|
|
4741
|
+
objectSchema?: any;
|
|
4742
|
+
} | {
|
|
4743
|
+
type: "select-boolean";
|
|
4744
|
+
param: string;
|
|
4745
|
+
title: string;
|
|
4746
|
+
description: string;
|
|
4747
|
+
default: boolean | null;
|
|
4748
|
+
}>;
|
|
4749
|
+
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
4750
|
+
};
|
|
4751
|
+
};
|
|
4752
|
+
declare const GPT_4o_2024_05_13Options: z.ZodObject<{
|
|
4753
|
+
apiKey: z.ZodString;
|
|
4754
|
+
baseUrl: z.ZodString;
|
|
4755
|
+
completeChatUrl: z.ZodOptional<z.ZodString>;
|
|
4756
|
+
streamChatUrl: z.ZodOptional<z.ZodString>;
|
|
4757
|
+
organization: z.ZodOptional<z.ZodString>;
|
|
4758
|
+
}, "strip", z.ZodTypeAny, {
|
|
4759
|
+
apiKey: string;
|
|
4760
|
+
baseUrl: string;
|
|
4761
|
+
completeChatUrl?: string | undefined;
|
|
4762
|
+
streamChatUrl?: string | undefined;
|
|
4763
|
+
organization?: string | undefined;
|
|
4764
|
+
}, {
|
|
4765
|
+
apiKey: string;
|
|
4766
|
+
baseUrl: string;
|
|
4767
|
+
completeChatUrl?: string | undefined;
|
|
4768
|
+
streamChatUrl?: string | undefined;
|
|
4769
|
+
organization?: string | undefined;
|
|
4770
|
+
}>;
|
|
4771
|
+
type GPT_4o_2024_05_13OptionsType = z.infer<typeof GPT_4o_2024_05_13Options>;
|
|
4772
|
+
declare class GPT_4o_2024_05_13 extends BaseChatModel {
|
|
4773
|
+
constructor(options: GPT_4o_2024_05_13OptionsType);
|
|
4774
|
+
}
|
|
4775
|
+
|
|
4634
4776
|
declare const O1_MiniLiteral = "o1-mini";
|
|
4635
4777
|
declare const O1_MiniSchema: {
|
|
4636
4778
|
description: string;
|
|
@@ -5099,4 +5241,4 @@ declare class OpenAI<O extends Record<string, any> = Record<string, any>> implem
|
|
|
5099
5241
|
embeddingModelSchemas(): Record<string, EmbeddingModelSchemaType>;
|
|
5100
5242
|
}
|
|
5101
5243
|
|
|
5102
|
-
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_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, 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 };
|
|
5244
|
+
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 };
|