Skip to content

Commit

Permalink
Merge pull request #72 from liuooo/fix-assistants-delete-api
Browse files Browse the repository at this point in the history
fix assistant delete api bug
  • Loading branch information
liuooo authored May 29, 2024
2 parents d8cd280 + 8e5583d commit d685401
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/api/v1/assistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,4 @@ async def delete_assistant(*, session: AsyncSession = Depends(get_async_session)
"""
Delete an assistant.
"""
ast = await AssistantService.delete_assistant(session=session, assistant_id=assistant_id)
return ast.model_dump(by_alias=True)
return await AssistantService.delete_assistant(session=session, assistant_id=assistant_id)

0 comments on commit d685401

Please sign in to comment.