DocsAI 连接 / ChatGPT
ChatGPT
ChatGPT 的连接方式有两种。① Pro/Enterprise 的 Custom Connector(MCP) 功能;② 通过 GPT Builder 的 Custom GPT Action 直接调用 REST API。
前置条件
ChatGPT Pro/Team/Enterprise 套餐,或可创建 Custom GPT 的 Plus 及以上账户。Action 方式需要 FindIP API Key。
配置步骤
1
方式 ① — Custom Connector (Pro/Enterprise,推荐)
ChatGPT 左下角头像 → Settings → Connectors → Add custom connector → 在 URL 处填入以下值 → 在 OAuth 弹窗中登录 FindIP。
MCP URL
https://api.findip.ai/mcp
2
方式 ② — Custom GPT Action (Plus 及以上)
在 GPT Builder 创建新 GPT → Configure → Actions → Create new action → Authentication 选择 API Key,Custom Header Name = X-API-Key → 粘贴以下 OpenAPI 描述。
openapi.yaml (摘要)
openapi: 3.1.0
info:
title: FindIP Search
version: "1.0"
servers:
- url: https://api.findip.ai
paths:
/api/v1/search/semantic:
post:
operationId: semanticSearch
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
query: { type: string }
top_k: { type: integer, default: 10 }
responses:
"200": { description: ok }3
开始使用 GPT
在对话中以自然语言提出检索需求 → ChatGPT 自动调用 FindIP 并引用结果。
示例提示词
Prompt
"请对比 LG 新能源与三星 SDI 近 5 年在二次电池正极材料单晶合成工艺方面的主要韩国与美国申请。"
常见问题
找不到 Custom Connector 菜单。
属于套餐权限问题。请升级至 Pro 以上,或改用 GPT Builder 的 Action 方式。
Action 报 401 Unauthorized。
请确认 API Key 的请求头名称正是 X-API-Key,并在 控制台 中确认密钥处于启用状态。