"docs/vscode:/vscode.git/clone" did not exist on "a462df2ec29bbf71858575227700b8628c25cd7c"
Unverified Commit 569b032c authored by fzyzcjy's avatar fzyzcjy Committed by GitHub
Browse files

[PD] Tiny fix timeout error when generate (#5545)

parent f6a71139
......@@ -26,7 +26,11 @@ class MiniLoadBalancer:
self, modified_request, prefill_server, decode_server
) -> ORJSONResponse:
async with aiohttp.ClientSession() as session:
async with aiohttp.ClientSession(
timeout=aiohttp.ClientTimeout(
total=3600
) # Add timeout for request reliability
) as session:
tasks = [
session.post(f"{prefill_server}/generate", json=modified_request),
session.post(f"{decode_server}/generate", json=modified_request),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment