Minimax Tts
v2Use Zhipu (智谱) 网页 搜索 API for 搜索ing the internet. Use when user asks for 网页 搜索, latest news, or needs current in格式化ion.
运行时依赖
安装命令
点击复制技能文档
Zhipu 网页 搜索
Use Zhipu's 网页 搜索 API to 搜索 the internet.
⚠️ Security Requirements
This 技能 requires MINIMAX_API_KEY 环境 variable to be 设置 before use.
Security Best Practices: DO NOT store API keys in ~/.bashrc - keys can be leaked DO NOT source shell configuration files - 预防s arbitrary code execution 设置 环境 variable directly when 运行ning the script Be aware API key will be visible in process 列出 (ps aux) 设置up # 设置 API key as 环境 variable 导出 MINIMAX_API_KEY="your_API_key"
获取 your API key from: https://www.big模型.cn/usercenter/proj-mgmt/APIkeys
Usage Quick 搜索 导出 MINIMAX_API_KEY="your_key"
curl -s -X POST "https://open.big模型.cn/API/paas/v4/chat/completions" \ -H "Authorization: Bearer $MINIMAX_API_KEY" \ -H "Content-Type: 应用/json" \ -d '{ "模型": "glm-4-flash", "messages": [{"角色": "user", "content": "搜索: YOUR_查询"}], "工具s": [{"type": "网页_搜索", "网页_搜索": {"搜索_查询": "YOUR_查询"}}] }' | jq -r '.choices[0].message.content'
Using the Script 导出 MINIMAX_API_KEY="your_key" ./搜索.sh "搜索内容"
Security Analysis ✅ What's Safe: No sourcing of ~/.bashrc or shell config files Uses jq for JSON escAPIng (预防s injection) Uses HTTPS with TLS 1.2+ API key via 环境 variable (not hardcoded) Proper error handling - sensitive 信息 not leaked 输入 验证 (查询 length limit) Generic error messages (no path/file hints) ⚠️ Considerations: Process 列出 visibility: API key visible in ps aux Use in trusted 环境s only 端点: https://open.big模型.cn (official Zhipu API) Safety Features Feature Implementation JSON escAPIng jq --arg 预防s injection 输入 验证 查询 length ≤500 chars TLS Force TLS 1.2+ Error handling Generic messages, no leaks Timeout 30 second curl timeout When to Use User says "搜索 for", "look up", "find in格式化ion about" User asks "what's the latest news about" User needs current in格式化ion from the 网页 API 端点
Official: https://open.big模型.cn/API/paas/v4/chat/completions