@xuda.io/ai_module 1.1.5321 → 1.1.5322

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 +2 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -4667,7 +4667,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
4667
4667
  if (!val.plugin_method) {
4668
4668
  throw new Error('undefined method');
4669
4669
  }
4670
- // const tool = await get_plugin_tool(app_id, uid, val.plugin_id, val.method, {});
4670
+
4671
4671
  const tool = await get_plugin_tool(
4672
4672
  ai_agent_doc?.reference_doc?.studio_meta?.shared_from_app_id || ai_agent_doc?.reference_doc?.studio_meta?.installed_from_app_id || account_profile_info.app_id,
4673
4673
  ai_agent_doc?.reference_doc?.studio_meta?.shared_from_uid || ai_agent_doc?.reference_doc?.studio_meta?.installed_from_uid || uid,
@@ -5333,7 +5333,7 @@ const get_plugin_tool = async function (app_id, uid, plugin_name, method, prop_d
5333
5333
  // resolve(ret_exec);
5334
5334
  // return ret_exec;
5335
5335
  // return `program ${ret_exec.data.id} saved`;
5336
- return JSON.stringify(ret_exec);
5336
+ return _.isObject(ret_exec) ? JSON.stringify(ret_exec) : ret_exec;
5337
5337
  } catch (err) {
5338
5338
  console.error(err);
5339
5339
  // reject(err.message);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5321",
3
+ "version": "1.1.5322",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",