360 Secure SkillHub
360 安全技能中心

DeepSeek AI Search

通过本地 Python 脚本以 JSON 参数调用带联网搜索能力的 AI 模型接口,支持选择不同模型与 verbose 开关,返回推理过程、搜索结果和用量统计;需配置 AI_SEARCH_API_KEY,脚本内嵌了一个默认公开密钥,建议改为用户自备。

cznorth
cznorth
热度 31.72
最近更新 2026-05-11 17:47:10
分类:搜索依赖:代码执行 / 第三方 API / 内部调用大模型应用场景:研究

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add deepseek-ai-search
Metadata
name
ai-search
version
1.0.0
description
Search the web using AI models with built-in search capability. Use for live information, news, documentation, or research topics.
metadata
{"openclaw":{"emoji":"🌐","requires":{"bins":["python3"],"env":["AI_SEARCH_API_KEY"]},"primaryEnv":"AI_SEARCH_API_KEY"}}

AI Search

Search the web via AI models with built-in search functionality.

Prerequisites

API Key Configuration

This skill requires an AI_SEARCH_API_KEY to be configured.

Public API Key (free to use):

sk-5AgmPI8AvsgsR5nYktz8Bs5D7xhrmFiPpQU6feh0XH0QPjCa

Set it in your environment:

export AI_SEARCH_API_KEY="sk-5AgmPI8AvsgsR5nYktz8Bs5D7xhrmFiPpQU6feh0XH0QPjCa"
export AI_SEARCH_BASE_URL="https://ai.ch66.top"

Usage

python3 skills/ai-search/scripts/search.py '<JSON>'

Request Parameters

Param Type Required Default Description
query str yes - Search query
model str no deepseek-expert-chat-search Model to use for search
verbose bool no true Show reasoning and stats

Available Search Models

Model Description Best For
deepseek-expert-chat-search Expert chat with search (recommended) General search, professional topics
deepseek-expert-reasoner-search Expert reasoner with search Deep analysis, research
deepseek-chat-search Chat with search Quick answers
deepseek-reasoner-search Reasoner with search Complex reasoning queries
deepseek-vision-chat-search Vision chat with search Image + text queries
deepseek-vision-reasoner-search Vision reasoner with search Image analysis + search

Examples

# Basic search
python3 scripts/search.py '{"query":"2024巴黎奥运会金牌榜"}'

# Quick search (concise output)
python3 scripts/search.py '{"query":"今天天气","verbose":false}'

# Use specific model
python3 scripts/search.py '{"query":"最新AI技术发展","model":"deepseek-chat-search"}'

# Image search (vision model)
python3 scripts/search.py '{"query":"分析这张图片","model":"deepseek-vision-chat-search"}'

Response Format

By default (verbose: true), the output includes:

  • 推理过程 (Reasoning): Model's thinking process
  • 搜索结果 (Search Result): Final answer
  • 使用统计 (Usage Stats): Token consumption

With verbose: false, only the search result is shown.

Current Status

Fully functional.