Skip to content

Commit 1e4738b

Browse files
committed
Update mock_server.py
1 parent 6e8e3c8 commit 1e4738b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/mock_server.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import httpx
12
import os
23
import json
34
import time
@@ -117,7 +118,8 @@ def __init__(self, api_key: str):
117118
# We instantiate a new client per request to ensure isolation of user credentials
118119
self.client = AsyncOpenAI(
119120
api_key=api_key,
120-
base_url=SILICON_FLOW_BASE_URL
121+
base_url=SILICON_FLOW_BASE_URL,
122+
timeout=httpx.Timeout(connect=10.0, read=600.0, write=600.0, pool=10.0)
121123
)
122124

123125
def _get_mapped_model(self, request_model: str) -> str:

0 commit comments

Comments
 (0)