langflow-ai / langflow

Langflow is a low-code app builder for RAG and multi-agent AI applications. It’s Python-based and agnostic to any model, API, or database.
http://www.langflow.org
MIT License
33.52k stars 4.07k forks source link

How to increase API timeout more then 60 sec #4442

Open buntys2010 opened 3 hours ago

buntys2010 commented 3 hours ago

Bug Description

The API responds very slow, if the workflow is too long or call LLM multiple times the API fail to respond due to timeout error with 504.

How to increase the API timeout limit?

Reproduction

The API responds very slow, if the workflow is too long or call LLM multiple times the API fail to respond due to timeout error with 504.

How to increase the API timeout limit?

Expected behavior

The API should have timeout parameter to set the API timeout issues.

Who can help?

No response

Operating System

ubuntu 22.04

Langflow Version

1.0.17

Python Version

3.10

Screenshot

No response

Flow File

No response

dosubot[bot] commented 3 hours ago

To increase the API timeout in Langflow beyond the default 60 seconds, you can use the --timeout option in the command line interface when starting the application. This allows you to specify a custom timeout value that suits your needs [1].

To continue talking to Dosu, mention @dosu.