@jaibber/sdk 0.3.7 → 0.3.8
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 +14 -6
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1616,15 +1616,23 @@ var agent = new JaibberAgent({
|
|
|
1616
1616
|
machineName,
|
|
1617
1617
|
projectIds: resolvedProjectIds
|
|
1618
1618
|
});
|
|
1619
|
+
var DEFAULTS = {
|
|
1620
|
+
anthropic: "claude-sonnet-4-6",
|
|
1621
|
+
openai: "gpt-4o",
|
|
1622
|
+
google: "gemini-pro-latest"
|
|
1623
|
+
};
|
|
1619
1624
|
if (anthropicKey) {
|
|
1620
|
-
|
|
1621
|
-
|
|
1625
|
+
const model = anthropicModel || DEFAULTS.anthropic;
|
|
1626
|
+
agent.useProvider("anthropic", { apiKey: anthropicKey, model });
|
|
1627
|
+
console.log(`[cli] Using Anthropic provider (${model})`);
|
|
1622
1628
|
} else if (openaiKey) {
|
|
1623
|
-
|
|
1624
|
-
|
|
1629
|
+
const model = openaiModel || DEFAULTS.openai;
|
|
1630
|
+
agent.useProvider("openai", { apiKey: openaiKey, model });
|
|
1631
|
+
console.log(`[cli] Using OpenAI provider (${model})`);
|
|
1625
1632
|
} else if (googleKey) {
|
|
1626
|
-
|
|
1627
|
-
|
|
1633
|
+
const model = googleModel || DEFAULTS.google;
|
|
1634
|
+
agent.useProvider("google", { apiKey: googleKey, model });
|
|
1635
|
+
console.log(`[cli] Using Google provider (${model})`);
|
|
1628
1636
|
} else if (useClaudeCli) {
|
|
1629
1637
|
agent.useProvider("claude-cli", { projectDir });
|
|
1630
1638
|
console.log(`[cli] Using Claude CLI provider (local auth)`);
|