46 Commits

Author SHA1 Message Date
Mariusz Kogen
764f124ce5
Removing n_gqa leftovers (#735) 2023-09-16 03:27:03 -04:00
Mariusz Kogen
caa8cd967f
Fix newline input bug and display placeholder text in input box (#728) 2023-09-14 07:48:49 -04:00
Mariusz Kogen
782ddf3717
Remove 'n_gqa' Related Code (#732) 2023-09-14 07:45:46 -04:00
PΔBLØ ᄃΞ
9c8332bee6
UI: Code block fixes (#710)
* fix: code block bad typo and margin

* eslint

* lint

---------

Co-authored-by: pabl-o-ce <cye@poscye.com>
2023-09-11 01:43:10 -04:00
PΔBLØ ᄃΞ
962a68e343
UI/UX Improvements (#707)
* Add highlights themes for select from committed

* Add route for delete all conversation chats

* fix: css for code block width

* Features:
- add navbar button
- clear all chats
- new theme button
- fix code block width and theme

* fix: header chat stats hidden in small screens

* add:
- yaml
- go
- json

* add:
- dockerfile
- plaintext
- switf
- sql

* add:
- graphql
- nginx
- toml

* toml same as ini

---------

Co-authored-by: pabl-o-ce <cye@poscye.com>
2023-09-09 19:16:12 -04:00
Juan Calderon-Perez
d4741770a1 Change shortcut to trigger question to Enter key 2023-09-04 01:49:28 -04:00
Mike Zeng
0d0e961544
Add the ability to toggle the chatbar on and off, and also persist themes across reloads. (#631)
* Added Q4_0 llamav2 models (7B, 13B) to the models.json

* Added support for Llama 70B

* Cleaned up some debugging statements.

* Update README.md to include Llamas

* Fix names in README

* Added some centering for the bars.

* Added some padding to the bottom of the button.

* Fixed some formatting bugs.

* Changed margins on larger screens to make large screen the same as original.

* Added a hamburger icon to the sidebar to allow users to have it on or off.

* Added ability to load previous session theme & automatically adjust bar height by using an onmount

* Formatted the code better

* Made checkmark switcher default value dependent on theme.

---------

Co-authored-by: Juan Calderon-Perez <835733+gaby@users.noreply.github.com>
2023-08-15 18:43:32 -04:00
Mike Zeng
e12342c124
Fix incorrectly space "Create a new chat" button on smaller screens. (#627)
Co-authored-by: Juan Calderon-Perez <835733+gaby@users.noreply.github.com>
2023-08-15 08:44:35 -04:00
PΔBLØ ᄃΞ
e79ae6977f
Feature: add theme selector light/dark (#626)
Co-authored-by: pabl-o-ce <cye@poscye.com>
2023-08-14 23:45:48 -04:00
Juan Calderon-Perez
8844153111
Add support for gpu_layers, LLaMA2 parameters, and increase token and context window (#611) 2023-08-10 01:21:14 -04:00
Juan Calderon-Perez
f8f687a9fb Fix eslint issue 2023-08-06 20:59:47 -04:00
Juan Calderon-Perez
0066580946
Update dependencies, fix format and lint issues (#597) 2023-08-06 20:57:33 -04:00
Juan Calderon-Perez
a9f36d25a9
Support for Svelte v4 (#519) 2023-07-09 21:42:05 -04:00
Nathan Sarrazin
9168761b9b
Add CI/Lint process for web frontend (#438)
* add CI for web project

* run prettier over whole app

* ci fix

* sigh

* fix linting

* Do not run Docker Build until all checks have passed

* clean up delete feature

* fix index

---------

Co-authored-by: Juan Calderon-Perez <835733+gaby@users.noreply.github.com>
2023-06-17 22:21:25 +02:00
Nathan Sarrazin
51b30e78a9
Update models list from a remote location (#436)
Co-authored-by: Juan Calderon-Perez <835733+gaby@users.noreply.github.com>
2023-06-17 11:07:10 -04:00
security-companion
7fffe5db29
add hint about minimum required RAM (#411)
Co-authored-by: Juan Calderon-Perez <835733+gaby@users.noreply.github.com>
2023-06-10 09:59:53 -04:00
Nathan Sarrazin
ec385e807a update repo to reflect change in org 2023-06-10 09:39:53 +02:00
Andreas Raster
833365df48
Trash prompts proper (#380)
* make it so you can just click send and it will send "Reformulate your last answer"

* new route for deleting a single prompt

* add a little trashcan button to last prompt so it can be deleted from history

* black formatting and removed unused import json

* + causes problems when deleting prompts

* log debug the final_prompt

* remove unused "let container;"

* add a uuid to every prompt and share that between backend and frontend

* delete prompts using an id, fallback to using content for old chats

* fix f string without placeholders

---------

Co-authored-by: Juan Calderon-Perez <835733+gaby@users.noreply.github.com>
2023-06-03 16:44:54 -04:00
Andreas Raster
6ae405179d
Make it useable (#296)
* add api/static/* to .githignore

* add init_prompt to params so that we can set n_ctx to len(init_prompt) + params.n_ctx

* change get_prompt so it properly builds a instruction prompt from the recent history

- keeps the prompt below n_ctx
- goes backwards and adds only the most recent sentences
- always prepends the init_prompt

* ignore eventSource.onerror

I don't know why it does this, but this gets called locally for me and messes up the history, just doing nothing here works fine for me

* fix split on ! not *

* run black formatter on stream.py

* revert previous black format, just do the one change it wants manually

* third times the charm

---------

Co-authored-by: Juan Calderon-Perez <835733+gaby@users.noreply.github.com>
2023-06-03 12:47:27 -04:00
PΔBLØ ᄃΞ
57bc893967
Web UI/UX improvements (#212)
* Style: Web UI/UX improvements

* Docs: add credits for the svg

* Style: fix in header nav tittle always center

* Style: fix chat padding md:responsive

* Style: fix system chat padding md:responsive

* Style: text-lg to text-base... [for me look better]. (suggestion only).. if you dont like it I remove it

* Style: [suggestion] header title format one line 'Serge: <modelName>' second line '<date>'

* Style: fix color using daisyui semantic color

* Style: fix color user avatar

* Style: data-theme=dark

* Style: colors by compatible with all themes

* Style: colors by compatible with all themes [second and last review]

* Style: svg and colors on download models [replace icons to svg icons]

* Style: input h-auto

* Feature: add render markdown on user and serge

* Style: code tag color and background for any theme

* Style: copy to clipboard button background and overflow-y hidden in chat render parent element

* Style: code block background adaptive to daisy themes

* Style: remove images and add rubik-pixels font

* Style: add rubik-pixels font from fontsource

---------

Co-authored-by: Juan Calderon-Perez <835733+gaby@users.noreply.github.com>
2023-05-25 01:31:57 -04:00
Nathan Sarrazin
3ca1c4bec3 add option to delete a model 2023-04-25 00:20:17 +02:00
Nathan Sarrazin
e512011470
Use python bindings, integrate with LangChain and get rid of MongoDB (#148)
* integrate langchain
get rid of mongodb
use llama-cpp-python bindings

* fixed most chat endpoints except posting questions

* Working post endpoint !

* everything works except streaming

* current state

* streaming as is

* got rid of langchain wrapper for calling llm, went back to using bindings directly

* working streaming

* sort chats by time

* cleaned up styling and added back loading indicator

* Add persistence support to redis

* fixed tooltips

* fixed default prompts

* added link to api docs (closes How to use the api #155 )
2023-04-23 23:42:20 +02:00
Alex Grönholm
d2f5063e7d
Fixed name of the temperature parameter (#207) 2023-04-21 12:50:07 +02:00
Juan Calderon-Perez
c48dc72c84
Fix spelling mistakes (#160) 2023-04-16 20:49:14 -04:00
Raven Scott
7f2e2b25ff
Adding a new session button which uses current session settings (#136)
* Adding a new session button which uses current session settings / ALT+N for a new session

* Make it look better

* Adding autofocus to input box

* Adding requested changes moving button

---------

Co-authored-by: Raven Scott <commits@ssh.surf>
2023-04-06 23:02:47 +02:00
John Cadengo
7699ce3a63
Correctly pass the context window length (#138)
In the view it was named `ctx_length` but the controller expected `context_window`

- Update name to `context_window`
2023-04-05 18:11:16 +02:00
Raven Scott
8f3d1ba8a0
When a user hits CTRL+ENTER send input (#121)
* When a user hits CTRL+ENTER send input

* Fixing Input and Send Button Overlay on Mobile

* add a small margin at the bottom

---------

Co-authored-by: raven <you@example.com>
Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>
2023-04-01 10:15:12 +02:00
Nathan Sarrazin
b5c423fe59
API Refactor & Model Manager (#101)
* API refactoring

* delete partially downloaded files on startup

* remove unused deps
2023-03-28 23:56:41 +02:00
Nathan Sarrazin
293a23e487
Proper dev & deployment images. Converts front-end to SPA. (#84)
* begin work on dev environment

* more work on dev image

* working dev + prod images with SPA front-end

* reworked dockerfile

* make CI point to the right action

* Improvements to github actions (#79)

* Improvements to github actions

* Change username to repo owner username

* Add fix for login into ghcr (#81)

* Update bug_report.yml

* added dev instructions to readme

* reduced number of steps in dockerfile

---------

Co-authored-by: Juan Calderon-Perez <835733+gaby@users.noreply.github.com>
2023-03-27 16:44:20 +02:00
Martin
a6c38ff933
Implementing deletion of chat (#39)
* Implementing deletion of chat

* svelte refactoring of delete code

---------

Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>
2023-03-25 12:57:09 +01:00
Nathan Sarrazin
d697059122
Move everything into a single dockerfile (#57)
* initial work on linting & templates

* moved everyone into a nice dockerfile

* move everyone into a single dockerfile

* update sample .env file

* got rid of .env file

* rename db volume to avoid confusion and conflicts with previous version

* added bug report template
2023-03-25 11:55:01 +01:00
Nathan Sarrazin
2157722390
errors now surface in the front-end (#49) 2023-03-25 06:57:04 +01:00
Nathan Sarrazin
7dd3394781
Add support for a few new parameters in the UI: (#41)
- context window size, lets you select how far back the model should consider in its prompt.
- n_threads for multithreading
- init_prompt for customizing the initial prompt before the conversation.
2023-03-24 09:20:58 +01:00
Nathan Sarrazin
dbd9170dd3 types are a thing that exist 2023-03-22 12:20:40 +01:00
Nathan Sarrazin
30cd45a161 Fixed bug with POSTing a new chat 2023-03-22 12:20:10 +01:00
Nathan Sarrazin
855c7ab0ab Properly catch requests to the server and redirect them to API container 2023-03-22 11:48:28 +01:00
Nathan Sarrazin
a60a59318c Streaming update! Messages are now streamed as they are generated 2023-03-21 22:57:34 +01:00
Nathan Sarrazin
a41602eb75 Added first question in sidebar for easier parsing of past chats 2023-03-21 16:57:20 +01:00
Nathan Sarrazin
5ae05671d1 cleaned up issue in svelte config 2023-03-21 07:28:12 +01:00
Nathan Sarrazin
a13eeadaed Latest changes:
- Added nginx, api & web app on the same port now.
- Allowed CSR, through sveltekit, with a hook for redirecting server side api requests.
- Implemented menu to  pass model parameters on start page.
- Added a loading indicator while the model is computing
2023-03-21 07:11:00 +01:00
Nathan Sarrazin
15e921fb7a Used recent llama.cpp version :
- Added convert script, thanks to @eiz, will catch unconverted .bin files and convert them on startup.
- Switched back to main branch of llama.cpp
- Got rid of code to handle magic.dat
2023-03-20 17:45:47 +01:00
Nathan Sarrazin
9e0d48f541 Fixed crashing bug in front-end 2023-03-20 07:04:04 +01:00
Nathan Sarrazin
f3dd6f9fdb front-end displays more info + dark theme 2023-03-20 06:53:51 +01:00
Nathan Sarrazin
ad7afaa6a9 added time & model to front-end 2023-03-20 01:11:30 +01:00
Nathan Sarrazin
8390b32874 Add a very basic working front-end 2023-03-20 01:01:24 +01:00
Nathan Sarrazin
523d0f82a2 Added a basic sveltekit + tailwind project in the project 2023-03-19 19:43:09 +01:00