Git Product home page Git Product logo

xiaopanchat's Introduction

小潘AI Xiaopan.AI Chatbot

A chat service built using Streamlit, OpenAI and Azure APIs

Introduction

I was curious whether I could build a ChatGPT-like service over one weekend. Turns out I could.

But I wanted to improve the app still, so I kept working on it and added many more features later. This is the ongoing repo for my project.

Current Features

  • Basic chatbot functionality built on top of OpenAI APIs
  • WeChat login for basic user management and chat tokens tracking
  • Azure Speech integration to let the bot also speak
  • Payment integration with Alipay to add more chat tokens

Roadmap

  • Check the issues page for open issues and feature requests

xiaopanchat's People

Contributors

tipani86 avatar

Stargazers

Carmen Cruzado avatar Cici avatar  avatar muyicw avatar  avatar

Watchers

shadow avatar  avatar

xiaopanchat's Issues

Async refactor

List the major blocking calls in current implementation and alternatives/workarounds based on async

  • Generic http requests: use aiohttp because it's fast and lightweight
  • Azure table operations: directly implement asyncio, sample code
  • Azure Speech SDK: It appears we're already using some kind of non-blocking API called speak_ssml_async
  • OpenAI SDK: there seems to be a PR that enables async calls, or we can just convert everything to aiohttp requests, I guess, since we're planning to use it anyway...
  • time.sleep(): ah, a classic. asyncio.sleep() will do.

ONGOING ISSUES / FEATURE REQUESTS

Anyone can open a new sub-issue if working on any of these and link back to this main issue so everything stays nicely connected.

  • Refactor code to use asyncio as the blocking calls tend to slow down the app for everyone
  • Coupon codes generator / validator
  • Referral ID and bonuses
  • Minor UI fixes (make the > button on top left have text like "User Profile" etc so people know where to login

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.