From 78f05de6fefbc738d89590028ad685f9b0970238 Mon Sep 17 00:00:00 2001 From: Kastan Day Date: Thu, 28 Mar 2024 18:37:13 -0700 Subject: [PATCH] Remove openai_api_version from OpenAI call (keep it only for Azure) --- ai_ta_backend/service/retrieval_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ai_ta_backend/service/retrieval_service.py b/ai_ta_backend/service/retrieval_service.py index af425218..d7a9d877 100644 --- a/ai_ta_backend/service/retrieval_service.py +++ b/ai_ta_backend/service/retrieval_service.py @@ -41,7 +41,7 @@ def __init__(self, vdb: VectorDatabase, sqlDb: SQLDatabase, aws: AWSStorage, pos openai_api_base=os.environ["AZURE_OPENAI_ENDPOINT"], openai_api_type=os.environ['OPENAI_API_TYPE'], openai_api_key=os.environ["AZURE_OPENAI_KEY"], - openai_api_version=os.environ["OPENAI_API_VERSION"], + # openai_api_version=os.environ["OPENAI_API_VERSION"], ) self.llm = AzureChatOpenAI(