@promptbook/core 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 +1 -1
- package/umd/index.umd.js +2 -22
- package/umd/index.umd.js.map +1 -1
|
@@ -15,7 +15,7 @@ export declare const BOOK_LANGUAGE_VERSION: string_semantic_version;
|
|
|
15
15
|
export declare const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version;
|
|
16
16
|
/**
|
|
17
17
|
* Represents the version string of the Promptbook engine.
|
|
18
|
-
* It follows semantic versioning (e.g., `0.98.0-
|
|
18
|
+
* It follows semantic versioning (e.g., `0.98.0-8`).
|
|
19
19
|
*
|
|
20
20
|
* @generated
|
|
21
21
|
*/
|
package/package.json
CHANGED
package/umd/index.umd.js
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
* @generated
|
|
28
28
|
* @see https://github.com/webgptorg/promptbook
|
|
29
29
|
*/
|
|
30
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.98.0-
|
|
30
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.98.0-9';
|
|
31
31
|
/**
|
|
32
32
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
33
33
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -10691,6 +10691,7 @@
|
|
|
10691
10691
|
.list()
|
|
10692
10692
|
.find(({ packageName, className }) => llmConfiguration.packageName === packageName && llmConfiguration.className === className);
|
|
10693
10693
|
if (registeredItem === undefined) {
|
|
10694
|
+
console.log('!!! $llmToolsRegister.list()', $llmToolsRegister.list());
|
|
10694
10695
|
throw new Error(spaceTrim__default["default"]((block) => `
|
|
10695
10696
|
There is no constructor for LLM provider \`${llmConfiguration.className}\` from \`${llmConfiguration.packageName}\`
|
|
10696
10697
|
|
|
@@ -11416,27 +11417,6 @@
|
|
|
11416
11417
|
};
|
|
11417
11418
|
},
|
|
11418
11419
|
createConfigurationFromEnv(env) {
|
|
11419
|
-
// Note: OpenAiCompatibleExecutionTools is an abstract class and cannot be instantiated directly
|
|
11420
|
-
// However, we can provide configuration for users who want to manually instantiate it
|
|
11421
|
-
if (typeof env.OPENAI_API_KEY === 'string') {
|
|
11422
|
-
const options = {
|
|
11423
|
-
apiKey: env.OPENAI_API_KEY,
|
|
11424
|
-
isProxied: false,
|
|
11425
|
-
remoteServerUrl: DEFAULT_REMOTE_SERVER_URL,
|
|
11426
|
-
maxRequestsPerMinute: DEFAULT_MAX_REQUESTS_PER_MINUTE,
|
|
11427
|
-
defaultModelName: 'gpt-4-turbo',
|
|
11428
|
-
};
|
|
11429
|
-
// Add baseURL if provided in environment
|
|
11430
|
-
if (typeof env.OPENAI_BASE_URL === 'string') {
|
|
11431
|
-
options.baseURL = env.OPENAI_BASE_URL;
|
|
11432
|
-
}
|
|
11433
|
-
return {
|
|
11434
|
-
title: 'Open AI Compatible (from env)',
|
|
11435
|
-
packageName: '@promptbook/openai',
|
|
11436
|
-
className: 'OpenAiCompatibleExecutionTools',
|
|
11437
|
-
options,
|
|
11438
|
-
};
|
|
11439
|
-
}
|
|
11440
11420
|
return null;
|
|
11441
11421
|
},
|
|
11442
11422
|
});
|