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

Fix SSE #19

Closed ClassicOldSong closed 1 year ago

juzeon commented 1 year ago

Hello. It seems that the change causes network-related issues. The operation of add_token takes 3 to 10 seconds in my environment. Therefore, calling add_token every time may not be an optimal way. Could you please find a better solution, such as setting this as optional?

ClassicOldSong commented 1 year ago

This is a fallback routine. It won't happen every time a message is sent. When the API server restarts, the Go server won't re-add the token. So this will only happen when the API server gets restarted.

居正 @.***> 于2023年6月5日周一 10:22写道:

Hello. It seems that the change causes network-related issues. The operation of add_token takes 3 to 10 seconds in my environment. Therefore, calling add_token every time may not be an optimal way. Could you please find a better solution, such as setting this as optional?

— Reply to this email directly, view it on GitHub https://github.com/juzeon/poe-openai-proxy/pull/19#issuecomment-1575944974, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACQGQJUZG533WNRDAJBHHDDXJU7FVANCNFSM6AAAAAAY2CJ4AY . You are receiving this because you authored the thread.Message ID: @.***>

ClassicOldSong commented 1 year ago

What's more, poe-api was updated with a faster and more stable response time. You may consider upgrading poe-api in your environment.

Yukino Song @.***> 于2023年6月5日周一 10:48写道:

This is a fallback routine. It won't happen every time a message is sent. When the API server restarts, the Go server won't re-add the token. So this will only happen when the API server gets restarted.

居正 @.***> 于2023年6月5日周一 10:22写道:

Hello. It seems that the change causes network-related issues. The operation of add_token takes 3 to 10 seconds in my environment. Therefore, calling add_token every time may not be an optimal way. Could you please find a better solution, such as setting this as optional?

— Reply to this email directly, view it on GitHub https://github.com/juzeon/poe-openai-proxy/pull/19#issuecomment-1575944974, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACQGQJUZG533WNRDAJBHHDDXJU7FVANCNFSM6AAAAAAY2CJ4AY . You are receiving this because you authored the thread.Message ID: @.***>

juzeon commented 1 year ago

Thank you for your clarification. Please accept my apologies for the misunderstanding. I'm working on the merge right now.