@promptbook/remote-client
Advanced tools
Comparing version 0.65.0-4 to 0.65.0-6
@@ -7,3 +7,3 @@ import { io } from 'socket.io-client'; | ||
*/ | ||
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 | ||
@@ -139,5 +139,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 */); | ||
}); | ||
@@ -222,5 +223,6 @@ }; | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, [ | ||
/* !!! */ | ||
]]; | ||
return [2 /*return*/, (this.options.models || | ||
[ | ||
/* !!! */ | ||
])]; | ||
}); | ||
@@ -227,0 +229,0 @@ }); |
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/remote-client", | ||
"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": { |
@@ -11,3 +11,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 | ||
@@ -143,5 +143,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 */); | ||
}); | ||
@@ -226,5 +227,6 @@ }; | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, [ | ||
/* !!! */ | ||
]]; | ||
return [2 /*return*/, (this.options.models || | ||
[ | ||
/* !!! */ | ||
])]; | ||
}); | ||
@@ -231,0 +233,0 @@ }); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
423607
8088