Skip to content

Commit

Permalink
fixed error with claude
Browse files Browse the repository at this point in the history
  • Loading branch information
assafelovic committed Jun 23, 2024
1 parent 4b1d033 commit 95eb94c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gpt_researcher/llm_provider/anthropic/anthropic.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def __init__(
):
self.model = model
self.temperature = temperature
self.max_tokens = max_tokens
self.max_tokens = max_tokens if max_tokens else 4096
self.api_key = self.get_api_key()
self.llm = self.get_llm_model()

Expand All @@ -37,6 +37,7 @@ def get_llm_model(self):
model=self.model,
temperature=self.temperature,
max_tokens=self.max_tokens,
max_tokens_to_sample=4096,
api_key=self.api_key
)

Expand Down

0 comments on commit 95eb94c

Please sign in to comment.