@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.js
CHANGED
|
@@ -14672,6 +14672,12 @@ function getApiKeyAndModel(anthropicApiKey, groqApiKey, geminiApiKey, openaiApiK
|
|
|
14672
14672
|
}
|
|
14673
14673
|
}
|
|
14674
14674
|
}
|
|
14675
|
+
if (!apiKey && process.env.OPENROUTER_API_KEY) {
|
|
14676
|
+
apiKey = process.env.OPENROUTER_API_KEY;
|
|
14677
|
+
if (!model || !model.startsWith("anthropic/")) {
|
|
14678
|
+
model = DEFAULT_DASH_COMP_MODELS.anthropic;
|
|
14679
|
+
}
|
|
14680
|
+
}
|
|
14675
14681
|
return { apiKey, model };
|
|
14676
14682
|
}
|
|
14677
14683
|
function formatComponentsForPrompt(components) {
|
|
@@ -15745,6 +15751,12 @@ function getApiKeyAndModel2(anthropicApiKey, groqApiKey, geminiApiKey, openaiApi
|
|
|
15745
15751
|
}
|
|
15746
15752
|
}
|
|
15747
15753
|
}
|
|
15754
|
+
if (!apiKey && process.env.OPENROUTER_API_KEY) {
|
|
15755
|
+
apiKey = process.env.OPENROUTER_API_KEY;
|
|
15756
|
+
if (!model || !model.startsWith("anthropic/")) {
|
|
15757
|
+
model = DEFAULT_REPORT_COMP_MODELS.anthropic;
|
|
15758
|
+
}
|
|
15759
|
+
}
|
|
15748
15760
|
return { apiKey, model };
|
|
15749
15761
|
}
|
|
15750
15762
|
function formatComponentsForPrompt2(components) {
|