Skip to content

Commit

Permalink
fix: added claude key variable properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Ninjagod1251 committed Apr 10, 2024
1 parent 7e43b58 commit c46afb7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion request.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import os
import anthropic

CLAUDE_KEY = os.getenv('CLAUDE_KEY')

client = anthropic.Anthropic(
# defaults to os.environ.get("ANTHROPIC_API_KEY")
api_key="my_api_key",
api_key=CLAUDE_KEY
)

knowledge_base = ''
with open('knowledge-base.txt', 'r', encoding="utf-8") as file:
knowledge_base = file.read()
Expand Down

0 comments on commit c46afb7

Please sign in to comment.