ariya / tinker-chat

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tinker-chat

Screenshot

This chat app supports GPT from OpenAI or your own local LLM.

GPT from OpenAI

To use GPT from OpenAI, set the environment variable OPENAI_API_KEY to your API key.

Local LLM

To use a local LLM, first obtain and build llama.cpp (this process typically takes only 5 minutes). And then, download a compatible model, such as Dolphin 2.6 variant of Phi 2. Run llama.cpp's inference server with the downloaded model, e.g.:

./server -m /path/to/dolphin-2_6-phi-2.Q4_K_M.gguf

Before launching the demo, ensure that OPENAI_API_BASE is set to http://127.0.0.1:8080,

Demo

With Node.js >= v18:

npm install
npm start

and open localhost:5000 with a web browser.

About

License:MIT License


Languages

Language:Clojure 35.9%Language:CSS 35.5%Language:JavaScript 24.1%Language:HTML 4.4%