@xuda.io/ai_module 1.1.5177 → 1.1.5179
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/index.mjs +6 -4
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -3429,7 +3429,7 @@ export const delete_prompt_attachment = async function (req, job_id, headers, fi
|
|
|
3429
3429
|
};
|
|
3430
3430
|
|
|
3431
3431
|
export const submit_chat_gpt_prompt = async function (req) {
|
|
3432
|
-
const { model = _conf.default_ai_model, prompt, response_format, uid, metadata = {}, account_profile_info, tools = [], conversation_id, response_id } = req; //'gpt-5-mini
|
|
3432
|
+
const { model = _conf.default_ai_model, prompt = '', response_format, uid, metadata = {}, account_profile_info, tools = [], conversation_id, response_id } = req; //'gpt-5-mini
|
|
3433
3433
|
|
|
3434
3434
|
let formattedParams;
|
|
3435
3435
|
if (response_format) {
|
|
@@ -3443,7 +3443,6 @@ export const submit_chat_gpt_prompt = async function (req) {
|
|
|
3443
3443
|
model,
|
|
3444
3444
|
input: prompt,
|
|
3445
3445
|
tools,
|
|
3446
|
-
|
|
3447
3446
|
text: {
|
|
3448
3447
|
format: formattedParams,
|
|
3449
3448
|
},
|
|
@@ -10978,7 +10977,7 @@ export const get_chat_suggestions = async function (req) {
|
|
|
10978
10977
|
const AgentResponseSchema = z.object({
|
|
10979
10978
|
agents: z.array(AgentItemSchema).length(no_of_suggestions),
|
|
10980
10979
|
});
|
|
10981
|
-
|
|
10980
|
+
//${conversation_item_doc.text}
|
|
10982
10981
|
const chat_ret = await submit_chat_gpt_prompt({
|
|
10983
10982
|
uid,
|
|
10984
10983
|
prompt: `
|
|
@@ -11005,7 +11004,7 @@ export const get_chat_suggestions = async function (req) {
|
|
|
11005
11004
|
|
|
11006
11005
|
Input: ${conversation_item_doc.prompt || conversation_doc.prompt}
|
|
11007
11006
|
|
|
11008
|
-
Output to Process:
|
|
11007
|
+
Output to Process: Use the previous response output as the content to analyze for next agents.
|
|
11009
11008
|
|
|
11010
11009
|
Agent Source: ${JSON.stringify(agents_docs)}
|
|
11011
11010
|
|
|
@@ -11020,6 +11019,9 @@ export const get_chat_suggestions = async function (req) {
|
|
|
11020
11019
|
response_format: AgentResponseSchema,
|
|
11021
11020
|
metadata: { conversation_item_id, func: 'get_chat_suggestions' },
|
|
11022
11021
|
account_profile_info,
|
|
11022
|
+
undefined,
|
|
11023
|
+
undefined,
|
|
11024
|
+
conversation_item_doc,
|
|
11023
11025
|
});
|
|
11024
11026
|
try {
|
|
11025
11027
|
const ret = JSON5.parse(chat_ret.data);
|