Synchronous is Gold #207
AverniteDF
started this conversation in
General
Replies: 1 comment
-
I've created a starting point for this effort at https://github.com/AverniteDF/poe-bot-server-wsgi for anyone who's interested. The WSGI-implemented server bot is currently available on Poe as Server-Bot-WSGI. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What I find most interesting about this project is its ability to access Poe's API in a synchronous manner (WSGI-compatible).
Has anyone gotten a cPanel-created Python web application in a shared hosting environment to work as a functional server bot?
The difficult part is getting such a server bot to communicate with an LLM such as 'GPT-3.5-Turbo' via Poe's API to relay interesting responses back to the user.
This is because Poe's documentation pushes Modal cloud service and asynchronous (ASGI) code examples that use
fastapi_poe
.But what about the hobbyist who just wants to play around with creating a server bot using a Python web app on their inexpensive shared hosting account?
At the end of the day we're just passing JSON payloads from one endpoint to another via HTTP POSTs. Sync implementation should work for this and async should be optional, no?
Could the synchronous methods in
poe_api_wrapper/api.py
be adapted to create a library that would make it practical (and safe) for the everyman to create server chatbots on their shared hosting account? This would be useful to a lot of people, including myself! No dependency on cloud service so you can sleep at night.Beta Was this translation helpful? Give feedback.
All reactions