@aj-archipelago/cortex 1.3.25 → 1.3.26
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aj-archipelago/cortex",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.26",
|
|
4
4
|
"description": "Cortex is a GraphQL API for AI. It provides a simple, extensible interface for using AI services from OpenAI, Azure and others.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"repository": {
|
|
@@ -48,6 +48,10 @@ export default {
|
|
|
48
48
|
chatHistory: args.chatHistory.slice(-20)
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
+
if (generatorPathway === 'coding') {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
|
|
51
55
|
if (generatorPathway === 'sys_generator_document') {
|
|
52
56
|
generatorPathway = 'sys_generator_results';
|
|
53
57
|
newArgs.dataSources = ["mydata"];
|
|
@@ -215,9 +215,18 @@ export default {
|
|
|
215
215
|
|
|
216
216
|
title = await fetchTitleResponsePromise;
|
|
217
217
|
|
|
218
|
+
pathwayResolver.tool = JSON.stringify({
|
|
219
|
+
hideFromModel: toolCallbackName ? true : false,
|
|
220
|
+
toolCallbackName,
|
|
221
|
+
title,
|
|
222
|
+
search: toolCallbackName === 'sys_generator_results' ? true : false,
|
|
223
|
+
coding: toolCallbackName === 'coding' ? true : false,
|
|
224
|
+
codeRequestId,
|
|
225
|
+
toolCallbackId
|
|
226
|
+
});
|
|
227
|
+
|
|
218
228
|
if (toolCallbackMessage) {
|
|
219
229
|
if (args.skipCallbackMessage) {
|
|
220
|
-
pathwayResolver.tool = JSON.stringify({ hideFromModel: false, search: false, title });
|
|
221
230
|
return await callPathway('sys_entity_continue', { ...args, stream: false, model: styleModel, generatorPathway: toolCallbackName }, pathwayResolver);
|
|
222
231
|
}
|
|
223
232
|
|
|
@@ -225,20 +234,10 @@ export default {
|
|
|
225
234
|
if (!ackResponse) {
|
|
226
235
|
await say(pathwayResolver.requestId, toolCallbackMessage || "One moment please.", 10, args.voiceResponse ? true : false);
|
|
227
236
|
}
|
|
228
|
-
await callPathway('sys_entity_continue', { ...args, stream: true, generatorPathway: toolCallbackName }, pathwayResolver);
|
|
229
|
-
pathwayResolver.tool = JSON.stringify({ hideFromModel: false, search: false, title });
|
|
237
|
+
await callPathway('sys_entity_continue', { ...args, stream: true, generatorPathway: toolCallbackName }, pathwayResolver);
|
|
230
238
|
return;
|
|
231
239
|
}
|
|
232
240
|
|
|
233
|
-
pathwayResolver.tool = JSON.stringify({
|
|
234
|
-
hideFromModel: toolCallbackName ? true : false,
|
|
235
|
-
toolCallbackName,
|
|
236
|
-
title,
|
|
237
|
-
search: toolCallbackName === 'sys_generator_results' ? true : false,
|
|
238
|
-
coding: toolCallbackName === 'coding' ? true : false,
|
|
239
|
-
codeRequestId,
|
|
240
|
-
toolCallbackId
|
|
241
|
-
});
|
|
242
241
|
return toolCallbackMessage || "One moment please.";
|
|
243
242
|
}
|
|
244
243
|
|