Skip to content
Merged
Show file tree
Hide file tree
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: 2 additions & 2 deletions vlmrun/client/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def completions(self):
openai_client = OpenAI(
api_key=self._client.api_key,
base_url=base_url,
timeout=self._client.timeout,
timeout=self._client.timeout if self._client.timeout is None else max(self._client.timeout, 600),
max_retries=self._client.max_retries,
)

Expand Down Expand Up @@ -374,7 +374,7 @@ async def main():
async_openai_client = AsyncOpenAI(
api_key=self._client.api_key,
base_url=base_url,
timeout=self._client.timeout,
timeout=self._client.timeout if self._client.timeout is None else max(self._client.timeout, 600),
max_retries=self._client.max_retries,
)

Expand Down
2 changes: 1 addition & 1 deletion vlmrun/client/executions.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def get(self, id: str) -> AgentExecutionResponse:
return AgentExecutionResponse(**response)

def wait(
self, id: str, timeout: int = 300, sleep: int = 5
self, id: str, timeout: int = 600, sleep: int = 5
) -> AgentExecutionResponse:
"""Wait for execution to complete.

Expand Down
2 changes: 1 addition & 1 deletion vlmrun/client/predictions.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def get(self, id: str) -> PredictionResponse:

return prediction

def wait(self, id: str, timeout: int = 300, sleep: int = 5) -> PredictionResponse:
def wait(self, id: str, timeout: int = 600, sleep: int = 5) -> PredictionResponse:
"""Wait for prediction to complete.

Args:
Expand Down
Loading