Skip to content

Commit

Permalink
Return placeholder message to chat if the text is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
trducng committed Apr 6, 2024
1 parent 30bb2e3 commit a4371da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/ktem/ktem/pages/chat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ def chat_fn(self, conversation_id, chat_history, settings, state, *selecteds):
len_ref = len(refs)

state[pipeline.get_info()["id"]] = reasoning_state["pipeline"]
yield chat_history + [(chat_input, text or "Thinking ...")], refs, state
yield chat_history + [(chat_input, text or msg_placeholder)], refs, state

def regen_fn(self, conversation_id, chat_history, settings, state, *selecteds):
"""Regen function"""
Expand Down

0 comments on commit a4371da

Please sign in to comment.