AI Chatbot

Introduction

This repository contains the API for AI chatbot.

Setup

conda create -n <env_name> python==3.10
conda activate <env_name>
git clone https://github.com/USTAADCOM/AI_Chatbot.git
cd AI_Chatbot
pip install -r requirements.txt -q

create .env

create .env and put your key

OPENAI_API_KEY = "your sceret key here"

Run API

python3 app.py 

Payload

{
    "data": "yourquestion or promt"
}

Response

{
    "answer": "LLM Response"
    "chat_history": [
        [
            "Your Question or prompt",
            "LLM resposne"
        ]
    ]
}

Payload

{
    "data": "OK"
}

Response

{
    "message": "success"
}