|
@@ -538,7 +538,7 @@ async def _openrouter_anthropic_call(
|
|
|
max_retries = 3
|
|
max_retries = 3
|
|
|
last_exception = None
|
|
last_exception = None
|
|
|
for attempt in range(max_retries):
|
|
for attempt in range(max_retries):
|
|
|
- async with httpx.AsyncClient(timeout=300.0) as client:
|
|
|
|
|
|
|
+ async with httpx.AsyncClient(timeout=300.0, proxy="http://127.0.0.1:7890") as client:
|
|
|
try:
|
|
try:
|
|
|
response = await client.post(endpoint, json=payload, headers=headers)
|
|
response = await client.post(endpoint, json=payload, headers=headers)
|
|
|
response.raise_for_status()
|
|
response.raise_for_status()
|
|
@@ -662,7 +662,7 @@ async def openrouter_llm_call(
|
|
|
max_retries = 3
|
|
max_retries = 3
|
|
|
last_exception = None
|
|
last_exception = None
|
|
|
for attempt in range(max_retries):
|
|
for attempt in range(max_retries):
|
|
|
- async with httpx.AsyncClient(timeout=300.0) as client:
|
|
|
|
|
|
|
+ async with httpx.AsyncClient(timeout=300.0, proxy="http://127.0.0.1:7890") as client:
|
|
|
try:
|
|
try:
|
|
|
response = await client.post(endpoint, json=payload, headers=headers)
|
|
response = await client.post(endpoint, json=payload, headers=headers)
|
|
|
response.raise_for_status()
|
|
response.raise_for_status()
|