We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 104340d commit a77f4a0Copy full SHA for a77f4a0
searxng_mcp/utils.py
@@ -247,6 +247,7 @@ def create_model(
247
base_url: Optional[str],
248
api_key: Optional[str],
249
ssl_verify: bool = True,
250
+ timeout: float = 300.0,
251
):
252
"""
253
Create a Pydantic AI model with the specified provider and configuration.
@@ -263,7 +264,7 @@ def create_model(
263
264
265
http_client = None
266
if not ssl_verify:
- http_client = httpx.AsyncClient(verify=False)
267
+ http_client = httpx.AsyncClient(verify=False, timeout=timeout)
268
269
if provider == "openai":
270
target_base_url = base_url
0 commit comments