Skip to content

Commit

Permalink
clear context on each call
Browse files Browse the repository at this point in the history
  • Loading branch information
p3nGu1nZz committed Sep 15, 2024
1 parent de945dd commit 488ab09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oproof/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def _log_error_and_raise(self, error_message: str, exception_message: str) -> No

def _generate_output(self, prompt: str) -> Dict[str, Any]:
try:
return oll.generate(prompt=prompt, model=self.cfg.model)
return oll.generate(prompt=prompt, model=self.cfg.model, context=[])
except ConnectError:
with Log.suppress_logs():
error_message = "Ollama is not running or installed. Please ensure Ollama is running and try again."
Expand Down

0 comments on commit 488ab09

Please sign in to comment.