26 Commits

Author SHA1 Message Date
hiro
e60807f867
chore: Refactor docker compose (#2531)
* chore: docker compose dev with local build

* chore: docker compose with prebuilt image on ghcr

* fix: Update readme and by comments
2024-03-29 09:50:35 +07:00
hiento09
2cbbe1bcd3
Fix bug #2005 docker blank website (#2093)
* Web: change API_BASE_URL to build time env

* Update Dockerfile and Docker Compose by adding env API_BASE_URL

* Update make clean

* INFERENCE_URL get from baseApiUrl

* Fix error settings/settings.json not found when start server at the first time

* Update README docker

---------

Co-authored-by: Hien To <tominhhien97@gmail.com>
2024-02-19 23:30:59 +07:00
hiento09
8feaf24186
Change env Dockerfile.gpu and update README (#1963)
Co-authored-by: Hien To <tominhhien97@gmail.com>
2024-02-07 21:53:47 +07:00
Louis
5890ade451
chore: server download progress + S3 (#1925)
* fix: reduce the number of api call

Signed-off-by: James <james@jan.ai>

* fix: download progress

Signed-off-by: James <james@jan.ai>

* chore: save blob

* fix: server boot up

* fix: download state not updating

Signed-off-by: James <james@jan.ai>

* fix: copy assets

* Add Dockerfile CPU for Jan Server and Jan Web

* Add Dockerfile GPU for Jan Server and Jan Web

* feat: S3 adapter

* Update check find count from ./pre-install and correct copy:asserts command

* server add bundleDependencies @janhq/core

* server add bundleDependencies @janhq/core

* fix: update success/failed download state (#1945)

* fix: update success/failed download state

Signed-off-by: James <james@jan.ai>

* fix: download model progress and state handling for both Desktop and Web

---------

Signed-off-by: James <james@jan.ai>
Co-authored-by: James <james@jan.ai>
Co-authored-by: Louis <louis@jan.ai>

* chore: refactor

* fix: load models empty first time open

* Add Docker compose

* fix: assistants onUpdate

---------

Signed-off-by: James <james@jan.ai>
Co-authored-by: James <james@jan.ai>
Co-authored-by: Hien To <tominhhien97@gmail.com>
Co-authored-by: NamH <NamNh0122@gmail.com>
2024-02-07 17:54:35 +07:00
Louis
afbb94f083
efactor app directories and enforce ts strict mode (#201)
* refactor: move Electron app to main directory and enforce ts strict mode

* chore: add pre-install plugins

* remove duplicated initModel function

Signed-off-by: James <james@jan.ai>

* chore: correct module path

* fix: dynamic import does not work with ts

* chore: web should be able to run on target host browser

* fix: history panel, should display conversations rather just blank state

* chore: init default model

* chore: pluggin in ts

* fix: pre-pack model management

* fix: compiled core should not include plugins

* chore: refactor - invoke plugin function

* refactor download/delete file

Signed-off-by: James <james@jan.ai>

* update prebuild lib

Signed-off-by: James <james@jan.ai>

* chore: yarn workspace

* chore: update yarn workspace

* chore: yarn workspace with nohoist

* fix: llama-cpp-import

* chore: fix data-plugin wrong module path

* chore: correct build step

* chore: 	- separate inference service (#212)

- remove base-plugin

Signed-off-by: James <james@jan.ai>
Co-authored-by: James <james@jan.ai>

* chore: update core plugins

* chore: hide installation prompt and fix model load - management plugin

* chore: remove legacy files; update readme

* fix: refresh page lost the download state

Signed-off-by: James <james@jan.ai>

* fix: ai prompt not passed to plugin

Signed-off-by: James <james@jan.ai>

* chore: module import fix for production

* chore: auto updater

* chore: package is public

* chore: fix yarn workspace config

* update: model management uses Q4_K_M

* chore: fix yarn scripts for publishing

* chore: app updater - progress update message

* chore: user confirms update action

* adding some state for changing page
store downloaded model to database

Signed-off-by: James <james@jan.ai>

* chore: refactor plugins into yarn workspace - a single command to publish all base plugins

* chore update readme (#218)

Co-authored-by: Hien To <tominhhien97@gmail.com>

* change app name and app icon

Signed-off-by: James <james@jan.ai>

* remove: go-to-nowhere actions

* chore: bundle core plugins from root and scan default plugins

* fix: app crashes on different field name lookup

* chore: css fix

* chore: bind download progress to app ui

* chore: bind active model

* chore: simplify app splash-screen only centered jan icon

* feature: system monitoring plugin (#196)

* feat: Add function for system monitoring

* chore: register plugin functions

* chore: move to corresponding directory

* chore: bind system monitoring data to UI

---------

Co-authored-by: Louis <louis@jan.ai>

* chore: add build:plugins step to README

* chore: model searching and fix model name

* fix: plugin file selected appearance

* fix: create new conversation does not work

* fix: delete conversation not update state - messages still exist

* chore: fix asset path prefix

* Add CICD for macos (#221)

Co-authored-by: Hien To <tominhhien97@gmail.com>

* chore: fix production plugin path

* chore: add shell open url in external browser

---------

Signed-off-by: James <james@jan.ai>
Co-authored-by: James <james@jan.ai>
Co-authored-by: NamH <NamNh0122@gmail.com>
Co-authored-by: 0xSage <n@pragmatic.vc>
Co-authored-by: hiento09 <136591877+hiento09@users.noreply.github.com>
Co-authored-by: Hien To <tominhhien97@gmail.com>
Co-authored-by: namvuong <22463238+vuonghoainam@users.noreply.github.com>
2023-09-28 18:15:18 +07:00
Louis
6aae985a55
re-#143: use OpenAI decoder and mutate final result from client (#164)
* chore: use OpenAI parser

* chore: access host's services

* chore: take out llm service - GGUF model for the latest llama.cpp support
2023-09-12 16:29:26 +07:00
Louis
6b462e383e
fix: #143 - Direct communication between client and llm inference service 2023-09-12 13:07:57 +07:00
Louis
19e5e7e047
#126 - Apply Data Seed using Hasura Migration (#140)
* fixes #126 - hasura auto apply data seed

* chore: update product's description and clean data migration down
2023-09-11 15:53:25 +07:00
James
2704301fd1 chore: update configuration files
- adding a default theme for keycloak
- set default credential when user sign in

Signed-off-by: James <james@jan.ai>
2023-09-06 07:54:13 -07:00
namvuong
34939feb90
fix: Remove sd ggml + minio + traefffik (#63)
* fix(inf-sd): Delete gitsubmodule for SD ggml

* chore: Delete custom code for sd.cpp

* chore: Update gitignore for sd models

* chore: Update readme for sd ggml service removal

* chore: Refactor compose file to remove minio, sd, sd-downloader and traeffik

* fix(.env): Removing SD and minio related configuration
2023-09-06 15:48:54 +07:00
Louis
25a096da28
Resolves #35, resolves #59, resolves #53 (#60)
* fix: [#35] - jan containers wont restart

* chore: remove keycloak health check https://github.com/keycloak/keycloak/issues/17273

* fix: #53 hasura seeds should not yield error on conflict

* fix: #59 hasura image generation action timeout

* chore: jan web - fixes error logs of empty href url
2023-09-05 22:00:01 +07:00
vuonghoainam
465b45fb81 fix(compose): Change exposed port to host machine 2023-08-31 15:33:24 +07:00
vuonghoainam
39d1972b57 feat(compose): Add traeffik as in docker compose label 2023-08-31 15:30:48 +07:00
namvuong
c5397184ee
fix(compose): Use 1 psql db instead of 2 (#23)
* fix(compose): Use 1 psql db instead of 2

* chore: fix kc db config

* chore: clean env

---------

Co-authored-by: Louis <louis@jan.ai>
2023-08-31 14:23:06 +07:00
vuonghoainam
949370ad3f feat: Refactor compose file and add minio services 2023-08-31 00:24:37 +07:00
vuonghoainam
b9775c4893 fix(docker): Update dockerfile for sd ggml api 2023-08-30 20:07:42 +07:00
vuonghoainam
858c872b1b fix: Update docker compose for sd and llm 2023-08-30 16:44:34 +07:00
hiento09
90aa721e7d
Update docs (#15)
* fix: not every llm stream chunked by each json data

* Docs: deploy docusaurus github page and update README.md (#14)

* add github action deploy docusaurus to github page

* README: update installation instruction

* Add sonarqube scanner github actions pipeline

---------

Co-authored-by: Hien To <>

---------

Co-authored-by: Louis <louis@jan.ai>
2023-08-30 11:19:25 +07:00
Hien To
8741dfb041 Chore: hasura auto apply at start up 2023-08-28 17:30:19 +07:00
Hien To
cf367d8074 Chore: update docker compose and config for runable on macos 2023-08-28 14:31:18 +07:00
Louis
f3c8f41180
fix: web-client next not found and worker not hot reloaded 2023-08-26 16:01:21 +07:00
Hien To
eb671d7979 Integrate with llm 2023-08-25 08:50:11 +07:00
Hien To
8af674e97a Chore: add network for postgres and fix wrong path jan-web 2023-08-25 14:09:13 +07:00
Hien To
afbdec26d1 Chore: Update new env and commit for app-backend 2023-08-25 10:38:38 +07:00
Hien To
22c73baf38 initiate docker-compose for monorepo 2023-08-24 17:06:00 +07:00
Hien To
abfeb674ce Initiate docker compose for keycloak 2023-08-22 14:46:34 +07:00