This project integrates the OpenAI API with function calling and various tools. In this particular part, we utilize the ChatGPT 3.5 model to respond to user inputs. If it's a normal query, the AI will generate a response. If it's a health-related issue, it will search through a database of doctors and refer a suitable one based on properties such as name, type of consultation, and specialty.
- Clone this repository:
git clone https://github.com/Naveen-g09/Open-Ai-Function-Calling.git
- Navigate into the cloned directory:
cd Open-Ai-Function-Calling
- Install dependencies:
npm install
- Create a
.env
file with your OpenAI API key. - That's it!
- In
index.ts
, provide your prompt. - Run
npm start
in the terminal.
Enjoy using the Open AI Function Calling integration!