poe-platform / server-bot-quick-start

Tutorial for Poe server bots
1.31k stars 192 forks source link

Bot ran into problem answering request #34

Closed JohnPham69 closed 1 year ago

JohnPham69 commented 1 year ago

So I've created a bot on the with the link (https://poe.com/create_bot?api=1) after I run model deploy main.py on my terminal. After creating a bot I get this error (This occurs when I create a bot that request chatGPT or Claude-instant): image Please help, I don't know how to fix. My bot handle https://poe.com/qwerty11

Also, I would like to ask, if there is a way to make a request to the bot from my terminal

JelleZijlstra commented 1 year ago

It seems your server isn't running fastapi-poe at the right location. I just followed the tutorial and ran a bot that is now exposed at https://jellezijlstra--poe-bot-quickstart-fastapi-app.modal.run/. When you make a GET request to the root page for your app, you should see the Congratulations! Your server is running message. When I go to the root page of your Modal deployment, I instead get a piece of JSON with a 404 error code.

You can make a request to the bot from the terminal, basically by following the spec (https://developer.poe.com/api-bots/poe-protocol-specification). The fastapi_poe.client module also provides a way to do this.