This commit is contained in:
ishaan-jaff 2023-08-17 16:13:52 -07:00
parent ba6df5fbb9
commit 5c60a36105
2 changed files with 26 additions and 1 deletions

View file

@ -27,7 +27,7 @@ class AnthropicLLM:
# set the api key
if self.api_key == None:
raise ValueError("Missing Anthropic API Key - A call is being made to anthropic but no key is set either in the environment variables or via params")
self.api_key = api_key
self.headers = {
"accept": "application/json",
"anthropic-version": "2023-06-01",