Skip to content

Commit

Permalink
Fixed same bug in token recycler and memory generator. They had their…
Browse files Browse the repository at this point in the history
… default set to chatgpt and were not acclimating to a change in models due to the requested model name being different to avaliable selections.
  • Loading branch information
self committed Mar 25, 2023
1 parent 80926df commit f724d93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chatbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ def recycle_tokens(self, chunk_by: int = 2, quiet=True):
ct = 0 # This will count until a specified termination threshold to protect againt infinite loops
terminate_value = len(chunks)
errorct = 0
gpt_model = self.gpt_model
gpt_model = self.model_selection

# 1. Collect mini summaries for entire conversation
info('Loading', 'topic')
Expand Down Expand Up @@ -451,7 +451,7 @@ def create_memories(self, chunk_by=2, quiet=True, restore=False):
ct = 0 # This will count until a specified termination threshold to protect againt infinite loops
terminate_value = len(chunks)
errorct = 0
model_placeholder = self.gpt_model
model_placeholder = self.model_selection

memory_directive = ("Create a new single memory text dict with the following format:\n\n" +
"{humans_job:[], humans_likes:[], humans_dislikes[], humans_personality:[], facts_about_human:[], things_discussed:[], humans_interests:[], things_to_remember:[]}\n\n" +
Expand Down

0 comments on commit f724d93

Please sign in to comment.