@superatomai/sdk-node 0.0.47-mds → 0.0.48-mds
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.js +12 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -14612,6 +14612,12 @@ function getApiKeyAndModel(anthropicApiKey, groqApiKey, geminiApiKey, openaiApiK
|
|
|
14612
14612
|
}
|
|
14613
14613
|
}
|
|
14614
14614
|
}
|
|
14615
|
+
if (!apiKey && process.env.OPENROUTER_API_KEY) {
|
|
14616
|
+
apiKey = process.env.OPENROUTER_API_KEY;
|
|
14617
|
+
if (!model || !model.startsWith("anthropic/")) {
|
|
14618
|
+
model = DEFAULT_DASH_COMP_MODELS.anthropic;
|
|
14619
|
+
}
|
|
14620
|
+
}
|
|
14615
14621
|
return { apiKey, model };
|
|
14616
14622
|
}
|
|
14617
14623
|
function formatComponentsForPrompt(components) {
|
|
@@ -15685,6 +15691,12 @@ function getApiKeyAndModel2(anthropicApiKey, groqApiKey, geminiApiKey, openaiApi
|
|
|
15685
15691
|
}
|
|
15686
15692
|
}
|
|
15687
15693
|
}
|
|
15694
|
+
if (!apiKey && process.env.OPENROUTER_API_KEY) {
|
|
15695
|
+
apiKey = process.env.OPENROUTER_API_KEY;
|
|
15696
|
+
if (!model || !model.startsWith("anthropic/")) {
|
|
15697
|
+
model = DEFAULT_REPORT_COMP_MODELS.anthropic;
|
|
15698
|
+
}
|
|
15699
|
+
}
|
|
15688
15700
|
return { apiKey, model };
|
|
15689
15701
|
}
|
|
15690
15702
|
function formatComponentsForPrompt2(components) {
|