Unverified Commit 793469e0 authored by Nikita Lozhnikov's avatar Nikita Lozhnikov Committed by GitHub
Browse files

Fix self.max_tokens in anthropic_llms.py (#1848)

Fix bug where `self.max_tokens` was not set
parent 6f434934
......@@ -307,7 +307,7 @@ please install anthropic via `pip install 'lm-eval[anthropic]'` or `pip install
# defaults to os.environ.get("ANTHROPIC_API_KEY")
self.client = anthropic.Anthropic()
self.temperature = temperature
self.max_token = max_tokens
self.max_tokens = max_tokens
self.tokenizer = self.client.get_tokenizer()
self.kwargs = kwargs
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment