Skip to content
Open
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
5 changes: 3 additions & 2 deletions dacomp-da/evaluation_suite/core/llm_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ def _http_completion(
payload = _prepare_payload_model_tweaks(model_name, payload)

# Match agent behavior: retry with logging
for attempt in range(1, 3001):
max_retries = 10
for attempt in range(1, max_retries + 1):
try:
response = requests.post(
base_url,
Expand All @@ -164,7 +165,7 @@ def _http_completion(
)
except requests.RequestException as exc:
logger.error("Failed to call model {}: {}", model_name, exc)
time.sleep(0.2)
time.sleep(30)
continue

try:
Expand Down