Skip to content

Commit 9e26581

Browse files
add conversation id invalid
1 parent 3b49f82 commit 9e26581

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎src/hugchat/hugchat.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,8 @@ def _stream_query(
741741
"Model is overloaded, please try again later or switch to another model."
742742
)
743743
logging.debug(resp.headers)
744+
if "Conversation not found" in str(res):
745+
raise exceptions.InvalidConversationIDError("Conversation id invalid")
744746
raise exceptions.ChatError(f"Failed to parse response: {res}")
745747
if break_flag:
746748
break

0 commit comments

Comments
 (0)