For a general-purpose chatbot in Terminal, please see the MainConsoleApp
For Assistants intended for data analysis, see the CreateAssistants
folder
For scripts on processing data files and images, please see the ProcessFiles
folder
openai-sdk-scripts/
│
├── CreateAssistant/
│ ├── assistant-class.py
│ ├── code-interpreter.py
│ ├── digital-assistant.py
│
├── MainConsoleApp/
│ ├── app.py
│
├── CreateAssistant/
│ ├── assistant-class.py
│ ├── code-interpreter.py
│ ├── digital-assistant.py
│
├── openai-env/
│
├── LICENSE
├── README.md
pip install openai
pip install logging
python -m venv openai-env
- Windows:
openai-env\Scripts\activate
- MacOS or Unix:
source openai-env/bin/activate
Follow the steps in the Quickstart Guide to set up your API key.
- OpenAI Documentation: https://platform.openai.com/docs/introduction
- OpenAI API Reference: https://platform.openai.com/docs/api-reference
Open terminal and run the following:
python app.py