Quick example on how to use OpenAI Function Call API with ChatGPT. https://platform.openai.com/docs/assistants/tools/function-calling
-
Provide your OpenAI API key in the
.env
file.cp '.env copy' .env
-
Activate the virtual environment.
pipenv install pipenv shell
-
Run the script.
python main.py
python main.py
You: hi!
Assistant: Hello! To assist you, please provide me with your session ID.
You: e901e9102ej091d21ndnnd1n2d
Assistant: Order 2: Status - Shipped
Order 3: Status - Cancelled
You: