从perplexity mcp docker 一键部署(pro账号无限额度ai搜索mcp)继续讨论:
这几天休息,有佬有这方面需求,故更新一版。顺便重构了整个结构,方便后续迭代。
使用方式:
OpenAI 兼容端点
使用方式
Base URL: http://127.0.0.1:8000/v1
认证: 在请求头中添加 Authorization: Bearer <MCP_TOKEN>
获取模型列表
curl http://127.0.0.1:8000/v1/models \
-H "Authorization: Bearer sk-123456"
聊天
curl http://127.0.0.1:8000/v1/chat/completions \
-H "Authorization: Bearer sk-123456" \
-H "Content-Type: application/json" \
-d '{
"model": "perplexity-reasoning",
"messages": [{"role": "user", "content": "分析一下人工智能的发展趋势"}],
"stream": true
}'