@promptbook/remote-server 0.100.0-26 → 0.100.0-28
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 +5 -3
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/utils.index.d.ts +0 -2
- package/esm/typings/src/config.d.ts +0 -6
- package/esm/typings/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionTools.d.ts +0 -5
- package/esm/typings/src/types/ModelRequirements.d.ts +0 -2
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +5 -3
- package/umd/index.umd.js.map +1 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
|
|
2
2
|
import { VALUE_STRINGS } from '../config';
|
|
3
|
-
import { MAX_TOKENS } from '../config';
|
|
4
3
|
import { SMALL_NUMBER } from '../config';
|
|
5
4
|
import { renderPromptbookMermaid } from '../conversion/prettify/renderPipelineMermaidOptions';
|
|
6
5
|
import { deserializeError } from '../errors/utils/deserializeError';
|
|
@@ -86,7 +85,6 @@ import { isValidUrl } from '../utils/validators/url/isValidUrl';
|
|
|
86
85
|
import { isValidUuid } from '../utils/validators/uuid/isValidUuid';
|
|
87
86
|
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
|
|
88
87
|
export { VALUE_STRINGS };
|
|
89
|
-
export { MAX_TOKENS };
|
|
90
88
|
export { SMALL_NUMBER };
|
|
91
89
|
export { renderPromptbookMermaid };
|
|
92
90
|
export { deserializeError };
|
|
@@ -129,12 +129,6 @@ export declare const VALUE_STRINGS: {
|
|
|
129
129
|
readonly unserializable: "(unserializable value)";
|
|
130
130
|
readonly circular: "(circular JSON)";
|
|
131
131
|
};
|
|
132
|
-
/**
|
|
133
|
-
* Default cap for the number of tokens in a single request to the LLM
|
|
134
|
-
*
|
|
135
|
-
* @public exported from `@promptbook/utils`
|
|
136
|
-
*/
|
|
137
|
-
export declare const MAX_TOKENS = 1048576;
|
|
138
132
|
/**
|
|
139
133
|
* Small number limit
|
|
140
134
|
*
|
|
@@ -2,7 +2,6 @@ import Anthropic from '@anthropic-ai/sdk';
|
|
|
2
2
|
import type { AvailableModel } from '../../execution/AvailableModel';
|
|
3
3
|
import type { LlmExecutionTools } from '../../execution/LlmExecutionTools';
|
|
4
4
|
import type { ChatPromptResult } from '../../execution/PromptResult';
|
|
5
|
-
import type { CompletionPromptResult } from '../../execution/PromptResult';
|
|
6
5
|
import type { Prompt } from '../../types/Prompt';
|
|
7
6
|
import type { string_markdown } from '../../types/typeAliases';
|
|
8
7
|
import type { string_markdown_text } from '../../types/typeAliases';
|
|
@@ -42,10 +41,6 @@ export declare class AnthropicClaudeExecutionTools implements LlmExecutionTools
|
|
|
42
41
|
* Calls Anthropic Claude API to use a chat model.
|
|
43
42
|
*/
|
|
44
43
|
callChatModel(prompt: Pick<Prompt, 'content' | 'parameters' | 'modelRequirements'>): Promise<ChatPromptResult>;
|
|
45
|
-
/**
|
|
46
|
-
* Calls Anthropic Claude API to use a completion model.
|
|
47
|
-
*/
|
|
48
|
-
callCompletionModel(prompt: Pick<Prompt, 'content' | 'parameters' | 'modelRequirements'>): Promise<CompletionPromptResult>;
|
|
49
44
|
/**
|
|
50
45
|
* Get the model that should be used as default
|
|
51
46
|
*/
|
|
@@ -15,7 +15,7 @@ export declare const BOOK_LANGUAGE_VERSION: string_semantic_version;
|
|
|
15
15
|
export declare const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version;
|
|
16
16
|
/**
|
|
17
17
|
* Represents the version string of the Promptbook engine.
|
|
18
|
-
* It follows semantic versioning (e.g., `0.100.0-
|
|
18
|
+
* It follows semantic versioning (e.g., `0.100.0-27`).
|
|
19
19
|
*
|
|
20
20
|
* @generated
|
|
21
21
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/remote-server",
|
|
3
|
-
"version": "0.100.0-
|
|
3
|
+
"version": "0.100.0-28",
|
|
4
4
|
"description": "Promptbook: Run AI apps in plain human language across multiple models and platforms",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"module": "./esm/index.es.js",
|
|
96
96
|
"typings": "./esm/typings/src/_packages/remote-server.index.d.ts",
|
|
97
97
|
"peerDependencies": {
|
|
98
|
-
"@promptbook/core": "0.100.0-
|
|
98
|
+
"@promptbook/core": "0.100.0-28"
|
|
99
99
|
},
|
|
100
100
|
"dependencies": {
|
|
101
101
|
"colors": "1.4.0",
|
package/umd/index.umd.js
CHANGED
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
* @generated
|
|
49
49
|
* @see https://github.com/webgptorg/promptbook
|
|
50
50
|
*/
|
|
51
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.100.0-
|
|
51
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.100.0-28';
|
|
52
52
|
/**
|
|
53
53
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
54
54
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -5541,8 +5541,10 @@
|
|
|
5541
5541
|
result: $ongoingTaskResult.$resultString,
|
|
5542
5542
|
error: error,
|
|
5543
5543
|
});
|
|
5544
|
-
//
|
|
5545
|
-
onProgress({
|
|
5544
|
+
// Report failed attempt
|
|
5545
|
+
onProgress({
|
|
5546
|
+
errors: [error],
|
|
5547
|
+
});
|
|
5546
5548
|
}
|
|
5547
5549
|
finally {
|
|
5548
5550
|
if (!isJokerAttempt &&
|