Coder Social home page Coder Social logo

salmonus / kakaoobt_koboldai Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 243 KB

This is a Kakaotalk OBT Chatbot Skill Server powered by KoboldAI Client.

Python 100.00%
ai chatbot conversational-ai deep-learning flask koboldai language-model machine-learning natural-language-processing nlp

kakaoobt_koboldai's Introduction

KakaoOBT_KoboldAI

This is a Kakaotalk OBT Chatbot Skill Server powered by KoboldAI Client.

Chatting with KoboldAI Erebus Model Requesting School Menu

Chatbot API with Flask

This repository contains a Flask-based chatbot API powered by KoboldAI. The API allows users to interact with a chatbot, and it also provides an endpoint for retrieving daily food details. The meal information is based on Yongin Foreign Language High School, so the function should be modified according to the meal of the relevant school in South Korea. If KoboidAI does not have a separate GPU server, it is recommended to use Colab Pro +. Refer to the link: https://github.com/KoboldAI/KoboldAI-Client

Project Structure

The main Python script app.py runs the Flask server and handles the API routes. The Characters directory contains JSON files for different characters the chatbot can adopt.

Installation

Follow these steps to install and run the project.

1. Clone the Repository

First, clone the repository to your local machine using git:

git clone https://github.com//

2. Install Dependencies

Navigate to the project directory:

Use pip to install the dependencies from requirements.txt:

pip install -r requirements.txt

3. Run the Server

Now you're ready to start the server:

python app.py

The server should now be running at http://0.0.0.0:80.

API Endpoints

This server provides two main API endpoints:

Chatbot API - /chatbot

This POST endpoint allows users to interact with the chatbot. The request body should be a JSON object containing a userRequest object, which contains utterance (the message from the user) and user (details about the user).

The response from this endpoint will be the chatbot's response to the user's message.

You first need to setup Kakao OBT, and add Skill Server.(How to: https://i.kakao.com/)

Food API - /food

This POST endpoint provides daily food details. The request body should be a JSON object containing a userRequest object, which contains utterance (the message from the user).

The response from this endpoint will be the daily food menu. You must change the school code variable, your_sch_code.(How to find Korean School Code: http://jubsoo2.bscu.ac.kr/src_gogocode/src_gogocode.asp)

Contributing

We welcome contributions to this project, whether they are bug reports, improvement suggestions, or pull requests. Please use the GitHub issue tracker for this.

kakaoobt_koboldai's People

Contributors

salmonus 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.