| 1234567891011 |
- import asyncio
- import httpx
- import uuid
- async def test():
- async with httpx.AsyncClient() as client:
- resp = await client.post("http://127.0.0.1:8001/chat", json={"message": "列举你的tool", "chat_id": uuid.uuid4().hex})
- print(resp.status_code)
- print(resp.text)
- asyncio.run(test())
|