Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nicovank committed Mar 20, 2024
1 parent 5f765d7 commit 9d8d6cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/chatdbg/assistant/lite_assistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,11 @@ def run(
}
responses.append(response)
self._print_message(response, 4, append_message)
self._conversation.append(choice.message)
self._conversation.extend(responses)
except Exception as e:
# Warning: potential infinite loop.
append_warning(f"error processing tool calls.")
self._conversation.append(choice.message)
self._conversation.extend(responses)
elif choice.finish_reason == "stop":
break
else:
Expand Down

0 comments on commit 9d8d6cc

Please sign in to comment.