This repository contains two Python scripts for interacting with OpenAI's API:
assistant_manager.py
: Manages API interactions.example_cmd_chat.py
: Demonstrates a command-line interface using the manager.
- Clone the repository.
- Install dependencies:
requests
andopenai
. - Set up your OpenAI credentials in the scripts.
assistant_manager.py
: Initialize with OpenAI credentials and use its methods.example_cmd_chat.py
: Run to see a command-line interface in action.
Start a chat. Select a Assistant from the avaliable assistants on your account. (Chat path to create assistants comming shortly) Select a thread (if you have previous ones saved locally via the script) Chat away!
- Real-Time Interaction: Experience seamless, real-time conversations with an AI-powered assistant that responds promptly to your queries.
- Persistent Thread Management: The script intelligently manages and saves conversation threads, ensuring no inquiry gets lost and every conversation flows smoothly from where it left off.
- Customizable Assistants: Tailor your chat assistant to fit specific roles or requirements, making it versatile for a wide array of customer service scenarios.
- Hot-Swap Agents: Swap out agents mid - thread by writing 'swapA'
- Change Threads: Change threads/Start a new one by writing 'new'