@sprucelabs/sprucebot-llm 14.2.2 → 14.3.0
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.
|
@@ -14,9 +14,10 @@ class AnthropicAdapter {
|
|
|
14
14
|
'apiKey',
|
|
15
15
|
'maxTokens',
|
|
16
16
|
]);
|
|
17
|
-
const { log, memoryLimit, maxTokens, thinking } = options;
|
|
17
|
+
const { log, memoryLimit, maxTokens, thinking, model } = options;
|
|
18
18
|
this.api = new AnthropicAdapter.Anthropic({ apiKey });
|
|
19
19
|
this.maxTokens = maxTokens;
|
|
20
|
+
this.model = model ?? this.model;
|
|
20
21
|
this.memoryLimit = memoryLimit;
|
|
21
22
|
this.isThinkingEnabled = thinking ?? false;
|
|
22
23
|
this.log = log?.buildLog('AnthropicAdapter');
|
|
@@ -18,9 +18,10 @@ class AnthropicAdapter {
|
|
|
18
18
|
'apiKey',
|
|
19
19
|
'maxTokens',
|
|
20
20
|
]);
|
|
21
|
-
const { log, memoryLimit, maxTokens, thinking } = options;
|
|
21
|
+
const { log, memoryLimit, maxTokens, thinking, model } = options;
|
|
22
22
|
this.api = new AnthropicAdapter.Anthropic({ apiKey });
|
|
23
23
|
this.maxTokens = maxTokens;
|
|
24
|
+
this.model = model !== null && model !== void 0 ? model : this.model;
|
|
24
25
|
this.memoryLimit = memoryLimit;
|
|
25
26
|
this.isThinkingEnabled = thinking !== null && thinking !== void 0 ? thinking : false;
|
|
26
27
|
this.log = log === null || log === void 0 ? void 0 : log.buildLog('AnthropicAdapter');
|
package/build/esm/llm.types.d.ts
CHANGED
|
@@ -87,7 +87,7 @@ export interface LlmCallback {
|
|
|
87
87
|
}
|
|
88
88
|
export type LlmCallbackParameter = {
|
|
89
89
|
name: string;
|
|
90
|
-
type: ('text' | 'number' | 'boolean' | 'dateMs' | 'dateTimeMs') | (string & {});
|
|
90
|
+
type: ('text' | 'number' | 'boolean' | 'dateMs' | 'dateTimeMs' | 'raw') | (string & {});
|
|
91
91
|
isRequired?: boolean;
|
|
92
92
|
description?: string;
|
|
93
93
|
isArray?: boolean;
|
package/build/llm.types.d.ts
CHANGED
|
@@ -87,7 +87,7 @@ export interface LlmCallback {
|
|
|
87
87
|
}
|
|
88
88
|
export type LlmCallbackParameter = {
|
|
89
89
|
name: string;
|
|
90
|
-
type: ('text' | 'number' | 'boolean' | 'dateMs' | 'dateTimeMs') | (string & {});
|
|
90
|
+
type: ('text' | 'number' | 'boolean' | 'dateMs' | 'dateTimeMs' | 'raw') | (string & {});
|
|
91
91
|
isRequired?: boolean;
|
|
92
92
|
description?: string;
|
|
93
93
|
isArray?: boolean;
|