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

[Feature Request]增加检测机制,保证运行稳定性 #46

Open realnoob007 opened 1 year ago

realnoob007 commented 1 year ago

目前只是在添加token的时候会统一检测一遍token的可用性,但是实际在调用的时候也有可能频繁的触发问题。如果能在请求的时候发现返回的是“ERROR: websocket: RSV1 set, FIN not set on control”或者“Daily usage limit: Beaver .....”, 就自动删除此token并同时重新调用一次,这样能提高至少80%的稳定性。目前使用体验不好的原因主要是有时候一个message要请求四五回才成功,主要是我前面写的那两个错误。

mmw1984 commented 1 year ago

對的,希望提供

lwydyby commented 1 year ago

native-poe-sdk 分支已经支持token过期后自动移除过期client

RamSong commented 1 year ago

噢噢