fix urls
This commit is contained in:
parent
96421b264c
commit
1afa22ea13
2 changed files with 3 additions and 3 deletions
|
|
@ -48,7 +48,7 @@ class ChatService:
|
||||||
"""Get chat history for a session and format it properly"""
|
"""Get chat history for a session and format it properly"""
|
||||||
async with await self.get_client() as client:
|
async with await self.get_client() as client:
|
||||||
try:
|
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:
|
if response.status_code == 200:
|
||||||
messages = response.json()
|
messages = response.json()
|
||||||
history = []
|
history = []
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ class SessionService:
|
||||||
"""List available agents from talestorm-ai"""
|
"""List available agents from talestorm-ai"""
|
||||||
async with await self.get_client() as client:
|
async with await self.get_client() as client:
|
||||||
try:
|
try:
|
||||||
response = await client.get("/agents")
|
response = await client.get("/agents/")
|
||||||
if response.status_code == 200:
|
if response.status_code == 200:
|
||||||
return response.json()
|
return response.json()
|
||||||
else:
|
else:
|
||||||
|
|
@ -81,7 +81,7 @@ class SessionService:
|
||||||
"""List all sessions from talestorm-ai"""
|
"""List all sessions from talestorm-ai"""
|
||||||
async with await self.get_client() as client:
|
async with await self.get_client() as client:
|
||||||
try:
|
try:
|
||||||
response = await client.get("/sessions")
|
response = await client.get("/sessions/")
|
||||||
if response.status_code == 200:
|
if response.status_code == 200:
|
||||||
return response.json()
|
return response.json()
|
||||||
return []
|
return []
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue