summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-07-06 12:46:30 -0700
committerNate Sesti <sestinj@gmail.com>2023-07-06 12:46:30 -0700
commit3930564baf6bdcb94728805ce71d3d76b02196f1 (patch)
treeb479710709e9a63fdbd9603454064bccde9eb98a
parent28e82597ed21501c69a0c851436e4c4228694fe8 (diff)
downloadsncontinue-3930564baf6bdcb94728805ce71d3d76b02196f1.tar.gz
sncontinue-3930564baf6bdcb94728805ce71d3d76b02196f1.tar.bz2
sncontinue-3930564baf6bdcb94728805ce71d3d76b02196f1.zip
fix parroting bug
-rw-r--r--continuedev/src/continuedev/steps/chat.py9
-rw-r--r--extension/react-app/src/components/ComboBox.tsx2
2 files changed, 3 insertions, 8 deletions
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
diff --git a/extension/react-app/src/components/ComboBox.tsx b/extension/react-app/src/components/ComboBox.tsx
index b825dc2a..55496fb9 100644
--- a/extension/react-app/src/components/ComboBox.tsx
+++ b/extension/react-app/src/components/ComboBox.tsx
@@ -71,9 +71,11 @@ const MainTextInput = styled.textarea`
background-color: ${secondaryDark};
color: white;
z-index: 1;
+ border: 1px solid transparent;
&:focus {
outline: 1px solid ${lightGray};
+ border: 1px solid transparent;
}
`;