@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 +1 -1
- package/esm/typings/src/conversion/promptbookStringToJson.d.ts +1 -0
- package/esm/typings/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionTools.d.ts +4 -0
- package/esm/typings/src/llm-providers/openai/OpenAiExecutionTools.d.ts +4 -0
- package/package.json +2 -2
- package/umd/index.umd.js +1 -1
- package/umd/typings/src/conversion/promptbookStringToJson.d.ts +1 -0
- package/umd/typings/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionTools.d.ts +4 -0
- package/umd/typings/src/llm-providers/openai/OpenAiExecutionTools.d.ts +4 -0
- package/esm/typings/src/knowledge/prepare-knowledge/_common/IndexPreparer.d.ts +0 -4
- package/umd/typings/src/knowledge/prepare-knowledge/_common/IndexPreparer.d.ts +0 -4
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-
|
|
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-
|
|
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-
|
|
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
|
@@ -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
|
*/
|