@promptbook/types 0.59.0-31 → 0.59.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 CHANGED
@@ -11,7 +11,7 @@ var EXPECTATION_UNITS = ['CHARACTERS', 'WORDS', 'SENTENCES', 'LINES', 'PARAGRAPH
11
11
  /**
12
12
  * The version of the Promptbook library
13
13
  */
14
- var PROMPTBOOK_VERSION = '0.59.0-30';
14
+ var PROMPTBOOK_VERSION = '0.59.0-31';
15
15
 
16
16
  export { EXPECTATION_UNITS, PROMPTBOOK_VERSION };
17
17
  //# sourceMappingURL=index.es.js.map
@@ -27,4 +27,5 @@ export {};
27
27
  * TODO: Report here line/column of error
28
28
  * TODO: Use spaceTrim more effectively
29
29
  * TODO: [🧠] Parameter flags - isInput, isOutput, isInternal
30
+ * TODO: [🏏] Leverage the batch API and build queues @see https://platform.openai.com/docs/guides/batch
30
31
  */
@@ -27,6 +27,10 @@ export declare class AnthropicClaudeExecutionTools implements LlmExecutionTools
27
27
  * Calls Anthropic Claude API to use a complete model.
28
28
  */
29
29
  gptComplete(prompt: Pick<Prompt, 'content' | 'modelRequirements'>): Promise<PromptCompletionResult>;
30
+ /**
31
+ * Get the model that should be used as default
32
+ */
33
+ private getDefaultModel;
30
34
  /**
31
35
  * Default model for chat variant.
32
36
  */
@@ -32,6 +32,10 @@ export declare class OpenAiExecutionTools implements LlmExecutionTools {
32
32
  * Calls OpenAI API to use a embedding model
33
33
  */
34
34
  embed(prompt: Pick<Prompt, 'content' | 'modelRequirements'>): Promise<PromptEmbeddingResult>;
35
+ /**
36
+ * Get the model that should be used as default
37
+ */
38
+ private getDefaultModel;
35
39
  /**
36
40
  * Default model for chat variant.
37
41
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/types",
3
- "version": "0.59.0-31",
3
+ "version": "0.59.0-32",
4
4
  "description": "Library to supercharge your use of large language models",
5
5
  "private": false,
6
6
  "sideEffects": false,
@@ -45,7 +45,7 @@
45
45
  }
46
46
  ],
47
47
  "peerDependencies": {
48
- "@promptbook/core": "0.59.0-31"
48
+ "@promptbook/core": "0.59.0-32"
49
49
  },
50
50
  "main": "./umd/index.umd.js",
51
51
  "module": "./esm/index.es.js",
package/umd/index.umd.js CHANGED
@@ -17,7 +17,7 @@
17
17
  /**
18
18
  * The version of the Promptbook library
19
19
  */
20
- var PROMPTBOOK_VERSION = '0.59.0-30';
20
+ var PROMPTBOOK_VERSION = '0.59.0-31';
21
21
 
22
22
  exports.EXPECTATION_UNITS = EXPECTATION_UNITS;
23
23
  exports.PROMPTBOOK_VERSION = PROMPTBOOK_VERSION;
@@ -27,4 +27,5 @@ export {};
27
27
  * TODO: Report here line/column of error
28
28
  * TODO: Use spaceTrim more effectively
29
29
  * TODO: [🧠] Parameter flags - isInput, isOutput, isInternal
30
+ * TODO: [🏏] Leverage the batch API and build queues @see https://platform.openai.com/docs/guides/batch
30
31
  */
@@ -27,6 +27,10 @@ export declare class AnthropicClaudeExecutionTools implements LlmExecutionTools
27
27
  * Calls Anthropic Claude API to use a complete model.
28
28
  */
29
29
  gptComplete(prompt: Pick<Prompt, 'content' | 'modelRequirements'>): Promise<PromptCompletionResult>;
30
+ /**
31
+ * Get the model that should be used as default
32
+ */
33
+ private getDefaultModel;
30
34
  /**
31
35
  * Default model for chat variant.
32
36
  */
@@ -32,6 +32,10 @@ export declare class OpenAiExecutionTools implements LlmExecutionTools {
32
32
  * Calls OpenAI API to use a embedding model
33
33
  */
34
34
  embed(prompt: Pick<Prompt, 'content' | 'modelRequirements'>): Promise<PromptEmbeddingResult>;
35
+ /**
36
+ * Get the model that should be used as default
37
+ */
38
+ private getDefaultModel;
35
39
  /**
36
40
  * Default model for chat variant.
37
41
  */
@@ -1,4 +0,0 @@
1
- export type IndexPreparer = {};
2
- /**
3
- * TODO: Export via some package
4
- */
@@ -1,4 +0,0 @@
1
- export type IndexPreparer = {};
2
- /**
3
- * TODO: Export via some package
4
- */