Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@


# Quora Poe reverse-engineered API
This is a self hostable, reverse-engineered API for Quora's Poe that allows access to the following chatbots:

Expand Down Expand Up @@ -50,7 +52,7 @@ Access the url given, in your browser to confirm it works. This is your bot serv

### Example
```bash
curl http://127.0.0.1/chat/capybara -d '{"Cookie: m-b=xxxx" , "formkey: xxxxx", "message":"What is the meaning of life?"}'
curl -X POST http://127.0.0.1:8000/chat/capybara -H "Content-Type: application/json" -d '{"cookie": "m-b=xxxx", "formkey": "xxxxx", "message": "What is the meaning of life?"}'

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

Include the required bot field in the request body.

api.py:17-21 declares bot as required, and api.py:23-88 reads options.bot. This request omits the field, so FastAPI returns HTTP 422 before the handler runs.

Proposed fix
-curl -X POST http://127.0.0.1:8000/chat/capybara -H "Content-Type: application/json" -d '{"cookie": "m-b=xxxx", "formkey": "xxxxx", "message": "What is the meaning of life?"}'
+curl -X POST http://127.0.0.1:8000/chat/capybara -H "Content-Type: application/json" -d '{"bot": "capybara", "cookie": "m-b=xxxx", "formkey": "xxxxx", "message": "What is the meaning of life?"}'
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
curl -X POST http://127.0.0.1:8000/chat/capybara -H "Content-Type: application/json" -d '{"cookie": "m-b=xxxx", "formkey": "xxxxx", "message": "What is the meaning of life?"}'
curl -X POST http://127.0.0.1:8000/chat/capybara -H "Content-Type: application/json" -d '{"bot": "capybara", "cookie": "m-b=xxxx", "formkey": "xxxxx", "message": "What is the meaning of life?"}'
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@README.md` at line 55, Update the README curl example to include the required
bot field in its JSON request body, using the expected bot identifier while
preserving the existing cookie, formkey, and message fields.

```
Response:
```json
Expand Down