Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kongzii committed Dec 16, 2024
1 parent 809df61 commit e5291f1
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,10 @@ def customized_chat_message(
if parsed_function_call_name == Reasoning.__name__:
# Don't show reasoning as function call, to make it a bit nicer.
st.markdown(
parsed_function_call_body.replace("reasoning='", "").replace("')", "")
parsed_function_call_body.replace("reasoning='", "")
.replace("')", "")
.replace('reasoning="', "")
.replace('")', "")
)
elif parsed_function_call_name == Stop.__name__:
# If the agent decided to stop, show it as a break, as it will be started soon again.
Expand Down

0 comments on commit e5291f1

Please sign in to comment.