Giter VIP home page Giter VIP logo

pplx-proxy's Introduction

PPLX-Proxy

A proxy for Perplexity AI

把 Perplexity 转换为 Anthropic 格式的通用代理。

Usage 使用方法

It is forbidden to use this project for profit.

仅供个人部署用于访问自己合法取得的订阅,严禁用于转售或其他商业用途。不提供任何技术支持、不为任何违规使用导致的封号负责。

pplx-proxy's People

Contributors

archeb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

pplx-proxy's Issues

wss链接改变导致脚本失效?

(本人纯小白,如有出错还请见谅)
我调用api时后台报错显示建立wss链接错误,对比了后台建立的链接wss://www.perplexity.ai:443/socket.io/?EIO=4&transport=websocket与官网的wss链接,似乎现在官网的会在每次打开网页后面加一串会话id
14e93f0b42f1b020fda0050462c44dc5
请问大佬有时间方便修下脚本吗,谢谢
以下是报错消息

[ { 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格式了,并添加上传文档的功能,😊

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.