9 Commits

Author SHA1 Message Date
Juan Calderon-Perez
da8c3e27d3 Refactor production Dockerfile, Add development Dockerfile (#485)
* Refactor Dockerfile, add Dockerfile.dev for development

* We need dev dependencies for running vite build
2023-07-01 22:47:29 -04:00
Juan Calderon-Perez
4970865a49 Add support for validating shell scripts (#416) 2023-06-11 20:39:11 -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
Nathan Sarrazin
35e9d6af91 better gitignore 2023-03-20 17:46:46 +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
523d0f82a2 Added a basic sveltekit + tailwind project in the project 2023-03-19 19:43:09 +01:00
Nathan Sarrazin
aabddab986 Added a proper db to store chats, as well as API endpoints 2023-03-19 18:13:27 +01:00
Nathan Sarrazin
286d8f988f renamed weights to models 2023-03-19 12:16:07 +01:00
Nathan Sarrazin
2ae699b0c6 basic working version 2023-03-19 12:09:15 +01:00