orquesta-cli 0.1.15 → 0.1.16
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/cli.js
CHANGED
|
File without changes
|
|
@@ -973,13 +973,17 @@ export class LLMClient {
|
|
|
973
973
|
const axiosError = error;
|
|
974
974
|
if (axiosError.response) {
|
|
975
975
|
const status = axiosError.response.status;
|
|
976
|
-
const
|
|
976
|
+
const rawData = axiosError.response.data;
|
|
977
|
+
const data = Array.isArray(rawData) ? rawData[0] : rawData;
|
|
977
978
|
const message = data?.error?.message || axiosError.message;
|
|
978
|
-
if (status === 401) {
|
|
979
|
+
if (status === 401 || (status === 400 && /api.?key/i.test(message))) {
|
|
979
980
|
return { success: false, latency, error: 'Invalid API key.' };
|
|
980
981
|
}
|
|
981
982
|
else if (status === 404) {
|
|
982
|
-
return { success: false, latency, error: '
|
|
983
|
+
return { success: false, latency, error: 'Model not found. Check the model ID (e.g. gemini-2.5-flash, not models/gemini-2.5-flash).' };
|
|
984
|
+
}
|
|
985
|
+
else if (status === 429) {
|
|
986
|
+
return { success: false, latency, error: 'Rate limit or quota exceeded. Check your API plan and billing.' };
|
|
983
987
|
}
|
|
984
988
|
else {
|
|
985
989
|
return { success: false, latency, error: `API error (${status}): ${message}` };
|
|
@@ -38,7 +38,7 @@ const PROVIDER_PRESETS = [
|
|
|
38
38
|
icon: '🧠',
|
|
39
39
|
baseUrl: 'https://api.anthropic.com/v1',
|
|
40
40
|
requiresApiKey: true,
|
|
41
|
-
description: 'Claude
|
|
41
|
+
description: 'Claude Sonnet 4, Claude Opus 4',
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
id: 'deepseek',
|
|
@@ -54,7 +54,7 @@ const PROVIDER_PRESETS = [
|
|
|
54
54
|
icon: '💎',
|
|
55
55
|
baseUrl: 'https://generativelanguage.googleapis.com/v1beta/openai',
|
|
56
56
|
requiresApiKey: true,
|
|
57
|
-
description: 'Gemini 2.
|
|
57
|
+
description: 'Gemini 2.5 Flash, Gemini 2.5 Pro, Gemini 2.0 Flash',
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
60
|
id: 'custom',
|