juzeon / poe-openai-proxy

A wrapper that lets you use the reverse-engineered Python library poe-api library as if it was the OpenAI API for ChatGPT. You can connect your favorite OpenAI API based apps to this proxy and enjoy the ChatGPT API for free!
GNU General Public License v3.0
424 stars 98 forks source link

希望可在在環境變數中增加tokens/ 以此項目作為一個中轉代理,以poe token為api key #44

Closed mmw1984 closed 1 year ago

mmw1984 commented 1 year ago

例如 POE-TOKENS= your-poe-token

或是

請求的api key可以作為poe token

juzeon commented 1 year ago

你好,我沒有太聽明白你的意思,可以詳細描述一下你的需求嗎?

mmw1984 commented 1 year ago

以poe cookies作為api key 使用

juzeon commented 1 year ago

以poe cookies作為api key 使用

poe的cookies中包括一個token欄位,就是需要使用的cookies,只需要複製那個就行。

mmw1984 commented 1 year ago

以poe cookies作為openai 的api key 使用

mmw1984 commented 1 year ago

部署地址為base url, cookies為api key

senqi77 commented 1 year ago

我想他的意思是,搭建出来只有代理地址,没有token,在接入程序中的key那一栏,没有可填写的值

wingeva1986 commented 1 year ago

他的意思可能是想通过openai的消息层指定一个token,而不是从token池里轮询吧。我也有类似的需求,不走预设的token轮询,比如需要指定一些有订阅服务的token使用收费模型,但不是从openai消息去指定。