@xuda.io/ai_module 1.1.5456 → 1.1.5458
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 +4 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -4703,13 +4703,15 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4703
4703
|
if (!val.plugin_method) {
|
|
4704
4704
|
throw new Error('undefined method');
|
|
4705
4705
|
}
|
|
4706
|
-
|
|
4706
|
+
|
|
4707
|
+
const { plugin_method, type, plugin_name, ...params } = val;
|
|
4708
|
+
|
|
4707
4709
|
const tool = await get_plugin_tool(
|
|
4708
4710
|
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,
|
|
4709
4711
|
ai_agent_doc?.reference_doc?.studio_meta?.shared_from_uid || ai_agent_doc?.reference_doc?.studio_meta?.installed_from_app_uid || uid,
|
|
4710
4712
|
val.plugin_id,
|
|
4711
4713
|
val.plugin_method,
|
|
4712
|
-
|
|
4714
|
+
params,
|
|
4713
4715
|
undefined,
|
|
4714
4716
|
undefined,
|
|
4715
4717
|
ai_agent_doc,
|