Skip to content

Commit a77f4a0

Browse files
committed
Fixed load. Comment cleanup.
1 parent 104340d commit a77f4a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

searxng_mcp/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ def create_model(
247247
base_url: Optional[str],
248248
api_key: Optional[str],
249249
ssl_verify: bool = True,
250+
timeout: float = 300.0,
250251
):
251252
"""
252253
Create a Pydantic AI model with the specified provider and configuration.
@@ -263,7 +264,7 @@ def create_model(
263264
"""
264265
http_client = None
265266
if not ssl_verify:
266-
http_client = httpx.AsyncClient(verify=False)
267+
http_client = httpx.AsyncClient(verify=False, timeout=timeout)
267268

268269
if provider == "openai":
269270
target_base_url = base_url

0 commit comments

Comments
 (0)