AgentAPI принимает base_url (по идее ws://host:port) и сам дописывает нужный эндпоинт
This commit is contained in:
parent
8256453bbf
commit
4c3e7253c7
3 changed files with 5 additions and 5 deletions
|
|
@ -8,7 +8,7 @@ from lambda_agent_api.server import MsgEventTextChunk, MsgEventToolCallChunk, Ms
|
|||
|
||||
async def main():
|
||||
chat_id = input("Chat id: ") or 0
|
||||
api = AgentApi("agent-1", "ws://localhost:8000/agent_ws/", chat_id=chat_id)
|
||||
api = AgentApi("agent-1", "ws://localhost:8000/", chat_id=chat_id)
|
||||
|
||||
try:
|
||||
await api.connect()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue