From ee37fd0c5582bbe4b2163faa19846d980b5aa6ef Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Thu, 6 Jul 2023 12:46:30 -0700 Subject: fix parroting bug --- continuedev/src/continuedev/steps/chat.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'continuedev/src') diff --git a/continuedev/src/continuedev/steps/chat.py b/continuedev/src/continuedev/steps/chat.py index d310a498..c26f8ff9 100644 --- a/continuedev/src/continuedev/steps/chat.py +++ b/continuedev/src/continuedev/steps/chat.py @@ -30,15 +30,8 @@ class SimpleChatStep(Step): self.description = "" await sdk.update_ui() - messages = await sdk.get_chat_context() - messages.append(ChatMessage( - role="user", - content=self.user_input, - summary=self.user_input - )) - completion = "" - async for chunk in sdk.models.gpt4.stream_chat(messages): + async for chunk in sdk.models.gpt4.stream_chat(await sdk.get_chat_context()): if sdk.current_step_was_deleted(): return -- cgit v1.2.3-70-g09d2