@promptbook/markdown-utils 0.92.0-30 → 0.92.0-32
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 +6 -12
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/executables/locateApp.d.ts +2 -2
- package/esm/typings/src/execution/createPipelineExecutor/10-executePipeline.d.ts +1 -1
- package/esm/typings/src/execution/createPipelineExecutor/20-executeTask.d.ts +1 -1
- package/esm/typings/src/execution/createPipelineExecutor/30-executeFormatSubvalues.d.ts +1 -1
- package/esm/typings/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionTools.d.ts +6 -0
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +1 -1
- package/umd/index.umd.js +6 -12
- package/umd/index.umd.js.map +1 -1
package/esm/index.es.js
CHANGED
|
@@ -25,7 +25,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
25
25
|
* @generated
|
|
26
26
|
* @see https://github.com/webgptorg/promptbook
|
|
27
27
|
*/
|
|
28
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.92.0-
|
|
28
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.92.0-32';
|
|
29
29
|
/**
|
|
30
30
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
31
31
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -2529,23 +2529,17 @@ class MultipleLlmExecutionTools {
|
|
|
2529
2529
|
* Check the configuration of all execution tools
|
|
2530
2530
|
*/
|
|
2531
2531
|
async checkConfiguration() {
|
|
2532
|
-
//
|
|
2533
|
-
|
|
2534
|
-
await llmExecutionTools.checkConfiguration();
|
|
2535
|
-
}
|
|
2532
|
+
// Note: Run checks in parallel
|
|
2533
|
+
await Promise.all(this.llmExecutionTools.map((tools) => tools.checkConfiguration()));
|
|
2536
2534
|
}
|
|
2537
2535
|
/**
|
|
2538
2536
|
* List all available models that can be used
|
|
2539
2537
|
* This lists is a combination of all available models from all execution tools
|
|
2540
2538
|
*/
|
|
2541
2539
|
async listModels() {
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
const models = await llmExecutionTools.listModels();
|
|
2546
|
-
availableModels.push(...models);
|
|
2547
|
-
}
|
|
2548
|
-
return availableModels;
|
|
2540
|
+
// Obtain all models in parallel and flatten
|
|
2541
|
+
const modelArrays = await Promise.all(this.llmExecutionTools.map((tools) => tools.listModels()));
|
|
2542
|
+
return modelArrays.flat();
|
|
2549
2543
|
}
|
|
2550
2544
|
/**
|
|
2551
2545
|
* Calls the best available chat model
|