@promptbook/remote-server 0.63.2 → 0.63.4

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
@@ -7,7 +7,7 @@ import { spaceTrim } from 'spacetrim';
7
7
  /**
8
8
  * The version of the Promptbook library
9
9
  */
10
- var PROMPTBOOK_VERSION = '0.63.1';
10
+ var PROMPTBOOK_VERSION = '0.63.3';
11
11
  // TODO: !!!! List here all the versions and annotate + put into script
12
12
 
13
13
  /*! *****************************************************************************
@@ -3,9 +3,11 @@ import type { LlmExecutionTools } from '../../execution/LlmExecutionTools';
3
3
  import type { ChatPromptResult } from '../../execution/PromptResult';
4
4
  import type { CompletionPromptResult } from '../../execution/PromptResult';
5
5
  import type { EmbeddingPromptResult } from '../../execution/PromptResult';
6
+ import type { PromptResult } from '../../execution/PromptResult';
6
7
  import type { ChatPrompt } from '../../types/Prompt';
7
8
  import type { CompletionPrompt } from '../../types/Prompt';
8
9
  import type { EmbeddingPrompt } from '../../types/Prompt';
10
+ import type { Prompt } from '../../types/Prompt';
9
11
  import type { string_markdown } from '../../types/typeAliases';
10
12
  import type { string_markdown_text } from '../../types/typeAliases';
11
13
  import type { string_title } from '../../types/typeAliases';
@@ -19,7 +21,7 @@ export declare class MultipleLlmExecutionTools implements LlmExecutionTools {
19
21
  /**
20
22
  * Array of execution tools in order of priority
21
23
  */
22
- private readonly llmExecutionTools;
24
+ readonly llmExecutionTools: Array<LlmExecutionTools>;
23
25
  /**
24
26
  * Gets array of execution tools in order of priority
25
27
  */
@@ -40,8 +42,10 @@ export declare class MultipleLlmExecutionTools implements LlmExecutionTools {
40
42
  callEmbeddingModel(prompt: EmbeddingPrompt): Promise<EmbeddingPromptResult>;
41
43
  /**
42
44
  * Calls the best available model
45
+ *
46
+ * Note: This should be private or protected but is public to be usable with duck typing
43
47
  */
44
- private callModelCommon;
48
+ callCommonModel(prompt: Prompt): Promise<PromptResult>;
45
49
  /**
46
50
  * List all available models that can be used
47
51
  * This lists is a combination of all available models from all execution tools
@@ -43,7 +43,7 @@ export declare class RemoteLlmExecutionTools implements LlmExecutionTools {
43
43
  /**
44
44
  * Calls remote proxy server to use both completion or chat model
45
45
  */
46
- private callModelCommon;
46
+ private callCommonModel;
47
47
  /**
48
48
  * List all available models that can be used
49
49
  */
@@ -53,4 +53,4 @@ export declare class RemoteLlmExecutionTools implements LlmExecutionTools {
53
53
  * TODO: [🍓] Allow to list compatible models with each variant
54
54
  * TODO: [🗯] RemoteLlmExecutionTools should extend Destroyable and implement IDestroyable
55
55
  * TODO: [🍜] Add anonymous option
56
- */
56
+ */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/remote-server",
3
- "version": "0.63.2",
3
+ "version": "0.63.4",
4
4
  "description": "Supercharge your use of large language models",
5
5
  "private": false,
6
6
  "sideEffects": false,
@@ -47,7 +47,7 @@
47
47
  "module": "./esm/index.es.js",
48
48
  "typings": "./esm/typings/src/_packages/remote-server.index.d.ts",
49
49
  "peerDependencies": {
50
- "@promptbook/core": "0.63.2"
50
+ "@promptbook/core": "0.63.4"
51
51
  },
52
52
  "dependencies": {
53
53
  "colors": "1.4.0",
package/umd/index.umd.js CHANGED
@@ -13,7 +13,7 @@
13
13
  /**
14
14
  * The version of the Promptbook library
15
15
  */
16
- var PROMPTBOOK_VERSION = '0.63.1';
16
+ var PROMPTBOOK_VERSION = '0.63.3';
17
17
  // TODO: !!!! List here all the versions and annotate + put into script
18
18
 
19
19
  /*! *****************************************************************************