llmist 15.9.0 → 15.11.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.cjs +96 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +96 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1785,9 +1785,25 @@ function resolveRetryConfig(config) {
|
|
|
1785
1785
|
maxRetryAfterMs: config.maxRetryAfterMs ?? DEFAULT_RETRY_CONFIG.maxRetryAfterMs
|
|
1786
1786
|
};
|
|
1787
1787
|
}
|
|
1788
|
+
function getErrorStatusCode(error) {
|
|
1789
|
+
const errAny = error;
|
|
1790
|
+
if (typeof errAny.status === "number") return errAny.status;
|
|
1791
|
+
if (typeof errAny.code === "number") return errAny.code;
|
|
1792
|
+
if (typeof errAny.statusCode === "number") return errAny.statusCode;
|
|
1793
|
+
if (typeof errAny.code === "string" && /^\d{3}$/.test(errAny.code)) {
|
|
1794
|
+
return parseInt(errAny.code, 10);
|
|
1795
|
+
}
|
|
1796
|
+
return void 0;
|
|
1797
|
+
}
|
|
1788
1798
|
function isRetryableError(error) {
|
|
1789
1799
|
const message = error.message.toLowerCase();
|
|
1790
1800
|
const name = error.name;
|
|
1801
|
+
const statusCode = getErrorStatusCode(error);
|
|
1802
|
+
if (statusCode !== void 0) {
|
|
1803
|
+
if (statusCode === 429) return true;
|
|
1804
|
+
if (statusCode >= 500 && statusCode < 600) return true;
|
|
1805
|
+
if (statusCode >= 400 && statusCode < 500) return false;
|
|
1806
|
+
}
|
|
1791
1807
|
if (message.includes("429") || message.includes("rate limit") || message.includes("rate_limit")) {
|
|
1792
1808
|
return true;
|
|
1793
1809
|
}
|
|
@@ -7972,22 +7988,24 @@ var init_openrouter_models = __esm({
|
|
|
7972
7988
|
provider: "openrouter",
|
|
7973
7989
|
modelId: "google/gemini-2.5-flash",
|
|
7974
7990
|
displayName: "Gemini 2.5 Flash (OpenRouter)",
|
|
7975
|
-
contextWindow:
|
|
7976
|
-
maxOutputTokens:
|
|
7991
|
+
contextWindow: 1048576,
|
|
7992
|
+
maxOutputTokens: 65535,
|
|
7977
7993
|
pricing: {
|
|
7978
|
-
input: 0.
|
|
7979
|
-
output:
|
|
7994
|
+
input: 0.3,
|
|
7995
|
+
output: 2.5
|
|
7980
7996
|
},
|
|
7981
|
-
knowledgeCutoff: "2025-
|
|
7997
|
+
knowledgeCutoff: "2025-06",
|
|
7982
7998
|
features: {
|
|
7983
7999
|
streaming: true,
|
|
7984
8000
|
functionCalling: true,
|
|
7985
8001
|
vision: true,
|
|
7986
|
-
reasoning: true
|
|
8002
|
+
reasoning: true,
|
|
8003
|
+
structuredOutputs: true
|
|
7987
8004
|
},
|
|
7988
8005
|
metadata: {
|
|
7989
8006
|
family: "Gemini 2.5",
|
|
7990
|
-
|
|
8007
|
+
releaseDate: "2025-06-17",
|
|
8008
|
+
notes: "Google Gemini 2.5 Flash via OpenRouter. Workhorse model for reasoning, coding, and math."
|
|
7991
8009
|
}
|
|
7992
8010
|
},
|
|
7993
8011
|
{
|
|
@@ -8012,6 +8030,54 @@ var init_openrouter_models = __esm({
|
|
|
8012
8030
|
notes: "Google Gemini 2.5 Pro via OpenRouter."
|
|
8013
8031
|
}
|
|
8014
8032
|
},
|
|
8033
|
+
{
|
|
8034
|
+
provider: "openrouter",
|
|
8035
|
+
modelId: "google/gemini-3-pro-preview",
|
|
8036
|
+
displayName: "Gemini 3 Pro Preview (OpenRouter)",
|
|
8037
|
+
contextWindow: 1048576,
|
|
8038
|
+
maxOutputTokens: 65536,
|
|
8039
|
+
pricing: {
|
|
8040
|
+
input: 2,
|
|
8041
|
+
output: 12
|
|
8042
|
+
},
|
|
8043
|
+
knowledgeCutoff: "2025-11",
|
|
8044
|
+
features: {
|
|
8045
|
+
streaming: true,
|
|
8046
|
+
functionCalling: true,
|
|
8047
|
+
vision: true,
|
|
8048
|
+
reasoning: true,
|
|
8049
|
+
structuredOutputs: true
|
|
8050
|
+
},
|
|
8051
|
+
metadata: {
|
|
8052
|
+
family: "Gemini 3",
|
|
8053
|
+
releaseDate: "2025-11-18",
|
|
8054
|
+
notes: "Gemini 3 Pro Preview via OpenRouter. Flagship frontier model for multimodal reasoning."
|
|
8055
|
+
}
|
|
8056
|
+
},
|
|
8057
|
+
{
|
|
8058
|
+
provider: "openrouter",
|
|
8059
|
+
modelId: "google/gemini-3-flash-preview",
|
|
8060
|
+
displayName: "Gemini 3 Flash Preview (OpenRouter)",
|
|
8061
|
+
contextWindow: 1048576,
|
|
8062
|
+
maxOutputTokens: 65535,
|
|
8063
|
+
pricing: {
|
|
8064
|
+
input: 0.5,
|
|
8065
|
+
output: 3
|
|
8066
|
+
},
|
|
8067
|
+
knowledgeCutoff: "2025-12",
|
|
8068
|
+
features: {
|
|
8069
|
+
streaming: true,
|
|
8070
|
+
functionCalling: true,
|
|
8071
|
+
vision: true,
|
|
8072
|
+
reasoning: true,
|
|
8073
|
+
structuredOutputs: true
|
|
8074
|
+
},
|
|
8075
|
+
metadata: {
|
|
8076
|
+
family: "Gemini 3",
|
|
8077
|
+
releaseDate: "2025-12-17",
|
|
8078
|
+
notes: "Gemini 3 Flash Preview via OpenRouter. High-speed thinking model for agentic workflows."
|
|
8079
|
+
}
|
|
8080
|
+
},
|
|
8015
8081
|
// ============================================================
|
|
8016
8082
|
// Meta Llama Models (via OpenRouter)
|
|
8017
8083
|
// ============================================================
|
|
@@ -8103,6 +8169,29 @@ var init_openrouter_models = __esm({
|
|
|
8103
8169
|
notes: "DeepSeek Chat via OpenRouter. Very cost-effective."
|
|
8104
8170
|
}
|
|
8105
8171
|
},
|
|
8172
|
+
{
|
|
8173
|
+
provider: "openrouter",
|
|
8174
|
+
modelId: "deepseek/deepseek-v3.2",
|
|
8175
|
+
displayName: "DeepSeek V3.2 (OpenRouter)",
|
|
8176
|
+
contextWindow: 163840,
|
|
8177
|
+
maxOutputTokens: 65536,
|
|
8178
|
+
pricing: {
|
|
8179
|
+
input: 0.25,
|
|
8180
|
+
output: 0.38
|
|
8181
|
+
},
|
|
8182
|
+
knowledgeCutoff: "2025-12",
|
|
8183
|
+
features: {
|
|
8184
|
+
streaming: true,
|
|
8185
|
+
functionCalling: true,
|
|
8186
|
+
vision: false,
|
|
8187
|
+
reasoning: true
|
|
8188
|
+
},
|
|
8189
|
+
metadata: {
|
|
8190
|
+
family: "DeepSeek V3.2",
|
|
8191
|
+
releaseDate: "2025-12-01",
|
|
8192
|
+
notes: "DeepSeek V3.2 via OpenRouter. GPT-5 class performance with DeepSeek Sparse Attention."
|
|
8193
|
+
}
|
|
8194
|
+
},
|
|
8106
8195
|
// ============================================================
|
|
8107
8196
|
// Mistral Models (via OpenRouter)
|
|
8108
8197
|
// ============================================================
|