Skip to content

Commit

Permalink
Don't redefine the existing get_conversation route
Browse files Browse the repository at this point in the history
  • Loading branch information
ramnes committed Jul 24, 2023
1 parent 9feb621 commit 9883814
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/chainlit/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,10 @@ async def get_conversation(request: Request, conversation_id: str):


@app.get("/project/conversation/{conversation_id}/element/{element_id}")
async def get_conversation(request: Request, conversation_id: str, element_id: str):
"""Get a specific conversation."""
async def get_conversation_element(
request: Request, conversation_id: str, element_id: str
):
"""Get a specific conversation element."""

db_client = await get_db_client_from_request(request)
res = await db_client.get_element(conversation_id, element_id)
Expand Down

0 comments on commit 9883814

Please sign in to comment.