Giter VIP home page Giter VIP logo

aichat's Introduction

AI Chat (aichat)

A chat interface for OpenAI and Ollama models featuring chat streaming, local caching, and customisable model values.
OpenAI models utilise an OpenAI developer key which allows you to pay per token.
Check out the demo here

Features

  • Code highlighting on input and reponse
  • LLAVA model support (vision models)
  • Easy to share a model with just a link
  • Completely local. All your converations are stored on your browser, not on some server
  • Custom model settings
  • PWA for lightweight installation on mobile and desktop

Screenshots

FullscreenDemo

SettingsDemo

CodeHighlighting

Troubleshooting

Can't connect to self-hosted Ollama

Ollama requires you to allow outside connections by setting the OLLAMA_ORIGINS env variable. I've been testing with *, but setting it to ai.chat.mc.hzuccon.com or harvmaster.github.io depending on where you're accessing it from (or if youre self-hosting, your domain should work). For more information see here

To do

  • Fix multiple root elements in template (src/components/ChatMessage/ChatmessageChunk.vue)
  • Explore continue prompt (src/components/ChatMessage/ChatMessage.vue)

Install the dependencies

yarn
# or
npm install

Start the app in development mode (hot-code reloading, error reporting, etc.)

The service can be launched in dev mode and is accessable at http://localhost:9200/#/

quasar dev

In dev mode, the HMR_PORT environment variable can be set to allow for Hot_Module_Reloading when the service is sitting behind a sub/domain.

environment:
    - HMR_PORT=443

Lint the files

yarn lint
# or
npm run lint

Format the files

yarn format
# or
npm run format

Build the app for production

quasar build

Customize the configuration

See Configuring quasar.config.js.

aichat's People

Contributors

harvmaster avatar

Stargazers

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