@xuda.io/ai_module 1.1.5570 → 1.1.5572
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 +6 -5
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -4166,7 +4166,7 @@ const get_ai_agent_tools = async function ({ ai_agent_doc, agent_id, reference_t
|
|
|
4166
4166
|
eligible_agent = false;
|
|
4167
4167
|
break;
|
|
4168
4168
|
}
|
|
4169
|
-
|
|
4169
|
+
|
|
4170
4170
|
try {
|
|
4171
4171
|
debugger;
|
|
4172
4172
|
const api_allow_methods = Object.keys(_conf.cpi_methods);
|
|
@@ -4176,6 +4176,7 @@ const get_ai_agent_tools = async function ({ ai_agent_doc, agent_id, reference_t
|
|
|
4176
4176
|
if (!method_prop) continue;
|
|
4177
4177
|
if (method_prop.private) continue;
|
|
4178
4178
|
if (!method_prop.description) continue;
|
|
4179
|
+
if (!method_prop.mcp) continue;
|
|
4179
4180
|
|
|
4180
4181
|
let inputSchema = {};
|
|
4181
4182
|
|
|
@@ -6603,10 +6604,10 @@ const create_ai_agent_image = async function (req, job_id, headers) {
|
|
|
6603
6604
|
// const model = 'gpt-image-1-mini';
|
|
6604
6605
|
const prompt = `
|
|
6605
6606
|
Create a futuristic, profile portrait with a transparent background.
|
|
6606
|
-
Use the provided image
|
|
6607
|
-
|
|
6608
|
-
Make the character a complete metallic,
|
|
6609
|
-
|
|
6607
|
+
Use the provided image as reference.
|
|
6608
|
+
|
|
6609
|
+
Make the character a complete metallic,
|
|
6610
|
+
|
|
6610
6611
|
Center the character facing forward, with subtle top spacing, showing only the head and shoulders.
|
|
6611
6612
|
Style the humanoid with functional, minimal attire integrated into its form (such as collars,
|
|
6612
6613
|
layered panels, shoulder structures, or fabric-like surfaces), avoiding human fashion tropes.
|