BaranziniLab / KG_RAG

Empower Large Language Models (LLM) using Knowledge Graph based Retrieval-Augmented Generation (KG-RAG) for knowledge intensive tasks
Apache License 2.0
624 stars 84 forks source link

Fix a bug that occurs when setting GPT_API_TYPE equal to 'openai' #27

Closed jarlor closed 5 months ago

jarlor commented 5 months ago

There is no CHAT_DEPLOYMENT_ID parameter in openai's API when setting GPT_API_TYPE='openai'. Adding it will cause an error. It must equal to None.

karthiksoman commented 5 months ago

Nice catch and good addition! I will merge this and later I will introduce the change in utility.py file, so that the user doesn't need to specify chat_deployment_id anywhere.