Skip to content

Commit

Permalink
Rename variable to remove from diff
Browse files Browse the repository at this point in the history
  • Loading branch information
collindutter committed Dec 20, 2024
1 parent b2fddde commit 229d290
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions griptape/tasks/prompt_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ def prompt_stack(self) -> PromptStack:
stack = PromptStack(tools=self.tools)
memory = self.structure.conversation_memory if self.structure is not None else None

system_message = self.generate_system_template(self)
if system_message:
stack.add_system_message(system_message)
system_template = self.generate_system_template(self)
if system_template:
stack.add_system_message(system_template)

stack.add_user_message(self.input)

Expand Down Expand Up @@ -139,7 +139,7 @@ def prompt_stack(self) -> PromptStack:

if memory is not None:
# inserting at index 1 to place memory right after system prompt
memory.add_to_prompt_stack(self.prompt_driver, stack, 1 if system_message else 0)
memory.add_to_prompt_stack(self.prompt_driver, stack, 1 if system_template else 0)

return stack

Expand Down

0 comments on commit 229d290

Please sign in to comment.