Skip to content

Commit

Permalink
Remove openai_api_version from OpenAI call (keep it only for Azure)
Browse files Browse the repository at this point in the history
  • Loading branch information
KastanDay committed Mar 29, 2024
1 parent d6b5fb8 commit 78f05de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ai_ta_backend/service/retrieval_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 78f05de

Please sign in to comment.