@promptbook/wizard 0.98.0-8 → 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 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-8';
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,
@@ -5120,27 +5121,6 @@ const _OpenAiCompatibleMetadataRegistration = $llmToolsMetadataRegister.register
5120
5121
  };
5121
5122
  },
5122
5123
  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
5124
  return null;
5145
5125
  },
5146
5126
  });
@@ -12151,8 +12131,10 @@ function createLlmToolsFromConfiguration(configuration, options = {}) {
12151
12131
  .list()
12152
12132
  .find(({ packageName, className }) => llmConfiguration.packageName === packageName && llmConfiguration.className === className);
12153
12133
  if (registeredItem === undefined) {
12134
+ // console.log('$llmToolsRegister.list()', $llmToolsRegister.list());
12154
12135
  throw new Error(spaceTrim((block) => `
12155
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'}
12156
12138
 
12157
12139
  You have probably forgotten install and import the provider package.
12158
12140
  To fix this issue, you can: