notdiamond 1.1.2 → 1.1.4
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.cjs +36 -18
- package/dist/index.d.cts +19 -9
- package/dist/index.d.mts +19 -9
- package/dist/index.d.ts +19 -9
- package/dist/index.mjs +36 -18
- package/package.json +5 -3
package/dist/index.cjs
CHANGED
|
@@ -28,7 +28,7 @@ function _interopNamespaceCompat(e) {
|
|
|
28
28
|
const dotenv__namespace = /*#__PURE__*/_interopNamespaceCompat(dotenv);
|
|
29
29
|
const axios__default = /*#__PURE__*/_interopDefaultCompat(axios);
|
|
30
30
|
|
|
31
|
-
const version = "1.1.
|
|
31
|
+
const version = "1.1.4";
|
|
32
32
|
const packageJson = {
|
|
33
33
|
version: version};
|
|
34
34
|
|
|
@@ -104,13 +104,13 @@ const SupportedModel = {
|
|
|
104
104
|
GPT_4O_MINI_2024_07_18: "gpt-4o-mini-2024-07-18",
|
|
105
105
|
GPT_4O_MINI: "gpt-4o-mini",
|
|
106
106
|
GPT_4_0125_PREVIEW: "gpt-4-0125-preview",
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
GPT_4_1: "gpt-4.1",
|
|
108
|
+
GPT_4_1_2025_04_14: "gpt-4.1-2025-04-14",
|
|
109
|
+
GPT_4_1_MINI: "gpt-4.1-mini",
|
|
110
|
+
GPT_4_1_MINI_2025_04_14: "gpt-4.1-mini-2025-04-14",
|
|
111
|
+
GPT_4_1_NANO: "gpt-4.1-nano",
|
|
112
|
+
GPT_4_1_NANO_2025_04_14: "gpt-4.1-nano-2025-04-14",
|
|
109
113
|
CHATGPT_4O_LATEST: "chatgpt-4o-latest",
|
|
110
|
-
O1_PREVIEW: "o1-preview",
|
|
111
|
-
O1_PREVIEW_2024_09_12: "o1-preview-2024-09-12",
|
|
112
|
-
O1_MINI: "o1-mini",
|
|
113
|
-
O1_MINI_2024_09_12: "o1-mini-2024-09-12",
|
|
114
114
|
CLAUDE_2_1: "claude-2.1",
|
|
115
115
|
CLAUDE_3_OPUS_20240229: "claude-3-opus-20240229",
|
|
116
116
|
CLAUDE_3_SONNET_20240229: "claude-3-sonnet-20240229",
|
|
@@ -121,6 +121,14 @@ const SupportedModel = {
|
|
|
121
121
|
CLAUDE_3_5_HAIKU_20241022: "claude-3-5-haiku-20241022",
|
|
122
122
|
CLAUDE_3_7_SONNET_LATEST: "claude-3-7-sonnet-latest",
|
|
123
123
|
CLAUDE_3_7_SONNET_20250219: "claude-3-7-sonnet-20250219",
|
|
124
|
+
CLAUDE_OPUS_4_20250514: "claude-opus-4-20250514",
|
|
125
|
+
CLAUDE_SONNET_4_20250514: "claude-sonnet-4-20250514",
|
|
126
|
+
CLAUDE_OPUS_4_0: "claude-opus-4-0",
|
|
127
|
+
CLAUDE_SONNET_4_0: "claude-sonnet-4-0",
|
|
128
|
+
CLAUDE_SONNET_4_5: "claude-sonnet-4-5",
|
|
129
|
+
CLAUDE_SONNET_4_5_20250929: "claude-sonnet-4-5-20250929",
|
|
130
|
+
CLAUDE_HAIKU_4_5: "claude-haiku-4-5",
|
|
131
|
+
CLAUDE_HAIKU_4_5_20251001: "claude-haiku-4-5-20251001",
|
|
124
132
|
GEMINI_PRO: "gemini-pro",
|
|
125
133
|
GEMINI_1_PRO_LATEST: "gemini-1.0-pro-latest",
|
|
126
134
|
GEMINI_15_PRO_LATEST: "gemini-1.5-pro-latest",
|
|
@@ -128,6 +136,8 @@ const SupportedModel = {
|
|
|
128
136
|
GEMINI_15_FLASH_LATEST: "gemini-1.5-flash-latest",
|
|
129
137
|
GEMINI_2_0_FLASH: "gemini-2.0-flash",
|
|
130
138
|
GEMINI_2_0_FLASH_001: "gemini-2.0-flash-001",
|
|
139
|
+
GEMINI_2_5_FLASH: "gemini-2.5-flash",
|
|
140
|
+
GEMINI_2_5_PRO: "gemini-2.5-pro",
|
|
131
141
|
COMMAND_R: "command-r",
|
|
132
142
|
COMMAND_R_PLUS: "command-r-plus",
|
|
133
143
|
MISTRAL_LARGE_LATEST: "mistral-large-latest",
|
|
@@ -168,13 +178,13 @@ const SupportedModel = {
|
|
|
168
178
|
SupportedModel.GPT_4O_MINI_2024_07_18,
|
|
169
179
|
SupportedModel.GPT_4O_MINI,
|
|
170
180
|
SupportedModel.GPT_4_0125_PREVIEW,
|
|
171
|
-
SupportedModel.O1_PREVIEW,
|
|
172
|
-
SupportedModel.O1_PREVIEW_2024_09_12,
|
|
173
|
-
SupportedModel.O1_MINI,
|
|
174
|
-
SupportedModel.O1_MINI_2024_09_12,
|
|
175
181
|
SupportedModel.CHATGPT_4O_LATEST,
|
|
176
|
-
SupportedModel.
|
|
177
|
-
SupportedModel.
|
|
182
|
+
SupportedModel.GPT_4_1,
|
|
183
|
+
SupportedModel.GPT_4_1_2025_04_14,
|
|
184
|
+
SupportedModel.GPT_4_1_MINI,
|
|
185
|
+
SupportedModel.GPT_4_1_MINI_2025_04_14,
|
|
186
|
+
SupportedModel.GPT_4_1_NANO,
|
|
187
|
+
SupportedModel.GPT_4_1_NANO_2025_04_14
|
|
178
188
|
],
|
|
179
189
|
[SupportedProvider.ANTHROPIC]: [
|
|
180
190
|
SupportedModel.CLAUDE_2_1,
|
|
@@ -186,7 +196,15 @@ const SupportedModel = {
|
|
|
186
196
|
SupportedModel.CLAUDE_3_HAIKU_20240307,
|
|
187
197
|
SupportedModel.CLAUDE_3_5_HAIKU_20241022,
|
|
188
198
|
SupportedModel.CLAUDE_3_7_SONNET_LATEST,
|
|
189
|
-
SupportedModel.CLAUDE_3_7_SONNET_20250219
|
|
199
|
+
SupportedModel.CLAUDE_3_7_SONNET_20250219,
|
|
200
|
+
SupportedModel.CLAUDE_OPUS_4_20250514,
|
|
201
|
+
SupportedModel.CLAUDE_SONNET_4_20250514,
|
|
202
|
+
SupportedModel.CLAUDE_OPUS_4_0,
|
|
203
|
+
SupportedModel.CLAUDE_SONNET_4_0,
|
|
204
|
+
SupportedModel.CLAUDE_SONNET_4_5,
|
|
205
|
+
SupportedModel.CLAUDE_SONNET_4_5_20250929,
|
|
206
|
+
SupportedModel.CLAUDE_HAIKU_4_5,
|
|
207
|
+
SupportedModel.CLAUDE_HAIKU_4_5_20251001
|
|
190
208
|
],
|
|
191
209
|
[SupportedProvider.GOOGLE]: [
|
|
192
210
|
SupportedModel.GEMINI_PRO,
|
|
@@ -195,7 +213,9 @@ const SupportedModel = {
|
|
|
195
213
|
SupportedModel.GEMINI_15_PRO_EXP_0801,
|
|
196
214
|
SupportedModel.GEMINI_15_FLASH_LATEST,
|
|
197
215
|
SupportedModel.GEMINI_2_0_FLASH,
|
|
198
|
-
SupportedModel.GEMINI_2_0_FLASH_001
|
|
216
|
+
SupportedModel.GEMINI_2_0_FLASH_001,
|
|
217
|
+
SupportedModel.GEMINI_2_5_FLASH,
|
|
218
|
+
SupportedModel.GEMINI_2_5_PRO
|
|
199
219
|
],
|
|
200
220
|
[SupportedProvider.MISTRAL]: [
|
|
201
221
|
SupportedModel.MISTRAL_LARGE_LATEST,
|
|
@@ -209,9 +229,7 @@ const SupportedModel = {
|
|
|
209
229
|
SupportedModel.OPEN_MIXTRAL_8X22B,
|
|
210
230
|
SupportedModel.OPEN_MISTRAL_NEMO
|
|
211
231
|
],
|
|
212
|
-
[SupportedProvider.PERPLEXITY]: [
|
|
213
|
-
SupportedModel.PERPLEXITY_SONAR
|
|
214
|
-
],
|
|
232
|
+
[SupportedProvider.PERPLEXITY]: [SupportedModel.PERPLEXITY_SONAR],
|
|
215
233
|
[SupportedProvider.COHERE]: [
|
|
216
234
|
SupportedModel.COMMAND_R,
|
|
217
235
|
SupportedModel.COMMAND_R_PLUS
|
package/dist/index.d.cts
CHANGED
|
@@ -24,13 +24,13 @@ declare const SupportedModel: {
|
|
|
24
24
|
readonly GPT_4O_MINI_2024_07_18: "gpt-4o-mini-2024-07-18";
|
|
25
25
|
readonly GPT_4O_MINI: "gpt-4o-mini";
|
|
26
26
|
readonly GPT_4_0125_PREVIEW: "gpt-4-0125-preview";
|
|
27
|
-
readonly
|
|
28
|
-
readonly
|
|
27
|
+
readonly GPT_4_1: "gpt-4.1";
|
|
28
|
+
readonly GPT_4_1_2025_04_14: "gpt-4.1-2025-04-14";
|
|
29
|
+
readonly GPT_4_1_MINI: "gpt-4.1-mini";
|
|
30
|
+
readonly GPT_4_1_MINI_2025_04_14: "gpt-4.1-mini-2025-04-14";
|
|
31
|
+
readonly GPT_4_1_NANO: "gpt-4.1-nano";
|
|
32
|
+
readonly GPT_4_1_NANO_2025_04_14: "gpt-4.1-nano-2025-04-14";
|
|
29
33
|
readonly CHATGPT_4O_LATEST: "chatgpt-4o-latest";
|
|
30
|
-
readonly O1_PREVIEW: "o1-preview";
|
|
31
|
-
readonly O1_PREVIEW_2024_09_12: "o1-preview-2024-09-12";
|
|
32
|
-
readonly O1_MINI: "o1-mini";
|
|
33
|
-
readonly O1_MINI_2024_09_12: "o1-mini-2024-09-12";
|
|
34
34
|
readonly CLAUDE_2_1: "claude-2.1";
|
|
35
35
|
readonly CLAUDE_3_OPUS_20240229: "claude-3-opus-20240229";
|
|
36
36
|
readonly CLAUDE_3_SONNET_20240229: "claude-3-sonnet-20240229";
|
|
@@ -41,6 +41,14 @@ declare const SupportedModel: {
|
|
|
41
41
|
readonly CLAUDE_3_5_HAIKU_20241022: "claude-3-5-haiku-20241022";
|
|
42
42
|
readonly CLAUDE_3_7_SONNET_LATEST: "claude-3-7-sonnet-latest";
|
|
43
43
|
readonly CLAUDE_3_7_SONNET_20250219: "claude-3-7-sonnet-20250219";
|
|
44
|
+
readonly CLAUDE_OPUS_4_20250514: "claude-opus-4-20250514";
|
|
45
|
+
readonly CLAUDE_SONNET_4_20250514: "claude-sonnet-4-20250514";
|
|
46
|
+
readonly CLAUDE_OPUS_4_0: "claude-opus-4-0";
|
|
47
|
+
readonly CLAUDE_SONNET_4_0: "claude-sonnet-4-0";
|
|
48
|
+
readonly CLAUDE_SONNET_4_5: "claude-sonnet-4-5";
|
|
49
|
+
readonly CLAUDE_SONNET_4_5_20250929: "claude-sonnet-4-5-20250929";
|
|
50
|
+
readonly CLAUDE_HAIKU_4_5: "claude-haiku-4-5";
|
|
51
|
+
readonly CLAUDE_HAIKU_4_5_20251001: "claude-haiku-4-5-20251001";
|
|
44
52
|
readonly GEMINI_PRO: "gemini-pro";
|
|
45
53
|
readonly GEMINI_1_PRO_LATEST: "gemini-1.0-pro-latest";
|
|
46
54
|
readonly GEMINI_15_PRO_LATEST: "gemini-1.5-pro-latest";
|
|
@@ -48,6 +56,8 @@ declare const SupportedModel: {
|
|
|
48
56
|
readonly GEMINI_15_FLASH_LATEST: "gemini-1.5-flash-latest";
|
|
49
57
|
readonly GEMINI_2_0_FLASH: "gemini-2.0-flash";
|
|
50
58
|
readonly GEMINI_2_0_FLASH_001: "gemini-2.0-flash-001";
|
|
59
|
+
readonly GEMINI_2_5_FLASH: "gemini-2.5-flash";
|
|
60
|
+
readonly GEMINI_2_5_PRO: "gemini-2.5-pro";
|
|
51
61
|
readonly COMMAND_R: "command-r";
|
|
52
62
|
readonly COMMAND_R_PLUS: "command-r-plus";
|
|
53
63
|
readonly MISTRAL_LARGE_LATEST: "mistral-large-latest";
|
|
@@ -73,9 +83,9 @@ declare const SupportedModel: {
|
|
|
73
83
|
readonly DEEPSEEK_R1: "DeepSeek-R1";
|
|
74
84
|
};
|
|
75
85
|
declare const ProviderModelMap: {
|
|
76
|
-
readonly openai: readonly ["gpt-3.5-turbo", "gpt-3.5-turbo-0125", "gpt-4", "gpt-4-0613", "gpt-4-1106-preview", "gpt-4-turbo", "gpt-4-turbo-preview", "gpt-4-turbo-2024-04-09", "gpt-4o-2024-05-13", "gpt-4o-2024-08-06", "gpt-4o", "gpt-4o-mini-2024-07-18", "gpt-4o-mini", "gpt-4-0125-preview", "
|
|
77
|
-
readonly anthropic: readonly ["claude-2.1", "claude-3-opus-20240229", "claude-3-sonnet-20240229", "claude-3-5-sonnet-20240620", "claude-3-5-sonnet-20241022", "claude-3-5-sonnet-latest", "claude-3-haiku-20240307", "claude-3-5-haiku-20241022", "claude-3-7-sonnet-latest", "claude-3-7-sonnet-20250219"];
|
|
78
|
-
readonly google: readonly ["gemini-pro", "gemini-1.0-pro-latest", "gemini-1.5-pro-latest", "gemini-1.5-pro-exp-0801", "gemini-1.5-flash-latest", "gemini-2.0-flash", "gemini-2.0-flash-001"];
|
|
86
|
+
readonly openai: readonly ["gpt-3.5-turbo", "gpt-3.5-turbo-0125", "gpt-4", "gpt-4-0613", "gpt-4-1106-preview", "gpt-4-turbo", "gpt-4-turbo-preview", "gpt-4-turbo-2024-04-09", "gpt-4o-2024-05-13", "gpt-4o-2024-08-06", "gpt-4o", "gpt-4o-mini-2024-07-18", "gpt-4o-mini", "gpt-4-0125-preview", "chatgpt-4o-latest", "gpt-4.1", "gpt-4.1-2025-04-14", "gpt-4.1-mini", "gpt-4.1-mini-2025-04-14", "gpt-4.1-nano", "gpt-4.1-nano-2025-04-14"];
|
|
87
|
+
readonly anthropic: readonly ["claude-2.1", "claude-3-opus-20240229", "claude-3-sonnet-20240229", "claude-3-5-sonnet-20240620", "claude-3-5-sonnet-20241022", "claude-3-5-sonnet-latest", "claude-3-haiku-20240307", "claude-3-5-haiku-20241022", "claude-3-7-sonnet-latest", "claude-3-7-sonnet-20250219", "claude-opus-4-20250514", "claude-sonnet-4-20250514", "claude-opus-4-0", "claude-sonnet-4-0", "claude-sonnet-4-5", "claude-sonnet-4-5-20250929", "claude-haiku-4-5", "claude-haiku-4-5-20251001"];
|
|
88
|
+
readonly google: readonly ["gemini-pro", "gemini-1.0-pro-latest", "gemini-1.5-pro-latest", "gemini-1.5-pro-exp-0801", "gemini-1.5-flash-latest", "gemini-2.0-flash", "gemini-2.0-flash-001", "gemini-2.5-flash", "gemini-2.5-pro"];
|
|
79
89
|
readonly mistral: readonly ["mistral-large-latest", "mistral-large-2407", "mistral-large-2402", "mistral-medium-latest", "mistral-small-latest", "codestral-latest", "open-mistral-7b", "open-mixtral-8x7b", "open-mixtral-8x22b", "open-mistral-nemo"];
|
|
80
90
|
readonly perplexity: readonly ["sonar"];
|
|
81
91
|
readonly cohere: readonly ["command-r", "command-r-plus"];
|
package/dist/index.d.mts
CHANGED
|
@@ -24,13 +24,13 @@ declare const SupportedModel: {
|
|
|
24
24
|
readonly GPT_4O_MINI_2024_07_18: "gpt-4o-mini-2024-07-18";
|
|
25
25
|
readonly GPT_4O_MINI: "gpt-4o-mini";
|
|
26
26
|
readonly GPT_4_0125_PREVIEW: "gpt-4-0125-preview";
|
|
27
|
-
readonly
|
|
28
|
-
readonly
|
|
27
|
+
readonly GPT_4_1: "gpt-4.1";
|
|
28
|
+
readonly GPT_4_1_2025_04_14: "gpt-4.1-2025-04-14";
|
|
29
|
+
readonly GPT_4_1_MINI: "gpt-4.1-mini";
|
|
30
|
+
readonly GPT_4_1_MINI_2025_04_14: "gpt-4.1-mini-2025-04-14";
|
|
31
|
+
readonly GPT_4_1_NANO: "gpt-4.1-nano";
|
|
32
|
+
readonly GPT_4_1_NANO_2025_04_14: "gpt-4.1-nano-2025-04-14";
|
|
29
33
|
readonly CHATGPT_4O_LATEST: "chatgpt-4o-latest";
|
|
30
|
-
readonly O1_PREVIEW: "o1-preview";
|
|
31
|
-
readonly O1_PREVIEW_2024_09_12: "o1-preview-2024-09-12";
|
|
32
|
-
readonly O1_MINI: "o1-mini";
|
|
33
|
-
readonly O1_MINI_2024_09_12: "o1-mini-2024-09-12";
|
|
34
34
|
readonly CLAUDE_2_1: "claude-2.1";
|
|
35
35
|
readonly CLAUDE_3_OPUS_20240229: "claude-3-opus-20240229";
|
|
36
36
|
readonly CLAUDE_3_SONNET_20240229: "claude-3-sonnet-20240229";
|
|
@@ -41,6 +41,14 @@ declare const SupportedModel: {
|
|
|
41
41
|
readonly CLAUDE_3_5_HAIKU_20241022: "claude-3-5-haiku-20241022";
|
|
42
42
|
readonly CLAUDE_3_7_SONNET_LATEST: "claude-3-7-sonnet-latest";
|
|
43
43
|
readonly CLAUDE_3_7_SONNET_20250219: "claude-3-7-sonnet-20250219";
|
|
44
|
+
readonly CLAUDE_OPUS_4_20250514: "claude-opus-4-20250514";
|
|
45
|
+
readonly CLAUDE_SONNET_4_20250514: "claude-sonnet-4-20250514";
|
|
46
|
+
readonly CLAUDE_OPUS_4_0: "claude-opus-4-0";
|
|
47
|
+
readonly CLAUDE_SONNET_4_0: "claude-sonnet-4-0";
|
|
48
|
+
readonly CLAUDE_SONNET_4_5: "claude-sonnet-4-5";
|
|
49
|
+
readonly CLAUDE_SONNET_4_5_20250929: "claude-sonnet-4-5-20250929";
|
|
50
|
+
readonly CLAUDE_HAIKU_4_5: "claude-haiku-4-5";
|
|
51
|
+
readonly CLAUDE_HAIKU_4_5_20251001: "claude-haiku-4-5-20251001";
|
|
44
52
|
readonly GEMINI_PRO: "gemini-pro";
|
|
45
53
|
readonly GEMINI_1_PRO_LATEST: "gemini-1.0-pro-latest";
|
|
46
54
|
readonly GEMINI_15_PRO_LATEST: "gemini-1.5-pro-latest";
|
|
@@ -48,6 +56,8 @@ declare const SupportedModel: {
|
|
|
48
56
|
readonly GEMINI_15_FLASH_LATEST: "gemini-1.5-flash-latest";
|
|
49
57
|
readonly GEMINI_2_0_FLASH: "gemini-2.0-flash";
|
|
50
58
|
readonly GEMINI_2_0_FLASH_001: "gemini-2.0-flash-001";
|
|
59
|
+
readonly GEMINI_2_5_FLASH: "gemini-2.5-flash";
|
|
60
|
+
readonly GEMINI_2_5_PRO: "gemini-2.5-pro";
|
|
51
61
|
readonly COMMAND_R: "command-r";
|
|
52
62
|
readonly COMMAND_R_PLUS: "command-r-plus";
|
|
53
63
|
readonly MISTRAL_LARGE_LATEST: "mistral-large-latest";
|
|
@@ -73,9 +83,9 @@ declare const SupportedModel: {
|
|
|
73
83
|
readonly DEEPSEEK_R1: "DeepSeek-R1";
|
|
74
84
|
};
|
|
75
85
|
declare const ProviderModelMap: {
|
|
76
|
-
readonly openai: readonly ["gpt-3.5-turbo", "gpt-3.5-turbo-0125", "gpt-4", "gpt-4-0613", "gpt-4-1106-preview", "gpt-4-turbo", "gpt-4-turbo-preview", "gpt-4-turbo-2024-04-09", "gpt-4o-2024-05-13", "gpt-4o-2024-08-06", "gpt-4o", "gpt-4o-mini-2024-07-18", "gpt-4o-mini", "gpt-4-0125-preview", "
|
|
77
|
-
readonly anthropic: readonly ["claude-2.1", "claude-3-opus-20240229", "claude-3-sonnet-20240229", "claude-3-5-sonnet-20240620", "claude-3-5-sonnet-20241022", "claude-3-5-sonnet-latest", "claude-3-haiku-20240307", "claude-3-5-haiku-20241022", "claude-3-7-sonnet-latest", "claude-3-7-sonnet-20250219"];
|
|
78
|
-
readonly google: readonly ["gemini-pro", "gemini-1.0-pro-latest", "gemini-1.5-pro-latest", "gemini-1.5-pro-exp-0801", "gemini-1.5-flash-latest", "gemini-2.0-flash", "gemini-2.0-flash-001"];
|
|
86
|
+
readonly openai: readonly ["gpt-3.5-turbo", "gpt-3.5-turbo-0125", "gpt-4", "gpt-4-0613", "gpt-4-1106-preview", "gpt-4-turbo", "gpt-4-turbo-preview", "gpt-4-turbo-2024-04-09", "gpt-4o-2024-05-13", "gpt-4o-2024-08-06", "gpt-4o", "gpt-4o-mini-2024-07-18", "gpt-4o-mini", "gpt-4-0125-preview", "chatgpt-4o-latest", "gpt-4.1", "gpt-4.1-2025-04-14", "gpt-4.1-mini", "gpt-4.1-mini-2025-04-14", "gpt-4.1-nano", "gpt-4.1-nano-2025-04-14"];
|
|
87
|
+
readonly anthropic: readonly ["claude-2.1", "claude-3-opus-20240229", "claude-3-sonnet-20240229", "claude-3-5-sonnet-20240620", "claude-3-5-sonnet-20241022", "claude-3-5-sonnet-latest", "claude-3-haiku-20240307", "claude-3-5-haiku-20241022", "claude-3-7-sonnet-latest", "claude-3-7-sonnet-20250219", "claude-opus-4-20250514", "claude-sonnet-4-20250514", "claude-opus-4-0", "claude-sonnet-4-0", "claude-sonnet-4-5", "claude-sonnet-4-5-20250929", "claude-haiku-4-5", "claude-haiku-4-5-20251001"];
|
|
88
|
+
readonly google: readonly ["gemini-pro", "gemini-1.0-pro-latest", "gemini-1.5-pro-latest", "gemini-1.5-pro-exp-0801", "gemini-1.5-flash-latest", "gemini-2.0-flash", "gemini-2.0-flash-001", "gemini-2.5-flash", "gemini-2.5-pro"];
|
|
79
89
|
readonly mistral: readonly ["mistral-large-latest", "mistral-large-2407", "mistral-large-2402", "mistral-medium-latest", "mistral-small-latest", "codestral-latest", "open-mistral-7b", "open-mixtral-8x7b", "open-mixtral-8x22b", "open-mistral-nemo"];
|
|
80
90
|
readonly perplexity: readonly ["sonar"];
|
|
81
91
|
readonly cohere: readonly ["command-r", "command-r-plus"];
|
package/dist/index.d.ts
CHANGED
|
@@ -24,13 +24,13 @@ declare const SupportedModel: {
|
|
|
24
24
|
readonly GPT_4O_MINI_2024_07_18: "gpt-4o-mini-2024-07-18";
|
|
25
25
|
readonly GPT_4O_MINI: "gpt-4o-mini";
|
|
26
26
|
readonly GPT_4_0125_PREVIEW: "gpt-4-0125-preview";
|
|
27
|
-
readonly
|
|
28
|
-
readonly
|
|
27
|
+
readonly GPT_4_1: "gpt-4.1";
|
|
28
|
+
readonly GPT_4_1_2025_04_14: "gpt-4.1-2025-04-14";
|
|
29
|
+
readonly GPT_4_1_MINI: "gpt-4.1-mini";
|
|
30
|
+
readonly GPT_4_1_MINI_2025_04_14: "gpt-4.1-mini-2025-04-14";
|
|
31
|
+
readonly GPT_4_1_NANO: "gpt-4.1-nano";
|
|
32
|
+
readonly GPT_4_1_NANO_2025_04_14: "gpt-4.1-nano-2025-04-14";
|
|
29
33
|
readonly CHATGPT_4O_LATEST: "chatgpt-4o-latest";
|
|
30
|
-
readonly O1_PREVIEW: "o1-preview";
|
|
31
|
-
readonly O1_PREVIEW_2024_09_12: "o1-preview-2024-09-12";
|
|
32
|
-
readonly O1_MINI: "o1-mini";
|
|
33
|
-
readonly O1_MINI_2024_09_12: "o1-mini-2024-09-12";
|
|
34
34
|
readonly CLAUDE_2_1: "claude-2.1";
|
|
35
35
|
readonly CLAUDE_3_OPUS_20240229: "claude-3-opus-20240229";
|
|
36
36
|
readonly CLAUDE_3_SONNET_20240229: "claude-3-sonnet-20240229";
|
|
@@ -41,6 +41,14 @@ declare const SupportedModel: {
|
|
|
41
41
|
readonly CLAUDE_3_5_HAIKU_20241022: "claude-3-5-haiku-20241022";
|
|
42
42
|
readonly CLAUDE_3_7_SONNET_LATEST: "claude-3-7-sonnet-latest";
|
|
43
43
|
readonly CLAUDE_3_7_SONNET_20250219: "claude-3-7-sonnet-20250219";
|
|
44
|
+
readonly CLAUDE_OPUS_4_20250514: "claude-opus-4-20250514";
|
|
45
|
+
readonly CLAUDE_SONNET_4_20250514: "claude-sonnet-4-20250514";
|
|
46
|
+
readonly CLAUDE_OPUS_4_0: "claude-opus-4-0";
|
|
47
|
+
readonly CLAUDE_SONNET_4_0: "claude-sonnet-4-0";
|
|
48
|
+
readonly CLAUDE_SONNET_4_5: "claude-sonnet-4-5";
|
|
49
|
+
readonly CLAUDE_SONNET_4_5_20250929: "claude-sonnet-4-5-20250929";
|
|
50
|
+
readonly CLAUDE_HAIKU_4_5: "claude-haiku-4-5";
|
|
51
|
+
readonly CLAUDE_HAIKU_4_5_20251001: "claude-haiku-4-5-20251001";
|
|
44
52
|
readonly GEMINI_PRO: "gemini-pro";
|
|
45
53
|
readonly GEMINI_1_PRO_LATEST: "gemini-1.0-pro-latest";
|
|
46
54
|
readonly GEMINI_15_PRO_LATEST: "gemini-1.5-pro-latest";
|
|
@@ -48,6 +56,8 @@ declare const SupportedModel: {
|
|
|
48
56
|
readonly GEMINI_15_FLASH_LATEST: "gemini-1.5-flash-latest";
|
|
49
57
|
readonly GEMINI_2_0_FLASH: "gemini-2.0-flash";
|
|
50
58
|
readonly GEMINI_2_0_FLASH_001: "gemini-2.0-flash-001";
|
|
59
|
+
readonly GEMINI_2_5_FLASH: "gemini-2.5-flash";
|
|
60
|
+
readonly GEMINI_2_5_PRO: "gemini-2.5-pro";
|
|
51
61
|
readonly COMMAND_R: "command-r";
|
|
52
62
|
readonly COMMAND_R_PLUS: "command-r-plus";
|
|
53
63
|
readonly MISTRAL_LARGE_LATEST: "mistral-large-latest";
|
|
@@ -73,9 +83,9 @@ declare const SupportedModel: {
|
|
|
73
83
|
readonly DEEPSEEK_R1: "DeepSeek-R1";
|
|
74
84
|
};
|
|
75
85
|
declare const ProviderModelMap: {
|
|
76
|
-
readonly openai: readonly ["gpt-3.5-turbo", "gpt-3.5-turbo-0125", "gpt-4", "gpt-4-0613", "gpt-4-1106-preview", "gpt-4-turbo", "gpt-4-turbo-preview", "gpt-4-turbo-2024-04-09", "gpt-4o-2024-05-13", "gpt-4o-2024-08-06", "gpt-4o", "gpt-4o-mini-2024-07-18", "gpt-4o-mini", "gpt-4-0125-preview", "
|
|
77
|
-
readonly anthropic: readonly ["claude-2.1", "claude-3-opus-20240229", "claude-3-sonnet-20240229", "claude-3-5-sonnet-20240620", "claude-3-5-sonnet-20241022", "claude-3-5-sonnet-latest", "claude-3-haiku-20240307", "claude-3-5-haiku-20241022", "claude-3-7-sonnet-latest", "claude-3-7-sonnet-20250219"];
|
|
78
|
-
readonly google: readonly ["gemini-pro", "gemini-1.0-pro-latest", "gemini-1.5-pro-latest", "gemini-1.5-pro-exp-0801", "gemini-1.5-flash-latest", "gemini-2.0-flash", "gemini-2.0-flash-001"];
|
|
86
|
+
readonly openai: readonly ["gpt-3.5-turbo", "gpt-3.5-turbo-0125", "gpt-4", "gpt-4-0613", "gpt-4-1106-preview", "gpt-4-turbo", "gpt-4-turbo-preview", "gpt-4-turbo-2024-04-09", "gpt-4o-2024-05-13", "gpt-4o-2024-08-06", "gpt-4o", "gpt-4o-mini-2024-07-18", "gpt-4o-mini", "gpt-4-0125-preview", "chatgpt-4o-latest", "gpt-4.1", "gpt-4.1-2025-04-14", "gpt-4.1-mini", "gpt-4.1-mini-2025-04-14", "gpt-4.1-nano", "gpt-4.1-nano-2025-04-14"];
|
|
87
|
+
readonly anthropic: readonly ["claude-2.1", "claude-3-opus-20240229", "claude-3-sonnet-20240229", "claude-3-5-sonnet-20240620", "claude-3-5-sonnet-20241022", "claude-3-5-sonnet-latest", "claude-3-haiku-20240307", "claude-3-5-haiku-20241022", "claude-3-7-sonnet-latest", "claude-3-7-sonnet-20250219", "claude-opus-4-20250514", "claude-sonnet-4-20250514", "claude-opus-4-0", "claude-sonnet-4-0", "claude-sonnet-4-5", "claude-sonnet-4-5-20250929", "claude-haiku-4-5", "claude-haiku-4-5-20251001"];
|
|
88
|
+
readonly google: readonly ["gemini-pro", "gemini-1.0-pro-latest", "gemini-1.5-pro-latest", "gemini-1.5-pro-exp-0801", "gemini-1.5-flash-latest", "gemini-2.0-flash", "gemini-2.0-flash-001", "gemini-2.5-flash", "gemini-2.5-pro"];
|
|
79
89
|
readonly mistral: readonly ["mistral-large-latest", "mistral-large-2407", "mistral-large-2402", "mistral-medium-latest", "mistral-small-latest", "codestral-latest", "open-mistral-7b", "open-mixtral-8x7b", "open-mixtral-8x22b", "open-mistral-nemo"];
|
|
80
90
|
readonly perplexity: readonly ["sonar"];
|
|
81
91
|
readonly cohere: readonly ["command-r", "command-r-plus"];
|
package/dist/index.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import axios from 'axios';
|
|
|
9
9
|
import { ChatCohere } from '@langchain/cohere';
|
|
10
10
|
import { ChatTogetherAI } from '@langchain/community/chat_models/togetherai';
|
|
11
11
|
|
|
12
|
-
const version = "1.1.
|
|
12
|
+
const version = "1.1.4";
|
|
13
13
|
const packageJson = {
|
|
14
14
|
version: version};
|
|
15
15
|
|
|
@@ -85,13 +85,13 @@ const SupportedModel = {
|
|
|
85
85
|
GPT_4O_MINI_2024_07_18: "gpt-4o-mini-2024-07-18",
|
|
86
86
|
GPT_4O_MINI: "gpt-4o-mini",
|
|
87
87
|
GPT_4_0125_PREVIEW: "gpt-4-0125-preview",
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
GPT_4_1: "gpt-4.1",
|
|
89
|
+
GPT_4_1_2025_04_14: "gpt-4.1-2025-04-14",
|
|
90
|
+
GPT_4_1_MINI: "gpt-4.1-mini",
|
|
91
|
+
GPT_4_1_MINI_2025_04_14: "gpt-4.1-mini-2025-04-14",
|
|
92
|
+
GPT_4_1_NANO: "gpt-4.1-nano",
|
|
93
|
+
GPT_4_1_NANO_2025_04_14: "gpt-4.1-nano-2025-04-14",
|
|
90
94
|
CHATGPT_4O_LATEST: "chatgpt-4o-latest",
|
|
91
|
-
O1_PREVIEW: "o1-preview",
|
|
92
|
-
O1_PREVIEW_2024_09_12: "o1-preview-2024-09-12",
|
|
93
|
-
O1_MINI: "o1-mini",
|
|
94
|
-
O1_MINI_2024_09_12: "o1-mini-2024-09-12",
|
|
95
95
|
CLAUDE_2_1: "claude-2.1",
|
|
96
96
|
CLAUDE_3_OPUS_20240229: "claude-3-opus-20240229",
|
|
97
97
|
CLAUDE_3_SONNET_20240229: "claude-3-sonnet-20240229",
|
|
@@ -102,6 +102,14 @@ const SupportedModel = {
|
|
|
102
102
|
CLAUDE_3_5_HAIKU_20241022: "claude-3-5-haiku-20241022",
|
|
103
103
|
CLAUDE_3_7_SONNET_LATEST: "claude-3-7-sonnet-latest",
|
|
104
104
|
CLAUDE_3_7_SONNET_20250219: "claude-3-7-sonnet-20250219",
|
|
105
|
+
CLAUDE_OPUS_4_20250514: "claude-opus-4-20250514",
|
|
106
|
+
CLAUDE_SONNET_4_20250514: "claude-sonnet-4-20250514",
|
|
107
|
+
CLAUDE_OPUS_4_0: "claude-opus-4-0",
|
|
108
|
+
CLAUDE_SONNET_4_0: "claude-sonnet-4-0",
|
|
109
|
+
CLAUDE_SONNET_4_5: "claude-sonnet-4-5",
|
|
110
|
+
CLAUDE_SONNET_4_5_20250929: "claude-sonnet-4-5-20250929",
|
|
111
|
+
CLAUDE_HAIKU_4_5: "claude-haiku-4-5",
|
|
112
|
+
CLAUDE_HAIKU_4_5_20251001: "claude-haiku-4-5-20251001",
|
|
105
113
|
GEMINI_PRO: "gemini-pro",
|
|
106
114
|
GEMINI_1_PRO_LATEST: "gemini-1.0-pro-latest",
|
|
107
115
|
GEMINI_15_PRO_LATEST: "gemini-1.5-pro-latest",
|
|
@@ -109,6 +117,8 @@ const SupportedModel = {
|
|
|
109
117
|
GEMINI_15_FLASH_LATEST: "gemini-1.5-flash-latest",
|
|
110
118
|
GEMINI_2_0_FLASH: "gemini-2.0-flash",
|
|
111
119
|
GEMINI_2_0_FLASH_001: "gemini-2.0-flash-001",
|
|
120
|
+
GEMINI_2_5_FLASH: "gemini-2.5-flash",
|
|
121
|
+
GEMINI_2_5_PRO: "gemini-2.5-pro",
|
|
112
122
|
COMMAND_R: "command-r",
|
|
113
123
|
COMMAND_R_PLUS: "command-r-plus",
|
|
114
124
|
MISTRAL_LARGE_LATEST: "mistral-large-latest",
|
|
@@ -149,13 +159,13 @@ const SupportedModel = {
|
|
|
149
159
|
SupportedModel.GPT_4O_MINI_2024_07_18,
|
|
150
160
|
SupportedModel.GPT_4O_MINI,
|
|
151
161
|
SupportedModel.GPT_4_0125_PREVIEW,
|
|
152
|
-
SupportedModel.O1_PREVIEW,
|
|
153
|
-
SupportedModel.O1_PREVIEW_2024_09_12,
|
|
154
|
-
SupportedModel.O1_MINI,
|
|
155
|
-
SupportedModel.O1_MINI_2024_09_12,
|
|
156
162
|
SupportedModel.CHATGPT_4O_LATEST,
|
|
157
|
-
SupportedModel.
|
|
158
|
-
SupportedModel.
|
|
163
|
+
SupportedModel.GPT_4_1,
|
|
164
|
+
SupportedModel.GPT_4_1_2025_04_14,
|
|
165
|
+
SupportedModel.GPT_4_1_MINI,
|
|
166
|
+
SupportedModel.GPT_4_1_MINI_2025_04_14,
|
|
167
|
+
SupportedModel.GPT_4_1_NANO,
|
|
168
|
+
SupportedModel.GPT_4_1_NANO_2025_04_14
|
|
159
169
|
],
|
|
160
170
|
[SupportedProvider.ANTHROPIC]: [
|
|
161
171
|
SupportedModel.CLAUDE_2_1,
|
|
@@ -167,7 +177,15 @@ const SupportedModel = {
|
|
|
167
177
|
SupportedModel.CLAUDE_3_HAIKU_20240307,
|
|
168
178
|
SupportedModel.CLAUDE_3_5_HAIKU_20241022,
|
|
169
179
|
SupportedModel.CLAUDE_3_7_SONNET_LATEST,
|
|
170
|
-
SupportedModel.CLAUDE_3_7_SONNET_20250219
|
|
180
|
+
SupportedModel.CLAUDE_3_7_SONNET_20250219,
|
|
181
|
+
SupportedModel.CLAUDE_OPUS_4_20250514,
|
|
182
|
+
SupportedModel.CLAUDE_SONNET_4_20250514,
|
|
183
|
+
SupportedModel.CLAUDE_OPUS_4_0,
|
|
184
|
+
SupportedModel.CLAUDE_SONNET_4_0,
|
|
185
|
+
SupportedModel.CLAUDE_SONNET_4_5,
|
|
186
|
+
SupportedModel.CLAUDE_SONNET_4_5_20250929,
|
|
187
|
+
SupportedModel.CLAUDE_HAIKU_4_5,
|
|
188
|
+
SupportedModel.CLAUDE_HAIKU_4_5_20251001
|
|
171
189
|
],
|
|
172
190
|
[SupportedProvider.GOOGLE]: [
|
|
173
191
|
SupportedModel.GEMINI_PRO,
|
|
@@ -176,7 +194,9 @@ const SupportedModel = {
|
|
|
176
194
|
SupportedModel.GEMINI_15_PRO_EXP_0801,
|
|
177
195
|
SupportedModel.GEMINI_15_FLASH_LATEST,
|
|
178
196
|
SupportedModel.GEMINI_2_0_FLASH,
|
|
179
|
-
SupportedModel.GEMINI_2_0_FLASH_001
|
|
197
|
+
SupportedModel.GEMINI_2_0_FLASH_001,
|
|
198
|
+
SupportedModel.GEMINI_2_5_FLASH,
|
|
199
|
+
SupportedModel.GEMINI_2_5_PRO
|
|
180
200
|
],
|
|
181
201
|
[SupportedProvider.MISTRAL]: [
|
|
182
202
|
SupportedModel.MISTRAL_LARGE_LATEST,
|
|
@@ -190,9 +210,7 @@ const SupportedModel = {
|
|
|
190
210
|
SupportedModel.OPEN_MIXTRAL_8X22B,
|
|
191
211
|
SupportedModel.OPEN_MISTRAL_NEMO
|
|
192
212
|
],
|
|
193
|
-
[SupportedProvider.PERPLEXITY]: [
|
|
194
|
-
SupportedModel.PERPLEXITY_SONAR
|
|
195
|
-
],
|
|
213
|
+
[SupportedProvider.PERPLEXITY]: [SupportedModel.PERPLEXITY_SONAR],
|
|
196
214
|
[SupportedProvider.COHERE]: [
|
|
197
215
|
SupportedModel.COMMAND_R,
|
|
198
216
|
SupportedModel.COMMAND_R_PLUS
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "notdiamond",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.4",
|
|
5
5
|
"author": "not-diamond",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"description": "TS/JS client for the NotDiamond API",
|
|
@@ -65,11 +65,12 @@
|
|
|
65
65
|
"@langchain/mistralai": "^0.1.1",
|
|
66
66
|
"@langchain/openai": "^0.3.0",
|
|
67
67
|
"ansi-styles": "^6.2.1",
|
|
68
|
-
"axios": "^1.
|
|
68
|
+
"axios": "^1.12.0",
|
|
69
69
|
"camelcase": "^8.0.0",
|
|
70
70
|
"decamelize": "^6.0.0",
|
|
71
71
|
"dotenv": "^16.4.5",
|
|
72
72
|
"eventemitter3": "^5.0.1",
|
|
73
|
+
"form-data": "^4.0.4",
|
|
73
74
|
"langchain": "^0.3.2",
|
|
74
75
|
"langsmith": "^0.1.60",
|
|
75
76
|
"p-finally": "^2.0.1",
|
|
@@ -120,7 +121,8 @@
|
|
|
120
121
|
"@octokit/request": "^9.2.1",
|
|
121
122
|
"@octokit/plugin-paginate-rest": "^11.4.1",
|
|
122
123
|
"@babel/helpers": "^7.26.10",
|
|
123
|
-
"esbuild": "^0.25.0"
|
|
124
|
+
"esbuild": "^0.25.0",
|
|
125
|
+
"form-data": "^4.0.4"
|
|
124
126
|
},
|
|
125
127
|
"engines": {
|
|
126
128
|
"node": ">=20",
|