Skip to content

Commit

Permalink
feat: append to extend
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroday0619 committed May 6, 2024
1 parent 9fbb6e4 commit 3aaa5d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HakaseCore/llm/llama3.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def load_prompt(self) -> list[dict[str, str]]:

def generate_instruction(self, instruction: str) -> None:
self.prompt = self.load_prompt()
self.prompt.append({"role": "user", "content": f"{instruction}"})
self.prompt.extend({"role": "user", "content": f"{instruction}"})

def generate_text(self, instruction: str) -> str:
self.generate_instruction(instruction=instruction)
Expand Down

0 comments on commit 3aaa5d4

Please sign in to comment.