Skip to content

Commit

Permalink
Fixed prompt bug
Browse files Browse the repository at this point in the history
  • Loading branch information
antoninoLorenzo committed Jul 1, 2024
1 parent 257d3d0 commit 12f0b26
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/agent/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ def query(self, sid: int, user_in: str, rag=True, stream=True):
context=context
)
else:
print('Cutted: \n', self.user_plan_gen.split('\n')[:-3])
prompt = '\n'.join(self.user_plan_gen.split('\n')[:-3])
print(f'Prompt ({len(prompt)}):\n{prompt}')
prompt = prompt.format(user_input=user_in)

self.mem.store_message(
Expand Down

0 comments on commit 12f0b26

Please sign in to comment.