Skip to content

tuhinmallick/OPENAI_Assistant_Python_API_Demos

 
 

Repository files navigation

OpenAI CMD Terminal Assistant Chat Manager

Overview

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.

Setup

  1. Clone the repository.
  2. Install dependencies: requests and openai.
  3. Set up your OpenAI credentials in the scripts.

Usage

  • 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!

What is This Script?

  • 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'

Share any uses!

About

My OpenAI Assistant Agent Demo!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%