@promptbook/wizard 0.98.0-9 → 0.98.0
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/README.md +0 -4
- package/esm/index.es.js +4 -2
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +61 -40
- package/umd/index.umd.js +4 -2
- package/umd/index.umd.js.map +1 -1
package/README.md
CHANGED
@@ -25,10 +25,6 @@ Write AI applications using plain human language across multiple models and plat
|
|
25
25
|
|
26
26
|
|
27
27
|
|
28
|
-
<blockquote style="color: #ff8811">
|
29
|
-
<b>⚠ Warning:</b> This is a pre-release version of the library. It is not yet ready for production use. Please look at <a href="https://www.npmjs.com/package/@promptbook/core?activeTab=versions">latest stable release</a>.
|
30
|
-
</blockquote>
|
31
|
-
|
32
28
|
## 📦 Package `@promptbook/wizard`
|
33
29
|
|
34
30
|
- Promptbooks are [divided into several](#-packages) packages, all are published from [single monorepo](https://github.com/webgptorg/promptbook).
|
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';
|
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
|
@@ -5113,6 +5113,7 @@ const _OpenAiCompatibleMetadataRegistration = $llmToolsMetadataRegister.register
|
|
5113
5113
|
options: {
|
5114
5114
|
apiKey: 'sk-',
|
5115
5115
|
baseURL: 'https://api.openai.com/v1',
|
5116
|
+
defaultModelName: 'gpt-4-turbo',
|
5116
5117
|
isProxied: false,
|
5117
5118
|
remoteServerUrl: DEFAULT_REMOTE_SERVER_URL,
|
5118
5119
|
maxRequestsPerMinute: DEFAULT_MAX_REQUESTS_PER_MINUTE,
|
@@ -12130,9 +12131,10 @@ function createLlmToolsFromConfiguration(configuration, options = {}) {
|
|
12130
12131
|
.list()
|
12131
12132
|
.find(({ packageName, className }) => llmConfiguration.packageName === packageName && llmConfiguration.className === className);
|
12132
12133
|
if (registeredItem === undefined) {
|
12133
|
-
console.log('
|
12134
|
+
// console.log('$llmToolsRegister.list()', $llmToolsRegister.list());
|
12134
12135
|
throw new Error(spaceTrim((block) => `
|
12135
12136
|
There is no constructor for LLM provider \`${llmConfiguration.className}\` from \`${llmConfiguration.packageName}\`
|
12137
|
+
Running in ${!$isRunningInBrowser() ? '' : 'browser environment'}${!$isRunningInNode() ? '' : 'node environment'}${!$isRunningInWebWorker() ? '' : 'worker environment'}
|
12136
12138
|
|
12137
12139
|
You have probably forgotten install and import the provider package.
|
12138
12140
|
To fix this issue, you can:
|