Skip to content

Commit

Permalink
ensure inner gradio prompting is clean
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudotensor committed Apr 4, 2024
1 parent d9c2b25 commit c2ceb99
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gpt_langchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,9 @@ def setup_call(self, prompt):
prompt_type = noop_prompt_type
# already did conversation as part of prompt
client_chat_conversation = []
self.context = ''
self.iinput = ''
self.system_prompt = ''

client_kwargs = dict(instruction=prompt if self.chat_client else '', # only for chat=True
iinput=self.iinput if self.chat_client else '', # only for chat=True
Expand Down

0 comments on commit c2ceb99

Please sign in to comment.