异常日志完善

This commit is contained in:
zhaoqingliang
2025-10-30 18:25:03 +08:00
parent 89af7cd0a4
commit 39911d78ab
10 changed files with 142 additions and 9 deletions

View File

@ -29,10 +29,10 @@ async def main() -> None:
}
],
"temperature": 0.2,
"max_tokens": 256,
"max_tokens": 350,
}
async with httpx.AsyncClient(timeout=httpx.Timeout(20.0)) as client:
async with httpx.AsyncClient(timeout=httpx.Timeout(60.0)) as client:
response = await client.post(API_URL, json=payload)
response.raise_for_status()
data = response.json()