This project is a console-based application that interacts with OpenAI's Assistant API to provide real-time responses using streaming functionality. The application features streaming of assistant responses and the cabilty of Function Calling
- Streaming: This code utlizies openai's streaming function cabilties along with its Assistant api.
- Function Calling: In adition to the Streaming you can also implement your own functions in this code.
- Python 3.12
rich
library for enhanced console outputmsvcrt
(available on Windows) for capturing keyboard inputOpenai
OpenAI- An OpenAI API key / Acount
- Clone the repositoryt.
- Install the required Python packages:
pip install rich Openai
- Replace
PLACE YOUR API KEY HERE
in the script with your actual OpenAI API key. - Run the script:
python main.py