@xuda.io/ai_module 1.1.3874 → 1.1.3876
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 +2 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1828,7 +1828,7 @@ export const get_ai_chats = async function (req, job_id, headers) {
|
|
|
1828
1828
|
],
|
|
1829
1829
|
};
|
|
1830
1830
|
}
|
|
1831
|
-
|
|
1831
|
+
|
|
1832
1832
|
const app_id = await account_module.get_account_default_project_id(uid);
|
|
1833
1833
|
|
|
1834
1834
|
////// FROM - IN
|
|
@@ -4156,7 +4156,7 @@ const update_conversation_mood_level = async function (conversation_id, prompt,
|
|
|
4156
4156
|
try {
|
|
4157
4157
|
// analyze the mood of the conversation
|
|
4158
4158
|
const mood_level = await submit_chat_gpt_prompt({
|
|
4159
|
-
uid,
|
|
4159
|
+
uid: sender_uid,
|
|
4160
4160
|
prompt: `analyze the mood of the following prompt: ${prompt}. return -2: very negative,-1: negative 0:natural 1:positive 2: very positive.`,
|
|
4161
4161
|
model: 'gpt-5-nano',
|
|
4162
4162
|
response_format: z.object({
|