From 7774fc269822a87572a059ae53d079cd5d80656c Mon Sep 17 00:00:00 2001 From: "NIHART, Jeremi" Date: Mon, 9 Oct 2023 10:06:56 +0200 Subject: [PATCH] fix: pr comments --- main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.py b/main.py index c5886d2..082995e 100644 --- a/main.py +++ b/main.py @@ -17,11 +17,10 @@ load_dotenv() OPEN_API_KEY = os.getenv('OPEN_API_KEY') # config llm context -llm = OpenAI(model="gpt-4", temperature=0, max_tokens=256, api_key="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") +llm = OpenAI(model="gpt-4", temperature=0, max_tokens=256, api_key=OPEN_API_KEY) service_context = ServiceContext.from_defaults(llm=llm) set_global_service_context(service_context) -# TODO split in small functions if __name__ == '__main__': if not os.path.exists("./index/lock"): documents = []