@olane/o-intelligence 0.7.12-alpha.58 → 0.7.12-alpha.59
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.
|
@@ -27,7 +27,7 @@ export class AnthropicIntelligenceTool extends oLaneTool {
|
|
|
27
27
|
return StreamUtils.processGenerator(request, gen, request.stream);
|
|
28
28
|
}
|
|
29
29
|
try {
|
|
30
|
-
const { model = this.defaultModel, messages, system, max_tokens =
|
|
30
|
+
const { model = this.defaultModel, messages, system, max_tokens = 10000, apiKey = this.apiKey, } = params;
|
|
31
31
|
if (!apiKey) {
|
|
32
32
|
return {
|
|
33
33
|
success: false,
|
|
@@ -85,7 +85,7 @@ export class AnthropicIntelligenceTool extends oLaneTool {
|
|
|
85
85
|
async *_streamCompletion(request) {
|
|
86
86
|
try {
|
|
87
87
|
const params = request.params;
|
|
88
|
-
const { model = this.defaultModel, messages, system, max_tokens =
|
|
88
|
+
const { model = this.defaultModel, messages, system, max_tokens = 10000, apiKey = this.apiKey, } = params;
|
|
89
89
|
if (!apiKey) {
|
|
90
90
|
yield {
|
|
91
91
|
success: false,
|
|
@@ -193,7 +193,7 @@ export class AnthropicIntelligenceTool extends oLaneTool {
|
|
|
193
193
|
return StreamUtils.processGenerator(request, this._streamGenerate(request), request.stream);
|
|
194
194
|
}
|
|
195
195
|
try {
|
|
196
|
-
const { model = this.defaultModel, prompt, system, max_tokens =
|
|
196
|
+
const { model = this.defaultModel, prompt, system, max_tokens = 10000, apiKey = this.apiKey, ...options } = params;
|
|
197
197
|
if (!apiKey) {
|
|
198
198
|
return {
|
|
199
199
|
success: false,
|
|
@@ -259,7 +259,7 @@ export class AnthropicIntelligenceTool extends oLaneTool {
|
|
|
259
259
|
async *_streamGenerate(request) {
|
|
260
260
|
try {
|
|
261
261
|
const params = request.params;
|
|
262
|
-
const { model = this.defaultModel, prompt, system, max_tokens =
|
|
262
|
+
const { model = this.defaultModel, prompt, system, max_tokens = 10000, apiKey = this.apiKey, ...options } = params;
|
|
263
263
|
if (!apiKey) {
|
|
264
264
|
yield {
|
|
265
265
|
success: false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@olane/o-intelligence",
|
|
3
|
-
"version": "0.7.12-alpha.
|
|
3
|
+
"version": "0.7.12-alpha.59",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/src/index.js",
|
|
6
6
|
"types": "dist/src/index.d.ts",
|
|
@@ -54,13 +54,13 @@
|
|
|
54
54
|
"typescript": "5.4.5"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@olane/o-config": "0.7.12-alpha.
|
|
58
|
-
"@olane/o-core": "0.7.12-alpha.
|
|
59
|
-
"@olane/o-lane": "0.7.12-alpha.
|
|
60
|
-
"@olane/o-protocol": "0.7.12-alpha.
|
|
61
|
-
"@olane/o-tool": "0.7.12-alpha.
|
|
57
|
+
"@olane/o-config": "0.7.12-alpha.59",
|
|
58
|
+
"@olane/o-core": "0.7.12-alpha.59",
|
|
59
|
+
"@olane/o-lane": "0.7.12-alpha.59",
|
|
60
|
+
"@olane/o-protocol": "0.7.12-alpha.59",
|
|
61
|
+
"@olane/o-tool": "0.7.12-alpha.59",
|
|
62
62
|
"debug": "^4.4.1",
|
|
63
63
|
"dotenv": "^16.5.0"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "e444856d725e14b45e3ea8bf726fcb6eef021a79"
|
|
66
66
|
}
|