Skip to content

Commit

Permalink
chore: simplify 1 line of code
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardzjl committed Feb 21, 2024
1 parent bcfc92f commit 4d6d632
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions api/chatbot/routers/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ async def chat(
version="v1",
):
logger.trace(f"event: {event}")
kind = event["event"]
match kind:
match event["event"]:
case "on_chain_start":
parent_run_id = event["run_id"]
history.add_message(message.to_lc())
Expand Down

0 comments on commit 4d6d632

Please sign in to comment.