Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
Set 5 min timeout for LLM calls (#358)
Kerem Yilmaz753bac31746c
diff --git a/skyvern/config.py b/skyvern/config.pyindex c5a835c2c..7e79466b6 100644--- a/skyvern/config.py+++ b/skyvern/config.py@@ -64,6 +64,7 @@ class Settings(BaseSettings):# ACTIVE LLM PROVIDERLLM_KEY: str = "OPENAI_GPT4O"# COMMON+ LLM_CONFIG_TIMEOUT: int = 300LLM_CONFIG_MAX_TOKENS: int = 4096LLM_CONFIG_TEMPERATURE: float = 0# LLM PROVIDER SPECIFICdiff --git a/skyvern/forge/sdk/api/llm/api_handler_factory.py b/skyvern/forge/sdk/api/llm/api_handler_factory.pyindex 0585988de..0c5f68b11 100644--- a/skyvern/forge/sdk/api/llm/api_handler_factory.py+++ b/skyvern/forge/sdk/api/llm/api_handler_factory.py@@ -190,8 +190,10 @@ class LLMAPIHandlerFactory:response = await litellm.acompletion(model=llm_config.model_name,messages=messages,+ timeout=SettingsManager.get_settings().LLM_CONFIG_TIMEOUT,**active_parameters,)+ LOG.info("LLM API call successful", llm_key=llm_key, model=llm_config.model_name)except openai.OpenAIError as e:raise LLMProviderError(llm_key) from eexcept Exception as e: