@olane/o-intelligence 0.7.62 → 0.8.1

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.
@@ -1 +1 @@
1
- {"version":3,"file":"anthropic-intelligence.tool.d.ts","sourceRoot":"","sources":["../../src/anthropic-intelligence.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,QAAQ,EAAa,MAAM,eAAe,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAEL,eAAe,EACf,cAAc,EAEf,MAAM,eAAe,CAAC;AAmGvB,qBAAa,yBAA0B,SAAQ,SAAS;IACtD,OAAO,CAAC,YAAY,CAAgC;IACpD,OAAO,CAAC,MAAM,CAA+C;gBAEjD,MAAM,EAAE,eAAe;IAWnC;;OAEG;IACG,gBAAgB,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,UAAU,CAAC;IA6EpE;;OAEG;YACY,iBAAiB;IAoHhC;;OAEG;IACG,cAAc,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,UAAU,CAAC;IAyFlE;;OAEG;YACY,eAAe;IA6H9B;;OAEG;IACG,iBAAiB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IA4C/D;;OAEG;IACG,gBAAgB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IAoD9D;;OAEG;IACG,YAAY,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;CAuC3D"}
1
+ {"version":3,"file":"anthropic-intelligence.tool.d.ts","sourceRoot":"","sources":["../../src/anthropic-intelligence.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,QAAQ,EAAa,MAAM,eAAe,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAEL,eAAe,EACf,cAAc,EAEf,MAAM,eAAe,CAAC;AAmGvB,qBAAa,yBAA0B,SAAQ,SAAS;IACtD,OAAO,CAAC,YAAY,CAAgC;IACpD,OAAO,CAAC,MAAM,CAA+C;gBAEjD,MAAM,EAAE,eAAe;IAWnC;;OAEG;IACG,gBAAgB,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,UAAU,CAAC;IA+EpE;;OAEG;YACY,iBAAiB;IAsHhC;;OAEG;IACG,cAAc,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,UAAU,CAAC;IA2FlE;;OAEG;YACY,eAAe;IA+H9B;;OAEG;IACG,iBAAiB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IA4C/D;;OAEG;IACG,gBAAgB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IAoD9D;;OAEG;IACG,YAAY,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;CAuC3D"}
@@ -42,7 +42,9 @@ export class AnthropicIntelligenceTool extends oLaneTool {
42
42
  }
43
43
  const chatRequest = {
44
44
  model: model,
45
- max_tokens: max_tokens,
45
+ max_tokens: process.env.MAX_TOKENS
46
+ ? parseInt(process.env.MAX_TOKENS, 10)
47
+ : max_tokens,
46
48
  messages: messages,
47
49
  system: system,
48
50
  stream: false,
@@ -102,7 +104,9 @@ export class AnthropicIntelligenceTool extends oLaneTool {
102
104
  }
103
105
  const chatRequest = {
104
106
  model: model,
105
- max_tokens: max_tokens,
107
+ max_tokens: process.env.MAX_TOKENS
108
+ ? parseInt(process.env.MAX_TOKENS, 10)
109
+ : max_tokens,
106
110
  messages: messages,
107
111
  system: system,
108
112
  stream: true,
@@ -214,7 +218,9 @@ export class AnthropicIntelligenceTool extends oLaneTool {
214
218
  ];
215
219
  const generateRequest = {
216
220
  model: model,
217
- max_tokens: max_tokens,
221
+ max_tokens: process.env.MAX_TOKENS
222
+ ? parseInt(process.env.MAX_TOKENS, 10)
223
+ : max_tokens,
218
224
  messages,
219
225
  system: system,
220
226
  stream: false,
@@ -282,7 +288,9 @@ export class AnthropicIntelligenceTool extends oLaneTool {
282
288
  ];
283
289
  const generateRequest = {
284
290
  model: model,
285
- max_tokens: max_tokens,
291
+ max_tokens: process.env.MAX_TOKENS
292
+ ? parseInt(process.env.MAX_TOKENS, 10)
293
+ : max_tokens,
286
294
  messages,
287
295
  system: system,
288
296
  stream: true,
@@ -1 +1 @@
1
- {"version":3,"file":"gemini-intelligence.tool.d.ts","sourceRoot":"","sources":["../../src/gemini-intelligence.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,QAAQ,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAEL,eAAe,EACf,cAAc,EAEf,MAAM,eAAe,CAAC;AA2JvB,qBAAa,sBAAuB,SAAQ,SAAS;IACnD,SAAS,CAAC,MAAM,EAAE,MAAM,CAAoC;IAC5D,SAAS,CAAC,OAAO,EAAE,MAAM,CAC4B;IACrD,SAAS,CAAC,YAAY,EAAE,MAAM,CAA0B;gBAE5C,MAAM,EAAE,eAAe;IAUnC;;OAEG;IACG,gBAAgB,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,UAAU,CAAC;IA6FpE;;OAEG;YACY,iBAAiB;IA+HhC;;OAEG;IACG,cAAc,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,UAAU,CAAC;IA8FlE;;OAEG;YACY,eAAe;IAgI9B;;OAEG;IACG,iBAAiB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IAwC/D;;OAEG;IACG,gBAAgB,CAAC,OAAO,EAAE,QAAQ,GAAG,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AAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IAgC1D;;OAEG;IACG,oBAAoB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IA2GlE;;OAEG;IACG,gBAAgB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IA0J9D;;OAEG;YACW,mBAAmB;CA0BlC"}
@@ -51,7 +51,9 @@ export class GeminiIntelligenceTool extends oLaneTool {
51
51
  temperature: options.temperature,
52
52
  topK: options.topK,
53
53
  topP: options.topP,
54
- maxOutputTokens: options.maxOutputTokens,
54
+ maxOutputTokens: process.env.MAX_TOKENS
55
+ ? parseInt(process.env.MAX_TOKENS, 10)
56
+ : options.maxOutputTokens,
55
57
  stopSequences: options.stopSequences,
56
58
  },
57
59
  safetySettings: options.safetySettings,
@@ -125,7 +127,9 @@ export class GeminiIntelligenceTool extends oLaneTool {
125
127
  temperature: options.temperature,
126
128
  topK: options.topK,
127
129
  topP: options.topP,
128
- maxOutputTokens: options.maxOutputTokens,
130
+ maxOutputTokens: process.env.MAX_TOKENS
131
+ ? parseInt(process.env.MAX_TOKENS, 10)
132
+ : options.maxOutputTokens,
129
133
  stopSequences: options.stopSequences,
130
134
  },
131
135
  safetySettings: options.safetySettings,
@@ -240,7 +244,9 @@ export class GeminiIntelligenceTool extends oLaneTool {
240
244
  temperature: options.temperature,
241
245
  topK: options.topK,
242
246
  topP: options.topP,
243
- maxOutputTokens: options.maxOutputTokens,
247
+ maxOutputTokens: process.env.MAX_TOKENS
248
+ ? parseInt(process.env.MAX_TOKENS, 10)
249
+ : options.maxOutputTokens,
244
250
  stopSequences: options.stopSequences,
245
251
  },
246
252
  safetySettings: options.safetySettings,
@@ -315,7 +321,9 @@ export class GeminiIntelligenceTool extends oLaneTool {
315
321
  temperature: options.temperature,
316
322
  topK: options.topK,
317
323
  topP: options.topP,
318
- maxOutputTokens: options.maxOutputTokens,
324
+ maxOutputTokens: process.env.MAX_TOKENS
325
+ ? parseInt(process.env.MAX_TOKENS, 10)
326
+ : options.maxOutputTokens,
319
327
  stopSequences: options.stopSequences,
320
328
  },
321
329
  safetySettings: options.safetySettings,
@@ -1 +1 @@
1
- {"version":3,"file":"openai-intelligence.tool.d.ts","sourceRoot":"","sources":["../../src/openai-intelligence.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,QAAQ,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,cAAc,EAAe,MAAM,eAAe,CAAC;AAkK7E,qBAAa,sBAAuB,SAAQ,SAAS;IACnD,OAAO,CAAC,OAAO,CAAuC;IACtD,OAAO,CAAC,YAAY,CAAmB;IACvC,OAAO,CAAC,YAAY,CAAC,CAAS;IAC9B,OAAO,CAAC,MAAM,CAA4C;gBAE9C,MAAM,EAAE,eAAe;IAUnC;;OAEG;IACG,gBAAgB,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,UAAU,CAAC;IAmFpE;;OAEG;YACY,iBAAiB;IA2HhC;;OAEG;IACG,cAAc,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,UAAU,CAAC;IAkFlE;;OAEG;YACY,eAAe;IAwH9B;;OAEG;IACG,iBAAiB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IAgD/D;;OAEG;IACG,gBAAgB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IA+C9D;;OAEG;IACG,YAAY,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IAwC1D;;OAEG;IACG,qBAAqB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IAgFnE;;OAEG;IACG,iBAAiB,CAAC,OAAO,EAAE,QAAQ,GAAG,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C,UAAU,CAAC;IAqF/D;;OAEG;IACG,oBAAoB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;CAuGnE"}
@@ -214,6 +214,9 @@ export class OpenAIIntelligenceTool extends oLaneTool {
214
214
  prompt: prompt,
215
215
  stream: false,
216
216
  ...options,
217
+ max_tokens: process.env.MAX_TOKENS
218
+ ? parseInt(process.env.MAX_TOKENS, 10)
219
+ : options.max_tokens,
217
220
  };
218
221
  const headers = {
219
222
  'Content-Type': 'application/json',
@@ -276,6 +279,9 @@ export class OpenAIIntelligenceTool extends oLaneTool {
276
279
  prompt: prompt,
277
280
  stream: true,
278
281
  ...options,
282
+ max_tokens: process.env.MAX_TOKENS
283
+ ? parseInt(process.env.MAX_TOKENS, 10)
284
+ : options.max_tokens,
279
285
  };
280
286
  const headers = {
281
287
  'Content-Type': 'application/json',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@olane/o-intelligence",
3
- "version": "0.7.62",
3
+ "version": "0.8.1",
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.62",
58
- "@olane/o-core": "0.7.62",
59
- "@olane/o-lane": "0.7.62",
60
- "@olane/o-protocol": "0.7.62",
61
- "@olane/o-tool": "0.7.62",
57
+ "@olane/o-config": "0.8.1",
58
+ "@olane/o-core": "0.8.1",
59
+ "@olane/o-lane": "0.8.1",
60
+ "@olane/o-protocol": "0.8.1",
61
+ "@olane/o-tool": "0.8.1",
62
62
  "debug": "^4.4.1",
63
63
  "dotenv": "^16.5.0"
64
64
  },
65
- "gitHead": "98ea2724c4a764edb33f6fec648d735ed5c236af"
65
+ "gitHead": "b84ad7d1c5411d38f3e7ab3c53d336195e7838e9"
66
66
  }