Giter VIP home page Giter VIP logo

clairegpt2's Introduction

AI Assistant Application

This application is a Streamlit interface for interacting with OpenAI's AI assistants. It allows users to create assistants, upload files to them, send them messages, and view their responses.

Get Started

For detailed instructions and a demonstration of AnaLAssist in action, check out my YouTube tutorial:

๐Ÿ“บ Open AI Assistants API Tutorial

Here's a high-level overview of what each function does:

  • init(): Initializes session state variables.
  • set_apikey(): Allows the user to input their OpenAI API key.
  • config(client): Fetches a list of assistants and returns the selected assistant's ID.
  • upload_file(client, assistant_id, uploaded_file): Uploads a file to the selected assistant.
  • assistant_handler(client, assistant_id): Handles assistant updates, including name, instructions, model, and file management.
  • create_assistant(client): Creates a new assistant with a given name, instructions, and model.
  • chat_prompt(client, assistant_option): Handles the chat interface, allowing the user to send messages to the assistant and receive responses.
  • chat_display(client): Displays the chat history, including any images returned by the assistant.
  • main(): The main function that runs the Streamlit application. It handles API key input, assistant selection, and chat initiation.

Installation

  1. Clone the repository: git clone https://github.com/calapsss/assistants-api-easy.git
  2. Navigate to assistants-api-easy directory: cd assistants-api-easy
  3. You can install the package poetry install
  4. Navigate to frontend folder: cd frontend
  5. Run with Poetry: poetry run streamlit run app.py

clairegpt2's People

Contributors

alex-berish avatar calapsss avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.