Budibase / budibase

Low code platform for building business apps and workflows in minutes. Supports PostgreSQL, MySQL, MariaDB, MSSQL, MongoDB, Rest API, Docker, K8s, and more 🚀
https://budibase.com
Other
22.62k stars 1.56k forks source link

[BUDI-7036] Timeout error when calling Chat GPT API #10660

Closed cnrodrig closed 1 year ago

cnrodrig commented 1 year ago

Describe the bug We are trying to integrate chat gpt with Budibase using chatgpt api. When we use short prompts it works but for larger prompts sometimes we get a timeout (10000 ms) EDIT: We have checked and sometimes with short prompts (that in Postman the response time is almost 0) we got the same error.

WhatsApp Image 2023-05-20 at 12 50 16

I understand that there is a QUERY_THREAD_TIMEOUT variable on self hosted deployments, but we don't know what to do in the cloud

To Reproduce Steps to reproduce the behavior:

  1. Go to Data -> GPT-API source --> Test Prompt con texto completo Endpint
  2. Click on Send
  3. "Sometimes" we get the error (depends on the response time)

    • OS: Windows 11
    • Browser Chrome
    • Version 113.0.5672.127

BUDI-7036

mike12345567 commented 1 year ago

Hi @cnrodrig - our Cloud platform has a max timeout of 10 seconds in the Cloud - this is not configurable. If you wish to have a longer timeout then self hosting can be utilised, with the QUERY_THREAD_TIMEOUT environment variable set.