Skip to content

Commit

Permalink
Fix duplicate log
Browse files Browse the repository at this point in the history
  • Loading branch information
collindutter committed Oct 9, 2024
1 parent ffc1207 commit fbffb89
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions griptape/drivers/prompt/anthropic_prompt_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def _base_params(self, prompt_stack: PromptStack) -> dict:
system_messages = prompt_stack.system_messages
system_message = system_messages[0].to_text() if system_messages else None

params = {
return {
"model": self.model,
"temperature": self.temperature,
"stop_sequences": self.tokenizer.stop_sequences,
Expand All @@ -125,9 +125,6 @@ def _base_params(self, prompt_stack: PromptStack) -> dict:
),
**({"system": system_message} if system_message else {}),
}
logger.debug(params)

return params

def __to_anthropic_messages(self, messages: list[Message]) -> list[dict]:
return [
Expand Down

0 comments on commit fbffb89

Please sign in to comment.