@promptbook/anthropic-claude
Advanced tools
Comparing version 0.65.0-4 to 0.65.0-6
@@ -10,3 +10,3 @@ import Anthropic from '@anthropic-ai/sdk'; | ||
*/ | ||
var PROMPTBOOK_VERSION = '0.65.0-3'; | ||
var PROMPTBOOK_VERSION = '0.65.0-5'; | ||
// TODO: !!!! List here all the versions and annotate + put into script | ||
@@ -1055,5 +1055,6 @@ | ||
}); | ||
// TODO: !!!! Better timeout handling | ||
setTimeout(function () { | ||
reject(new Error("Timeout while connecting to ".concat(_this.options.remoteUrl))); | ||
}, 60000 /* <- TODO: Timeout to config */); | ||
}, 1000 /* <- TODO: Timeout to config */); | ||
}); | ||
@@ -1138,5 +1139,6 @@ }; | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, [ | ||
/* !!! */ | ||
]]; | ||
return [2 /*return*/, (this.options.models || | ||
[ | ||
/* !!! */ | ||
])]; | ||
}); | ||
@@ -1169,3 +1171,3 @@ }); | ||
}, | ||
] })); | ||
], models: ANTHROPIC_CLAUDE_MODELS })); | ||
} | ||
@@ -1172,0 +1174,0 @@ return new AnthropicClaudeExecutionTools(options); |
import type { CommonExecutionToolsOptions } from '../../../execution/CommonExecutionToolsOptions'; | ||
import type { AvailableModel } from '../../../execution/LlmExecutionTools'; | ||
import type { client_id } from '../../../types/typeAliases'; | ||
@@ -25,2 +26,8 @@ import type { string_base_url } from '../../../types/typeAliases'; | ||
/** | ||
* If set, only these models will be listed as available | ||
* | ||
* TODO: [🧠] !!!! Figure out better solution | ||
*/ | ||
readonly models?: Array<AvailableModel>; | ||
/** | ||
* Mode of the server to connect to | ||
@@ -27,0 +34,0 @@ */ |
{ | ||
"name": "@promptbook/anthropic-claude", | ||
"version": "0.65.0-4", | ||
"version": "0.65.0-6", | ||
"description": "Supercharge your use of large language models", | ||
@@ -50,3 +50,3 @@ "private": false, | ||
"peerDependencies": { | ||
"@promptbook/core": "0.65.0-4" | ||
"@promptbook/core": "0.65.0-6" | ||
}, | ||
@@ -53,0 +53,0 @@ "dependencies": { |
@@ -17,3 +17,3 @@ (function (global, factory) { | ||
*/ | ||
var PROMPTBOOK_VERSION = '0.65.0-3'; | ||
var PROMPTBOOK_VERSION = '0.65.0-5'; | ||
// TODO: !!!! List here all the versions and annotate + put into script | ||
@@ -1062,5 +1062,6 @@ | ||
}); | ||
// TODO: !!!! Better timeout handling | ||
setTimeout(function () { | ||
reject(new Error("Timeout while connecting to ".concat(_this.options.remoteUrl))); | ||
}, 60000 /* <- TODO: Timeout to config */); | ||
}, 1000 /* <- TODO: Timeout to config */); | ||
}); | ||
@@ -1145,5 +1146,6 @@ }; | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, [ | ||
/* !!! */ | ||
]]; | ||
return [2 /*return*/, (this.options.models || | ||
[ | ||
/* !!! */ | ||
])]; | ||
}); | ||
@@ -1176,3 +1178,3 @@ }); | ||
}, | ||
] })); | ||
], models: ANTHROPIC_CLAUDE_MODELS })); | ||
} | ||
@@ -1179,0 +1181,0 @@ return new AnthropicClaudeExecutionTools(options); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
543783
9901