This commit is contained in:
ipu 2025-07-28 17:14:16 +03:00
parent 96421b264c
commit 1afa22ea13
2 changed files with 3 additions and 3 deletions

View file

@ -48,7 +48,7 @@ class ChatService:
"""Get chat history for a session and format it properly"""
async with await self.get_client() as client:
try:
response = await client.get("/chat", params={"chat_session_id": session_id})
response = await client.get("/chat/", params={"chat_session_id": session_id})
if response.status_code == 200:
messages = response.json()
history = []

View file

@ -26,7 +26,7 @@ class SessionService:
"""List available agents from talestorm-ai"""
async with await self.get_client() as client:
try:
response = await client.get("/agents")
response = await client.get("/agents/")
if response.status_code == 200:
return response.json()
else:
@ -81,7 +81,7 @@ class SessionService:
"""List all sessions from talestorm-ai"""
async with await self.get_client() as client:
try:
response = await client.get("/sessions")
response = await client.get("/sessions/")
if response.status_code == 200:
return response.json()
return []