From c46afb7c74e904658f4100869ab47ec66ae7bb78 Mon Sep 17 00:00:00 2001 From: "15219900+Ninjagod1251@users.noreply.github.com" <15219900+Ninjagod1251@users.noreply.github.com> Date: Wed, 10 Apr 2024 12:53:46 -0700 Subject: [PATCH] fix: added claude key variable properly --- request.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/request.py b/request.py index 7a317d9..c79550e 100644 --- a/request.py +++ b/request.py @@ -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()