@xuda.io/ai_module 1.1.5252 → 1.1.5253

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 +7 -4
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -11113,9 +11113,8 @@ export const get_chat_suggestions = async function (req) {
11113
11113
  //${conversation_item_doc.text}
11114
11114
  // Prompt Category: ${conversation_doc?.category_info?.category}
11115
11115
  // Input: ${conversation_item_doc.prompt || conversation_doc.prompt}
11116
- const chat_ret = await submit_chat_gpt_prompt({
11117
- uid,
11118
- prompt: `
11116
+
11117
+ const prompt = `
11119
11118
 
11120
11119
  Role: You are an expert Routing Assistant specialized in connecting users with the most relevant specialized AI agents.
11121
11120
 
@@ -11149,7 +11148,11 @@ export const get_chat_suggestions = async function (req) {
11149
11148
  ## output example:
11150
11149
  [{"type":"agent",agent_id:"392_agn_55cb328d2743",short_action:"Create article","agent_description":"create proffessional article..."}]
11151
11150
 
11152
- `,
11151
+ `;
11152
+
11153
+ const chat_ret = await submit_chat_gpt_prompt({
11154
+ uid,
11155
+ prompt,
11153
11156
  model: ai_model,
11154
11157
  response_format: AgentResponseSchema,
11155
11158
  metadata: { conversation_item_id, func: 'get_chat_suggestions' },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5252",
3
+ "version": "1.1.5253",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",