@aj-archipelago/cortex 1.3.38 → 1.3.39

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.38",
3
+ "version": "1.3.39",
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": {
@@ -16,6 +16,7 @@ export default {
16
16
  }),
17
17
  ],
18
18
  inputParameters: {
19
+ chatHistory: [{role: '', content: []}],
19
20
  title: '',
20
21
  text: '',
21
22
  },
@@ -252,8 +252,6 @@ export default {
252
252
  // truncate the chat history in case there is really long content
253
253
  const truncatedChatHistory = resolver.modelExecutor.plugin.truncateMessagesToTargetLength(args.chatHistory, null, 1000);
254
254
 
255
- const fetchTitleResponsePromise = callPathway('chat_title', {...args, chatHistory: truncatedChatHistory, stream: false});
256
-
257
255
  // Add the memory context to the chat history if applicable
258
256
  if (truncatedChatHistory.length > 1 && entityUseMemory) {
259
257
  const memoryContext = await callPathway('sys_read_memory', { ...args, chatHistory: truncatedChatHistory, section: 'memoryContext', priority: 0, recentHours: 0, stream: false }, resolver);
@@ -271,9 +269,6 @@ export default {
271
269
  try {
272
270
  let currentMessages = JSON.parse(JSON.stringify(args.chatHistory));
273
271
 
274
- const title = await fetchTitleResponsePromise;
275
- pathwayResolver.tool = JSON.stringify({ title });
276
-
277
272
  let response = await runAllPrompts({
278
273
  ...args,
279
274
  chatHistory: currentMessages,