chrishubert / whatsapp-api

This project is a REST API wrapper for the whatsapp-web.js library, providing an easy-to-use interface to interact with the WhatsApp Web platform.
https://www.christophehubert.com
Other
886 stars 398 forks source link

Receiving only partial response from Meta AI #275

Open carefulcomputer opened 1 month ago

carefulcomputer commented 1 month ago

When talking to meta ai, and asking a question, in the response object ( data.message._data.body ) only contains first few words of the response. I suspect that this is because of AI response being streamed.

To reproduce -

  1. Start a chat with meta ai.
  2. ask a question which requires descriptive response ('describe the main attractions in washington DC').
  3. check the response in api object (data.message._data.body). it only contains 5-10 words.
  4. compare with response in whatsapp which is several hundered words long.

Expected - Full response should be returned after meta ai stops responding.