A proxy for Perplexity AI
把 Perplexity 转换为 Anthropic 格式的通用代理。
It is forbidden to use this project for profit.
仅供个人部署用于访问自己合法取得的订阅,严禁用于转售或其他商业用途。不提供任何技术支持、不为任何违规使用导致的封号负责。
A proxy for Perplexity AI
把 Perplexity 转换为 Anthropic 格式的通用代理。
It is forbidden to use this project for profit.
仅供个人部署用于访问自己合法取得的订阅,严禁用于转售或其他商业用途。不提供任何技术支持、不为任何违规使用导致的封号负责。
(本人纯小白,如有出错还请见谅)
我调用api时后台报错显示建立wss链接错误,对比了后台建立的链接wss://www.perplexity.ai:443/socket.io/?EIO=4&transport=websocket与官网的wss链接,似乎现在官网的会在每次打开网页后面加一串会话id
请问大佬有时间方便修下脚本吗,谢谢
以下是报错消息
[ { role: 'user', content: '你好' } ]
TransportError: websocket error
at WS.onError (/root/pplx-proxy/node_modules/engine.io-client/build/cjs/transport.js:47:37) at ws.onerror (/root/pplx-proxy/node_modules/engine.io-client/build/cjs/transports/websocket.js:77:39)
at callListener (/root/pplx-proxy/node_modules/ws/lib/event-target.js:290:14)
at WebSocket.onError (/root/pplx-proxy/node_modules/ws/lib/event-target.js:230:9)
at WebSocket.emit (node:events:519:28)
at emitErrorAndClose (/root/pplx-proxy/node_modules/ws/lib/websocket.js:1002:13)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
description: ErrorEvent {
[Symbol(kTarget)]: WebSocket {
_events: [Object: null prototype],
_eventsCount: 4,
_maxListeners: undefined,
_binaryType: 'nodebuffer',
_closeCode: 1006,
_closeFrameReceived: false,
_closeFrameSent: false,
_closeMessage: <Buffer >,
_closeTimer: null,
_extensions: {},
_paused: false,
_protocol: '',
_readyState: 2,
_receiver: null,
_sender: null,
_socket: null,
_bufferedAmount: 0,
_isServer: false,
_redirects: 0,
_url: 'wss://www.perplexity.ai:443/socket.io/?EIO=4&transport=websocket',
_req: [ClientRequest],
[Symbol(shapeMode)]: false,
[Symbol(kCapture)]: false
},
[Symbol(kType)]: 'error',
[Symbol(kError)]: Error: Unexpected server response: 403
at ClientRequest.<anonymous> (/root/pplx-proxy/node_modules/ws/lib/websocket.js:886:7)
at ClientRequest.emit (node:events:519:28)
at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:698:27)
at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17)
at TLSSocket.socketOnData (node:_http_client:540:22)
at TLSSocket.emit (node:events:519:28)
at addChunk (node:internal/streams/readable:559:12)
at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
at Readable.push (node:internal/streams/readable:390:5)
at TLSWrap.onStreamRead (node:internal/stream_base_commons:191:23),
[Symbol(kMessage)]: 'Unexpected server response: 403'
},
context: undefined,
type: 'TransportError'
}
> [Client closed]
能否将PPlx支持OpenAI格式,太多代理不支持Claude格式了,并添加上传文档的功能,😊
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.