@xuda.io/ai_module 1.1.3537 → 1.1.3539
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
|
@@ -1714,7 +1714,7 @@ export const get_chat_conversation = async function (req) {
|
|
|
1714
1714
|
};
|
|
1715
1715
|
|
|
1716
1716
|
export const get_ai_chats = async function (req, job_id, headers) {
|
|
1717
|
-
let { uid, reference_id, _id, search, archived, pending, shared } = req;
|
|
1717
|
+
let { uid, reference_id, _id, search, archived, pending, shared, conversation_type } = req;
|
|
1718
1718
|
|
|
1719
1719
|
const get_conversation_background = function (doc) {
|
|
1720
1720
|
let deg = 145;
|
|
@@ -3679,7 +3679,7 @@ export const submit_chat_gpt_prompt = async function (req) {
|
|
|
3679
3679
|
};
|
|
3680
3680
|
export const create_conversation = async function (req, job_id, headers) {
|
|
3681
3681
|
const { uid, prompt } = req;
|
|
3682
|
-
let { reference_type, reference_id, conversation_type } = req;
|
|
3682
|
+
let { reference_type, reference_id = '', conversation_type } = req;
|
|
3683
3683
|
const app_id = await account_module.get_account_default_project_id(uid);
|
|
3684
3684
|
|
|
3685
3685
|
try {
|