@promptbook/wizard 0.98.0-8 → 0.98.0-9
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/esm/index.es.js +2 -22
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +2 -22
- package/umd/index.umd.js.map +1 -1
package/esm/index.es.js
CHANGED
@@ -38,7 +38,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
38
38
|
* @generated
|
39
39
|
* @see https://github.com/webgptorg/promptbook
|
40
40
|
*/
|
41
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.98.0-
|
41
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.98.0-9';
|
42
42
|
/**
|
43
43
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
44
44
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
@@ -5120,27 +5120,6 @@ const _OpenAiCompatibleMetadataRegistration = $llmToolsMetadataRegister.register
|
|
5120
5120
|
};
|
5121
5121
|
},
|
5122
5122
|
createConfigurationFromEnv(env) {
|
5123
|
-
// Note: OpenAiCompatibleExecutionTools is an abstract class and cannot be instantiated directly
|
5124
|
-
// However, we can provide configuration for users who want to manually instantiate it
|
5125
|
-
if (typeof env.OPENAI_API_KEY === 'string') {
|
5126
|
-
const options = {
|
5127
|
-
apiKey: env.OPENAI_API_KEY,
|
5128
|
-
isProxied: false,
|
5129
|
-
remoteServerUrl: DEFAULT_REMOTE_SERVER_URL,
|
5130
|
-
maxRequestsPerMinute: DEFAULT_MAX_REQUESTS_PER_MINUTE,
|
5131
|
-
defaultModelName: 'gpt-4-turbo',
|
5132
|
-
};
|
5133
|
-
// Add baseURL if provided in environment
|
5134
|
-
if (typeof env.OPENAI_BASE_URL === 'string') {
|
5135
|
-
options.baseURL = env.OPENAI_BASE_URL;
|
5136
|
-
}
|
5137
|
-
return {
|
5138
|
-
title: 'Open AI Compatible (from env)',
|
5139
|
-
packageName: '@promptbook/openai',
|
5140
|
-
className: 'OpenAiCompatibleExecutionTools',
|
5141
|
-
options,
|
5142
|
-
};
|
5143
|
-
}
|
5144
5123
|
return null;
|
5145
5124
|
},
|
5146
5125
|
});
|
@@ -12151,6 +12130,7 @@ function createLlmToolsFromConfiguration(configuration, options = {}) {
|
|
12151
12130
|
.list()
|
12152
12131
|
.find(({ packageName, className }) => llmConfiguration.packageName === packageName && llmConfiguration.className === className);
|
12153
12132
|
if (registeredItem === undefined) {
|
12133
|
+
console.log('!!! $llmToolsRegister.list()', $llmToolsRegister.list());
|
12154
12134
|
throw new Error(spaceTrim((block) => `
|
12155
12135
|
There is no constructor for LLM provider \`${llmConfiguration.className}\` from \`${llmConfiguration.packageName}\`
|
12156
12136
|
|