@promptbook/cli 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 CHANGED
@@ -47,7 +47,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
47
47
  * @generated
48
48
  * @see https://github.com/webgptorg/promptbook
49
49
  */
50
- const PROMPTBOOK_ENGINE_VERSION = '0.98.0-8';
50
+ const PROMPTBOOK_ENGINE_VERSION = '0.98.0-9';
51
51
  /**
52
52
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
53
53
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -3729,6 +3729,7 @@ function createLlmToolsFromConfiguration(configuration, options = {}) {
3729
3729
  .list()
3730
3730
  .find(({ packageName, className }) => llmConfiguration.packageName === packageName && llmConfiguration.className === className);
3731
3731
  if (registeredItem === undefined) {
3732
+ console.log('!!! $llmToolsRegister.list()', $llmToolsRegister.list());
3732
3733
  throw new Error(spaceTrim((block) => `
3733
3734
  There is no constructor for LLM provider \`${llmConfiguration.className}\` from \`${llmConfiguration.packageName}\`
3734
3735
 
@@ -18170,27 +18171,6 @@ const _OpenAiCompatibleMetadataRegistration = $llmToolsMetadataRegister.register
18170
18171
  };
18171
18172
  },
18172
18173
  createConfigurationFromEnv(env) {
18173
- // Note: OpenAiCompatibleExecutionTools is an abstract class and cannot be instantiated directly
18174
- // However, we can provide configuration for users who want to manually instantiate it
18175
- if (typeof env.OPENAI_API_KEY === 'string') {
18176
- const options = {
18177
- apiKey: env.OPENAI_API_KEY,
18178
- isProxied: false,
18179
- remoteServerUrl: DEFAULT_REMOTE_SERVER_URL,
18180
- maxRequestsPerMinute: DEFAULT_MAX_REQUESTS_PER_MINUTE,
18181
- defaultModelName: 'gpt-4-turbo',
18182
- };
18183
- // Add baseURL if provided in environment
18184
- if (typeof env.OPENAI_BASE_URL === 'string') {
18185
- options.baseURL = env.OPENAI_BASE_URL;
18186
- }
18187
- return {
18188
- title: 'Open AI Compatible (from env)',
18189
- packageName: '@promptbook/openai',
18190
- className: 'OpenAiCompatibleExecutionTools',
18191
- options,
18192
- };
18193
- }
18194
18174
  return null;
18195
18175
  },
18196
18176
  });