GithubHelp home page GithubHelp logo

leyriel / openai-assistant-api Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 18.35 MB

This project is a Python implementation that facilitates communication with an OpenAI-based virtual assistant. It aims to provide a simplified api interface for interacting with OpenAI's advanced language models.

Python 98.67% Mako 0.04% C 0.22% C++ 0.80% Batchfile 0.01% Assembly 0.01% Cython 0.07% Shell 0.01% Roff 0.02% PowerShell 0.15%

openai-assistant-api's Introduction

OpenAI Python Assistant

This project is a Python implementation that facilitates communication with an OpenAI-based virtual assistant. It aims to provide a simplified api interface for interacting with OpenAI's advanced language models.

Technologies

  • Python 3.x
  • OpenAI API

Features

  • Real-time interaction with the OpenAI assistant.
  • Ability to send text queries and receive responses.
  • Simple and intuitive user interface.

How to Use

To use this project, follow these steps:

  1. Clone the repository to your local machine.
  2. Install the required dependencies (pip install -r requirements.txt).
  3. Set up your OpenAI API keys in a .env file.
  4. Run the main script to start the assistant.

Contributions

Contributions are always welcome! If you have any improvements or corrections, feel free to open an issue or a pull request.

Create Database Migration

To create a new database migration, run the following command: alembic revision --autogenerate -m "Migration title

Push Database Migration

To apply the latest migration to your database, use: alembic upgrade head

Start Application

Create a venv env directory python -m venv <env_name>

Run your development env .\<env_name>\Scripts\activate

To start the application, execute: uvicorn app.main:app --reload

.env File Content

Create a .env file in the root directory of your project and include the following content: OPENAI_KEY="your_openai_key" OPENAI_ASSISTANT_ID="your_openai_assistant_id" DB_USERNAME="root" DB_PASSWORD="root" DB_SERVER="localhost" DB_PORT="3306" DB_NAME="your_database_name" Ensure you have created and configured the .env file with your specific settings before starting the application.

openai-assistant-api's People

Contributors

leyriel avatar

Stargazers

aeharrison avatar

Watchers

 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.