@xuda.io/ai_module 1.1.5267 → 1.1.5269

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.
Files changed (2) hide show
  1. package/index.mjs +4 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -11174,9 +11174,12 @@ export const get_chat_suggestions = async function (req) {
11174
11174
  response_format: AgentResponseSchema,
11175
11175
  metadata: { conversation_item_id, func: 'get_chat_suggestions' },
11176
11176
  account_profile_info,
11177
- response_id: conversation_item_doc.conversation_item_reference_id,
11178
11177
  };
11179
11178
 
11179
+ if (!context && conversation_item_doc?.conversation_item_reference_id) {
11180
+ opt.response_id = conversation_item_doc.conversation_item_reference_id;
11181
+ }
11182
+
11180
11183
  const chat_ret = await submit_chat_gpt_prompt(opt);
11181
11184
  try {
11182
11185
  const ret = JSON5.parse(chat_ret.data);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5267",
3
+ "version": "1.1.5269",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",