hedgequantx 2.5.20 → 2.5.22
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/package.json
CHANGED
package/src/menus/ai-agent.js
CHANGED
|
@@ -995,9 +995,25 @@ const selectModel = async (agent) => {
|
|
|
995
995
|
return await aiAgentMenu();
|
|
996
996
|
}
|
|
997
997
|
|
|
998
|
+
// Custom model option
|
|
999
|
+
if (choice?.toLowerCase() === 'c') {
|
|
1000
|
+
console.log(chalk.gray('\n Enter any model name supported by your provider.'));
|
|
1001
|
+
console.log(chalk.gray(' Examples: claude-opus-4-20250514, gpt-4o-2024-11-20, etc.\n'));
|
|
1002
|
+
|
|
1003
|
+
const customModel = await prompts.textInput(chalk.cyan('ENTER MODEL NAME:'));
|
|
1004
|
+
if (!customModel || customModel === '<') {
|
|
1005
|
+
return await selectModel(agent);
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
aiService.updateAgent(agent.id, { model: customModel.trim() });
|
|
1009
|
+
console.log(chalk.green(`\n MODEL CHANGED TO: ${customModel.trim()}`));
|
|
1010
|
+
await prompts.waitForEnter();
|
|
1011
|
+
return await aiAgentMenu();
|
|
1012
|
+
}
|
|
1013
|
+
|
|
998
1014
|
const index = parseInt(choice) - 1;
|
|
999
1015
|
if (isNaN(index) || index < 0 || index >= models.length) {
|
|
1000
|
-
return await
|
|
1016
|
+
return await selectModel(agent);
|
|
1001
1017
|
}
|
|
1002
1018
|
|
|
1003
1019
|
const selectedModel = models[index];
|
|
@@ -43,8 +43,21 @@ const PROVIDERS = {
|
|
|
43
43
|
name: 'CLAUDE (ANTHROPIC)',
|
|
44
44
|
description: 'Direct connection to Claude',
|
|
45
45
|
category: 'direct',
|
|
46
|
-
models: [
|
|
47
|
-
|
|
46
|
+
models: [
|
|
47
|
+
// Claude 4.5 (Latest flagship)
|
|
48
|
+
'claude-opus-4-5-20250514',
|
|
49
|
+
// Claude 4
|
|
50
|
+
'claude-opus-4-20250514',
|
|
51
|
+
'claude-sonnet-4-20250514',
|
|
52
|
+
// Claude 3.5
|
|
53
|
+
'claude-3-5-sonnet-20241022',
|
|
54
|
+
'claude-3-5-haiku-20241022',
|
|
55
|
+
// Claude 3
|
|
56
|
+
'claude-3-opus-20240229',
|
|
57
|
+
'claude-3-sonnet-20240229',
|
|
58
|
+
'claude-3-haiku-20240307'
|
|
59
|
+
],
|
|
60
|
+
defaultModel: 'claude-opus-4-5-20250514',
|
|
48
61
|
options: [
|
|
49
62
|
{
|
|
50
63
|
id: 'api_key',
|