@xuda.io/ai_module 1.1.5296 → 1.1.5298

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 +3 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -4656,6 +4656,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
4656
4656
  break;
4657
4657
  }
4658
4658
  case 'plugin': {
4659
+ debugger;
4659
4660
  if (reference_type !== 'ai_agents' && !prompt_suggestion_activated) {
4660
4661
  eligible_agent = false;
4661
4662
  break;
@@ -4664,7 +4665,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
4664
4665
  if (!val.plugin_id) {
4665
4666
  throw new Error('undefined plugin_id');
4666
4667
  }
4667
- if (!val.method) {
4668
+ if (!val.plugin_method) {
4668
4669
  throw new Error('undefined method');
4669
4670
  }
4670
4671
  // const tool = await get_plugin_tool(app_id, uid, val.plugin_id, val.method, {});
@@ -4672,7 +4673,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
4672
4673
  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
4674
  ai_agent_doc?.reference_doc?.studio_meta?.shared_from_uid || ai_agent_doc?.reference_doc?.studio_meta?.installed_from_uid || uid,
4674
4675
  val.plugin_id,
4675
- val.method,
4676
+ val.plugin_method,
4676
4677
  {},
4677
4678
  );
4678
4679
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5296",
3
+ "version": "1.1.5298",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",