Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release cut v0.4.8 #2267

Merged
merged 240 commits into from
Mar 7, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
240 commits
Select commit Hold shift click to select a range
d6cfc3f
Scaffold Docs Site Structure
dan-homebrew Feb 6, 2024
78d0b1e
Remove /events page that was causing errors
dan-homebrew Feb 6, 2024
7c37bc6
Scaffold the About section
dan-homebrew Feb 9, 2024
71f77c6
Scaffold 'About' Pages
dan-homebrew Feb 10, 2024
465fb95
Refactor about page to other pages
dan-homebrew Feb 10, 2024
47c504f
Edit About page
dan-homebrew Feb 10, 2024
63a1016
Merge dev branch
dan-homebrew Feb 10, 2024
da4b865
Small changes
dan-homebrew Feb 13, 2024
63fde87
docs: jan desktop page
0xSage Feb 13, 2024
7c354e7
docs: server suite docs
0xSage Feb 13, 2024
3c36cbd
chore: ignore empty pages
0xSage Feb 13, 2024
3a10b40
docs: decouple homeserver v enterprise
0xSage Feb 13, 2024
599bfbd
Merge branch 'dev' into website/feb-2024-update
0xSage Feb 17, 2024
a787f43
janhq/jan: Update README.md with nightly build artifact URL
jan-service-account Feb 22, 2024
3c1aafd
docs: temporary remove 2035 vision page
henryh0x1 Feb 22, 2024
79cf9a8
Merge branch 'dev' into website/feb-2024-update
henryh0x1 Feb 22, 2024
58f733a
docs: update sidebar.js
henryh0x1 Feb 22, 2024
82b91aa
Merge branch 'website/feb-2024-update' of https://github.com/janhq/ja…
henryh0x1 Feb 22, 2024
014a18c
docs: sync current analytics docs
henryh0x1 Feb 22, 2024
a859534
docs: scaffold growth & marketing pages (#1941)
henryh0x1 Feb 22, 2024
56be774
feat: revamp system monitor (#2097)
urmauur Feb 22, 2024
da298ac
janhq/jan: Update README.md with nightly build artifact URL
jan-service-account Feb 22, 2024
cb10983
janhq/jan: Update README.md with nightly build artifact URL
jan-service-account Feb 22, 2024
64ee25b
janhq/jan: Update README.md with nightly build artifact URL
jan-service-account Feb 22, 2024
8f6b9b5
docs: hide incomplete roadmap page
henryh0x1 Feb 22, 2024
a790209
fix typo
henryh0x1 Feb 22, 2024
7ce0a13
revert content & remove sidebar only
henryh0x1 Feb 22, 2024
451459c
Merge branch 'dev' into docs-hide-incomplete-pages
henryh0x1 Feb 22, 2024
1248593
feat: sync website footer with about page
henryh0x1 Feb 22, 2024
18c9837
Merge branch 'docs-hide-incomplete-pages' of https://github.com/janhq…
henryh0x1 Feb 22, 2024
941667e
janhq/jan: Update README.md with nightly build artifact URL
jan-service-account Feb 22, 2024
bddb957
docs: hide incomplete pages (#2127)
henryh0x1 Feb 23, 2024
d0fd38d
docs-add-acknowledgements
henryh0x1 Feb 23, 2024
563f37f
fix: system monitor ui (#2135)
urmauur Feb 23, 2024
4e89732
Update quickstart content
aindrajaya Feb 23, 2024
fcb909f
Add plugin to fetch GH releases page recent data
aindrajaya Feb 23, 2024
c4ab52b
Merge pull request #2138 from aindrajaya/docs-pena-team
henryh0x1 Feb 23, 2024
3e0fe74
Merge branch 'dev' into docs-pena-team
henryh0x1 Feb 23, 2024
032c554
docs: update acknowledgements
henryh0x1 Feb 24, 2024
9f14284
docs: add acknowledgements (#2136)
henryh0x1 Feb 24, 2024
599504c
docs: update acknowledgements
henryh0x1 Feb 25, 2024
73d4954
docs: update README.md
henryh0x1 Feb 25, 2024
978e1c8
docs: update README.md
henryh0x1 Feb 25, 2024
d959cbd
docs: update run Jan in Docker mode
henryh0x1 Feb 26, 2024
e289b8a
docs: update run Jan in Docker mode (#2150)
henryh0x1 Feb 26, 2024
ad7ebb1
Merge branch 'dev' into docs-update-acknowledgements
henryh0x1 Feb 26, 2024
b968144
docs: re-allocate acknowledgements page
henryh0x1 Feb 26, 2024
e45e2bd
Merge branch 'docs-update-acknowledgements' of https://github.com/jan…
henryh0x1 Feb 26, 2024
32adc20
docs: update acknowledgements
henryh0x1 Feb 26, 2024
9eb880c
docs: fix typo
henryh0x1 Feb 26, 2024
dbcea71
Update README.md with Stable Download URLs
jan-service-account Feb 26, 2024
2b676fe
janhq/jan: Update README.md with nightly build artifact URL
jan-service-account Feb 26, 2024
e86cd7e
feat: add a simple way to convert Hugging Face model to GGUF (#1972)
Helloyunho Feb 26, 2024
9010874
Merge pull request #2151 from janhq/main
louis-jan Feb 26, 2024
6d72f4b
Merge branch 'dev' into docs-update-acknowledgements
henryh0x1 Feb 26, 2024
bbe1ad5
feat: restore docusaurus style (#2152)
urmauur Feb 26, 2024
92edd85
docs: update acknowledgements (#2147)
henryh0x1 Feb 26, 2024
773963a
feat: add import model (#2104)
namchuai Feb 26, 2024
64ea290
chore: make convert gguf as experimental feature (#2156)
namchuai Feb 26, 2024
d7bf98b
adds code samples for list models
avb-is-me Feb 27, 2024
a28230c
Add run codesign for huggingface extension (#2163)
hiento09 Feb 27, 2024
9078bbe
Huggingface extension add codesign step for building on darwin (#2166)
hiento09 Feb 27, 2024
00e5c4e
janhq/jan: Update README.md with nightly build artifact URL
jan-service-account Feb 27, 2024
b1e748b
fix: system monitor expand overlap tooltip ribbon (#2158)
urmauur Feb 27, 2024
fbee753
fix: wrong profile parameter in docker command (#2159)
mooncool Feb 27, 2024
593d9e0
Merge branch 'dev' into dev-docs-list-models-update
avb-is-me Feb 27, 2024
1635717
add docs for the model/model_id endpoints
avb-is-me Feb 27, 2024
e5726b3
Merge branch 'dev' into devdocs_update_to_modelid
avb-is-me Feb 27, 2024
a6dbcf3
adds code snippets for download
avb-is-me Feb 27, 2024
90a11ea
adds code snippets for chat completeions
avb-is-me Feb 27, 2024
b0376ba
Merge branch 'dev' into devdocs_update_download_model
avb-is-me Feb 27, 2024
a971766
Merge branch 'dev' into devdocs_updates_chat_completions
avb-is-me Feb 27, 2024
0dbccbd
docs: add and update the path of Image
aindrajaya Feb 27, 2024
b7248bc
docs: correct content on quickstart & installation
aindrajaya Feb 27, 2024
45efcad
fix: style list of gpu on system monitor (#2172)
urmauur Feb 27, 2024
b4e2ee7
docs: update the models content
aindrajaya Feb 27, 2024
b081a91
docs: update the content of integration & add discord openinterpreter
aindrajaya Feb 27, 2024
9210d20
docs: update extension content
aindrajaya Feb 27, 2024
94e8b23
docs: add common error content
aindrajaya Feb 27, 2024
701dd30
docs: add error-codes content
aindrajaya Feb 27, 2024
001432d
Merge branch 'dev' into docs-pena-team
henryh0x1 Feb 27, 2024
32a86bd
docs: add newsletter
henryh0x1 Feb 27, 2024
e3b1bca
Merge branch 'dev' into docs-newsletter
henryh0x1 Feb 27, 2024
222b4ad
feat: temporary remove dark mode :( (#2168)
urmauur Feb 27, 2024
d4df43e
fix: disabled user promp using dangerouslySetInnerHTML (#2176)
urmauur Feb 27, 2024
883d631
fix space between progress bar and title list of gpu (#2177)
urmauur Feb 27, 2024
98636ab
fix: change button import model on hub page (#2178)
urmauur Feb 27, 2024
65e5921
docs: update wall of love
henryh0x1 Feb 27, 2024
e628993
Merge branch 'dev' into docs-wall-of-love
henryh0x1 Feb 27, 2024
0bb29fc
docs: change text
henryh0x1 Feb 27, 2024
9131107
Merge branch 'docs-wall-of-love' of https://github.com/janhq/jan into…
henryh0x1 Feb 27, 2024
17c92d8
fix: change docker command
henryh0x1 Feb 27, 2024
d7070d8
fix: some bugs for import model (#2181)
namchuai Feb 27, 2024
a4d1317
janhq/jan: Update README.md with nightly build artifact URL
jan-service-account Feb 27, 2024
3c0ef12
Merge branch 'dev' into devdocs_updates_chat_completions
avb-is-me Feb 27, 2024
0309d74
adds code snippets for threads
avb-is-me Feb 27, 2024
3d24af5
docs: fix the customize engine section
aindrajaya Feb 28, 2024
0e52499
docs: remove unecessary code/content
aindrajaya Feb 28, 2024
a535ce8
docs: fix typo and shorten the step title
aindrajaya Feb 28, 2024
3a3622a
docs: fix apiBase value -> http://localhost:1337/v1
aindrajaya Feb 28, 2024
67cfb83
Merge branch 'docs-pena-team' of github.com:janhq/jan into docs-pena-…
aindrajaya Feb 28, 2024
43d2fc1
feat: lazy loading
henryh0x1 Feb 28, 2024
114b463
docs: add Jan newsletter (#2174)
henryh0x1 Feb 28, 2024
8c71895
docs: update wall of love (#2179)
henryh0x1 Feb 28, 2024
d878c85
fix: error href link
henryh0x1 Feb 28, 2024
22ad9df
Merge branch 'dev' into docs-pena-team
henryh0x1 Feb 28, 2024
e60a678
Merge pull request #2180 from janhq/docs-change-docker-command
henryh0x1 Feb 28, 2024
e9bd36f
docs: update the content for showing in card
aindrajaya Feb 28, 2024
cf3ac47
docs: implement image in doc card
aindrajaya Feb 28, 2024
4267589
chore: bump nitro 0.3.14 (#2183)
louis-jan Feb 28, 2024
f10b702
docs: Update 08-antivirus-compatibility-testing.md
0xSage Feb 28, 2024
499aa4a
docs: Update 01-integrate-continue.mdx
0xSage Feb 28, 2024
43ae502
janhq/jan: Update README.md with nightly build artifact URL
jan-service-account Feb 28, 2024
c36de31
Merge pull request #2187 from janhq/0xSage-patch-4
henryh0x1 Feb 28, 2024
8b9cd7a
adding new feature for v0.4.7
Van-QA Feb 28, 2024
7e7b88b
docs: update regression test template (#2189)
henryh0x1 Feb 28, 2024
30581ae
docs: Update 08-antivirus-compatibility-testing.md (#2186)
henryh0x1 Feb 28, 2024
a4478b0
Merge branch 'docs-pena-team' of github.com:janhq/jan into docs-pena-…
aindrajaya Feb 28, 2024
08c4540
adds updates to assistant
avb-is-me Feb 28, 2024
11ff9a2
adds code samples for the assistant_id endpoints
avb-is-me Feb 28, 2024
bfd1f08
Merge branch 'dev' into docs_updates_to_assistants
avb-is-me Feb 28, 2024
4288af0
Merge branch 'dev' into docs_updates_to_assistant_id
avb-is-me Feb 28, 2024
faec5cf
Merge branch 'dev' into docs-pena-team
henryh0x1 Feb 29, 2024
44d9f5b
fix: minor ui missing secondary background (#2198)
urmauur Feb 29, 2024
5c185d2
fix: download model error does not reset state in model hub (#2199)
namchuai Feb 29, 2024
1585f3d
docs: update content quickstart integration add mistral ollama & lm
aindrajaya Feb 29, 2024
53f66ce
docs: Update quickstart content add keywords
aindrajaya Feb 29, 2024
d449078
docs: add quickstart assets
aindrajaya Feb 29, 2024
7004a8b
docs: update integration content & add keywords
aindrajaya Feb 29, 2024
e4ff358
docs: update model content and add keywords
aindrajaya Feb 29, 2024
8e12e3a
janhq/jan: Update README.md with nightly build artifact URL
jan-service-account Mar 1, 2024
2dc90f8
docs: add hub page named trial -> /trial
aindrajaya Mar 1, 2024
5e248b7
docs: update and add quickstart content
aindrajaya Mar 1, 2024
66cdd88
docs: add advance settings menu and content
aindrajaya Mar 1, 2024
328bb6b
docs: update common-error section by add keywords for each page
aindrajaya Mar 1, 2024
774db85
docs: update content error-codes section by add keywords and description
aindrajaya Mar 1, 2024
8e77307
docs: update content integration section by add keywords and description
aindrajaya Mar 1, 2024
a906dc1
docs: update extensions section by add keywords and description
aindrajaya Mar 1, 2024
990ae19
docs: update content models section remove image and add keywords
aindrajaya Mar 1, 2024
90fff56
docs: implement icon menu for mistral, lm and ollama
aindrajaya Mar 1, 2024
ef45995
docs: update content for Trial page -> the hub section
aindrajaya Mar 1, 2024
a4aefa8
Merge branch 'dev' into docs-pena-team
henryh0x1 Mar 1, 2024
0985a44
docs: correct advanced settings
henryh0x1 Mar 1, 2024
28ac386
docs: migrate import using absolute filepath content
henryh0x1 Mar 1, 2024
b969346
fix: configure the Algolia search
henryh0x1 Mar 1, 2024
4744d4c
feat: enable contextSearch
henryh0x1 Mar 1, 2024
02de234
feat: connect siteConfig
henryh0x1 Mar 1, 2024
018b057
Merge branch 'dev' into dev-docs-list-models-update
henryh0x1 Mar 2, 2024
764bc2c
docs: update API Reference listModel from DevDocs (#2161)
henryh0x1 Mar 2, 2024
9cd2454
Merge branch 'dev' into devdocs_update_to_modelid
henryh0x1 Mar 2, 2024
69be8d7
docs: update API Reference model_id from DevDocs (#2169)
henryh0x1 Mar 2, 2024
9c5be3b
Merge branch 'dev' into devdocs_update_download_model
henryh0x1 Mar 2, 2024
199c272
docs: update API Reference download model from DevDocs (#2170)
henryh0x1 Mar 2, 2024
2a893b4
Merge branch 'dev' into devdocs_updates_chat_completions
henryh0x1 Mar 2, 2024
d6ccda0
docs: update API Reference chatCompletions from DevDocs (#2171)
henryh0x1 Mar 2, 2024
fabc279
Merge branch 'dev' into docs-pena-team
henryh0x1 Mar 2, 2024
7acc445
Merge branch 'dev' into doc_updates_to_threads_endpoint
henryh0x1 Mar 2, 2024
b03a9b2
docs: update API Reference threads endpoint from DevDocs (#2182)
henryh0x1 Mar 2, 2024
fb51deb
Merge branch 'dev' into docs_updates_to_assistants
henryh0x1 Mar 2, 2024
fde1207
docs: update API Reference assistants endpoint from DevDocs (#2194)
henryh0x1 Mar 2, 2024
5a6c20c
Merge branch 'dev' into docs_updates_to_assistant_id
henryh0x1 Mar 2, 2024
02f2536
docs: re-order language support consistency
henryh0x1 Mar 2, 2024
497020c
docs: yaml lint
henryh0x1 Mar 2, 2024
7f2513f
docs: update API Reference assistants_id endpoint from DevDocs (#2195)
henryh0x1 Mar 2, 2024
52f84dc
chore: clean up some redundant code (#2215)
namchuai Mar 3, 2024
b70e7fb
fix: comment from QA regarding import model (#2213)
namchuai Mar 3, 2024
1bdf791
fix: import from HuggingFace with random string is causing app crash …
louis-jan Mar 3, 2024
3ca6699
docs: change the hub slug into /docs and the latests /docs into /fram…
aindrajaya Mar 4, 2024
9791da5
docs: removed duplicate guides section
aindrajaya Mar 4, 2024
71f314b
docs: change folder structure from quickstart to guides
aindrajaya Mar 4, 2024
d695f4a
docs: Changelogs plugin updated without accessToken
aindrajaya Mar 4, 2024
6121283
feat: add turborepo (#2220)
louis-jan Mar 4, 2024
cb3c700
docs: input framework menu into /developer slug
aindrajaya Mar 4, 2024
89133fb
docs: hub page responsive fixed
aindrajaya Mar 4, 2024
544e9fd
docs: fix the redirect paths
aindrajaya Mar 4, 2024
6844bf6
Merge branch 'dev' into docs-pena-team
henryh0x1 Mar 4, 2024
4aa09e0
docs: fix homepage link
aindrajaya Mar 4, 2024
635435f
Revert feat: temporary remove dark mode (#2221)
urmauur Mar 4, 2024
2a3d32c
Merge branch 'dev' into docs-pena-team
henryh0x1 Mar 4, 2024
07ef5b8
docs: 2nd navbar implementation
aindrajaya Mar 4, 2024
fc8eb28
docs: update path from category -> guides
aindrajaya Mar 4, 2024
2fb9931
docs: hub page fix link for the content
aindrajaya Mar 4, 2024
217ae16
docs: update models content import and integrate remote -> model.json…
aindrajaya Mar 4, 2024
1f9418b
docs: add faqs page
aindrajaya Mar 4, 2024
78b6fe3
docs: update content for advanced settings
aindrajaya Mar 4, 2024
00726e7
docs: fix href ink
aindrajaya Mar 4, 2024
435b947
Merge branch 'docs-pena-team' of github.com:janhq/jan into docs-pena-…
aindrajaya Mar 4, 2024
5570091
Macos Notarize migrage to new Team ID (#2228)
hiento09 Mar 4, 2024
5540cd2
Merge branch 'dev' into docs-pena-team
henryh0x1 Mar 4, 2024
c5d7942
janhq/jan: Update README.md with nightly build artifact URL
jan-service-account Mar 4, 2024
7d4acf1
docs: update title Docs | Jan
henryh0x1 Mar 4, 2024
d402570
Merge branch 'dev' into docs-pena-team
henryh0x1 Mar 4, 2024
af1eb80
docs: revamp entire Jan guides (#2139)
henryh0x1 Mar 4, 2024
dcd36eb
fix: re-configure changelog sections
henryh0x1 Mar 4, 2024
32b4162
docs: add command run API server without frontend
henryh0x1 Mar 4, 2024
dca5af8
docs: add command run API server without frontend (#2231)
henryh0x1 Mar 4, 2024
ab78319
fix: re-configure changelog sections (#2230)
henryh0x1 Mar 4, 2024
1584f0d
Add prefix latest/ for task clean r2 bucket (#2233)
hiento09 Mar 4, 2024
e6c1020
feat: Jan can see (#2069)
hiro-v Mar 5, 2024
0201363
fix: drag and drop support image format when model has vision_model a…
urmauur Mar 5, 2024
8ecd936
fix: replaced user path from app log (#2238)
namchuai Mar 5, 2024
5758ac8
docs: Update tailwind config and remove unused css
aindrajaya Mar 5, 2024
50412a6
docs: Update navbar content and styling so it has style similar to Sn…
aindrajaya Mar 5, 2024
afd3cb9
docs: Hub page styling fix darkmode and change into tailwind styling
aindrajaya Mar 5, 2024
16bbd9e
docs: update layout so it can handle navbar function smoothly
aindrajaya Mar 5, 2024
53e0c53
docs: Update hub page component styling to tailwind css
aindrajaya Mar 5, 2024
8007896
Merge branch 'dev' into docs-pena-team
aindrajaya Mar 5, 2024
22d81d5
janhq/jan: Update README.md with nightly build artifact URL
jan-service-account Mar 5, 2024
1c14bd9
docs: enhance dark mode on Docs Hub (#2243)
henryh0x1 Mar 5, 2024
56fcf98
docs: fix bug and rename Changelog nav item
aindrajaya Mar 5, 2024
36eb195
docs: Update hub page content
aindrajaya Mar 5, 2024
5bd20d7
docs: Add new content best practices for guides section
aindrajaya Mar 5, 2024
7a1154a
docs: Update content for guides -> advanced settings
aindrajaya Mar 5, 2024
2cb3dbd
docs: Update content for common-error
aindrajaya Mar 5, 2024
408fa12
docs: correct explanation of https proxy affect
henryh0x1 Mar 5, 2024
b24de38
docs: fix typo and grammar issues
henryh0x1 Mar 5, 2024
d6af0f0
docs: update not-using-gpu
henryh0x1 Mar 5, 2024
b0f4c87
docs: improve current text
henryh0x1 Mar 5, 2024
c91b212
docs: update content for Hub page and Guides section (#2245)
henryh0x1 Mar 5, 2024
5104912
fix: error message being sent along with conversation when inference …
namchuai Mar 5, 2024
e9e6942
janhq/jan: Update README.md with nightly build artifact URL
jan-service-account Mar 5, 2024
7f6e4ab
docs: Fix navbar issues. Keep stay when clicked other menu items from…
aindrajaya Mar 6, 2024
5ca3069
fix: image upload button and drag event are not enabled (#2248)
louis-jan Mar 6, 2024
9dc4ede
docs: fix navbar issues (#2253)
henryh0x1 Mar 6, 2024
9d0cdf8
docs: update the changelog docs
aindrajaya Mar 6, 2024
086361d
docs: Add guides doc for how to get error logs
aindrajaya Mar 6, 2024
dd1f20f
docs: update manual import slug
aindrajaya Mar 6, 2024
7e2f1d9
docs: update the content for thread and best practices
aindrajaya Mar 6, 2024
7556430
fix: should not attach error messages to the completion request (#2258)
louis-jan Mar 6, 2024
8441447
docs: fix the broken link -> redirect to the right paths
aindrajaya Mar 6, 2024
b950518
docs: fix the slug for changelog
aindrajaya Mar 6, 2024
2677ef4
docs: fix the changelog v0.4.1
aindrajaya Mar 6, 2024
610a384
Chore: Update new models to model hub (#2192)
hahuyhoang411 Mar 6, 2024
e2d42aa
janhq/jan: Update README.md with nightly build artifact URL
jan-service-account Mar 6, 2024
b4f6e27
janhq/jan: Update README.md with nightly build artifact URL
jan-service-account Mar 6, 2024
e2e3ae7
docs: Update broken link and fix the slug (#2260)
henryh0x1 Mar 7, 2024
49ad855
feat: prompt user to download an update manually (#2261)
louis-jan Mar 7, 2024
04077ac
janhq/jan: Update README.md with nightly build artifact URL
jan-service-account Mar 7, 2024
5abe2e1
chore: temporary remove convert model (#2266)
namchuai Mar 7, 2024
3ef660b
Add modify notary team in CI (#2265)
hiento09 Mar 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge dev branch
  • Loading branch information
dan-homebrew committed Feb 10, 2024
commit 63a101618e26f188aa8469af852b1d3d3dbf43f7
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 55,10 @@ jobs:
steps:
- name: install-aws-cli-action
uses: unfor19/install-aws-cli-action@v1
- name: Delete object older than 7 days
- name: Delete object older than 10 days
run: |
# Get the list of objects in the 'latest' folder
OBJECTS=$(aws s3api list-objects --bucket ${{ secrets.CLOUDFLARE_R2_BUCKET_NAME }} --query 'Contents[?LastModified<`'$(date -d "$current_date -30 days" -u "%Y-%m-%dT%H:%M:%SZ")'`].{Key: Key}' --endpoint-url https://${{ secrets.CLOUDFLARE_ACCOUNT_ID }}.r2.cloudflarestorage.com | jq -c .)
OBJECTS=$(aws s3api list-objects --bucket ${{ secrets.CLOUDFLARE_R2_BUCKET_NAME }} --query 'Contents[?LastModified<`'$(date -d "$current_date -10 days" -u "%Y-%m-%dT%H:%M:%SZ")'`].{Key: Key}' --endpoint-url https://${{ secrets.CLOUDFLARE_ACCOUNT_ID }}.r2.cloudflarestorage.com | jq -c .)

# Create a JSON file for the delete operation
echo "{\"Objects\": $OBJECTS, \"Quiet\": false}" > delete.json
Expand Down
67 changes: 43 additions & 24 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,39 1,58 @@
FROM node:20-bullseye AS base
FROM node:20-bookworm AS base

# 1. Install dependencies only when needed
FROM base AS deps
FROM base AS builder

# Install g 11
RUN apt update && apt install -y gcc-11 g -11 cpp-11 jq xsel && rm -rf /var/lib/apt/lists/*

WORKDIR /app

# Install dependencies based on the preferred package manager
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./
RUN yarn install
COPY . ./

# # 2. Rebuild the source code only when needed
FROM base AS builder
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .
# This will do the trick, use the corresponding env file for each environment.
RUN yarn workspace server install
RUN yarn server:prod
RUN export NITRO_VERSION=$(cat extensions/inference-nitro-extension/bin/version.txt) && \
jq --arg nitroVersion $NITRO_VERSION '(.scripts."downloadnitro:linux" | gsub("\\${NITRO_VERSION}"; $nitroVersion)) | gsub("\r"; "")' extensions/inference-nitro-extension/package.json > /tmp/newcommand.txt && export NEW_COMMAND=$(sed 's/^"//;s/"$//' /tmp/newcommand.txt) && jq --arg newCommand "$NEW_COMMAND" '.scripts."downloadnitro:linux" = $newCommand' extensions/inference-nitro-extension/package.json > /tmp/package.json && mv /tmp/package.json extensions/inference-nitro-extension/package.json
RUN make install-and-build
RUN yarn workspace jan-web install

RUN export NODE_ENV=production && yarn workspace jan-web build

# 3. Production image, copy all the files and run next
# # 2. Rebuild the source code only when needed
FROM base AS runner

# Install g 11
RUN apt update && apt install -y gcc-11 g -11 cpp-11 jq xsel && rm -rf /var/lib/apt/lists/*

WORKDIR /app

ENV NODE_ENV=production
# Copy the package.json and yarn.lock of root yarn space to leverage Docker cache
COPY --from=builder /app/package.json ./package.json
COPY --from=builder /app/node_modules ./node_modules/
COPY --from=builder /app/yarn.lock ./yarn.lock

# Copy the package.json, yarn.lock, and build output of server yarn space to leverage Docker cache
COPY --from=builder /app/server ./server/
COPY --from=builder /app/docs/openapi ./docs/openapi/

# Copy pre-install dependencies
COPY --from=builder /app/pre-install ./pre-install/

# Copy the package.json, yarn.lock, and output of web yarn space to leverage Docker cache
COPY --from=builder /app/web/out ./web/out/
COPY --from=builder /app/web/.next ./web/.next/
COPY --from=builder /app/web/package.json ./web/package.json
COPY --from=builder /app/web/yarn.lock ./web/yarn.lock
COPY --from=builder /app/models ./models/

# RUN addgroup -g 1001 -S nodejs;
COPY --from=builder /app/server/build ./
RUN npm install -g serve@latest

# Automatically leverage output traces to reduce image size
# https://nextjs.org/docs/advanced-features/output-file-tracing
COPY --from=builder /app/server/node_modules ./node_modules
COPY --from=builder /app/server/package.json ./package.json
EXPOSE 1337 3000 3928

EXPOSE 4000 3928
ENV JAN_API_HOST 0.0.0.0
ENV JAN_API_PORT 1337

ENV PORT 4000
ENV APPDATA /app/data
CMD ["sh", "-c", "cd server && node build/main.js & cd web && npx serve out"]

CMD ["node", "main.js"]
# docker build -t jan .
# docker run -p 1337:1337 -p 3000:3000 -p 3928:3928 jan
85 changes: 85 additions & 0 deletions Dockerfile.gpu
Original file line number Diff line number Diff line change
@@ -0,0 1,85 @@
# Please change the base image to the appropriate CUDA version base on NVIDIA Driver Compatibility
# Run nvidia-smi to check the CUDA version and the corresponding driver version
# Then update the base image to the appropriate CUDA version refer https://catalog.ngc.nvidia.com/orgs/nvidia/containers/cuda/tags

FROM nvidia/cuda:12.2.0-runtime-ubuntu22.04 AS base

# 1. Install dependencies only when needed
FROM base AS builder

# Install g 11
RUN apt update && apt install -y gcc-11 g -11 cpp-11 jq xsel curl gnupg make python3-dev && curl -sL https://deb.nodesource.com/setup_20.x | bash - && apt install nodejs -y && rm -rf /var/lib/apt/lists/*

# Update alternatives for GCC and related tools
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 110 \
--slave /usr/bin/g g /usr/bin/g -11 \
--slave /usr/bin/gcov gcov /usr/bin/gcov-11 \
--slave /usr/bin/gcc-ar gcc-ar /usr/bin/gcc-ar-11 \
--slave /usr/bin/gcc-ranlib gcc-ranlib /usr/bin/gcc-ranlib-11 && \
update-alternatives --install /usr/bin/cpp cpp /usr/bin/cpp-11 110

RUN npm install -g yarn

WORKDIR /app

# Install dependencies based on the preferred package manager
COPY . ./

RUN export NITRO_VERSION=$(cat extensions/inference-nitro-extension/bin/version.txt) && \
jq --arg nitroVersion $NITRO_VERSION '(.scripts."downloadnitro:linux" | gsub("\\${NITRO_VERSION}"; $nitroVersion)) | gsub("\r"; "")' extensions/inference-nitro-extension/package.json > /tmp/newcommand.txt && export NEW_COMMAND=$(sed 's/^"//;s/"$//' /tmp/newcommand.txt) && jq --arg newCommand "$NEW_COMMAND" '.scripts."downloadnitro:linux" = $newCommand' extensions/inference-nitro-extension/package.json > /tmp/package.json && mv /tmp/package.json extensions/inference-nitro-extension/package.json
RUN make install-and-build
RUN yarn workspace jan-web install

RUN export NODE_ENV=production && yarn workspace jan-web build

# # 2. Rebuild the source code only when needed
FROM base AS runner

# Install g 11
RUN apt update && apt install -y gcc-11 g -11 cpp-11 jq xsel curl gnupg make python3-dev && curl -sL https://deb.nodesource.com/setup_20.x | bash - && apt-get install nodejs -y && rm -rf /var/lib/apt/lists/*

# Update alternatives for GCC and related tools
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 110 \
--slave /usr/bin/g g /usr/bin/g -11 \
--slave /usr/bin/gcov gcov /usr/bin/gcov-11 \
--slave /usr/bin/gcc-ar gcc-ar /usr/bin/gcc-ar-11 \
--slave /usr/bin/gcc-ranlib gcc-ranlib /usr/bin/gcc-ranlib-11 && \
update-alternatives --install /usr/bin/cpp cpp /usr/bin/cpp-11 110

RUN npm install -g yarn

WORKDIR /app

# Copy the package.json and yarn.lock of root yarn space to leverage Docker cache
COPY --from=builder /app/package.json ./package.json
COPY --from=builder /app/node_modules ./node_modules/
COPY --from=builder /app/yarn.lock ./yarn.lock

# Copy the package.json, yarn.lock, and build output of server yarn space to leverage Docker cache
COPY --from=builder /app/server ./server/
COPY --from=builder /app/docs/openapi ./docs/openapi/

# Copy pre-install dependencies
COPY --from=builder /app/pre-install ./pre-install/

# Copy the package.json, yarn.lock, and output of web yarn space to leverage Docker cache
COPY --from=builder /app/web/out ./web/out/
COPY --from=builder /app/web/.next ./web/.next/
COPY --from=builder /app/web/package.json ./web/package.json
COPY --from=builder /app/web/yarn.lock ./web/yarn.lock
COPY --from=builder /app/models ./models/

RUN npm install -g serve@latest

EXPOSE 1337 3000 3928

ENV LD_LIBRARY_PATH=/usr/local/cuda/targets/x86_64-linux/lib:/usr/local/cuda-12.0/compat${LD_LIBRARY_PATH: :${LD_LIBRARY_PATH}}

ENV JAN_API_HOST 0.0.0.0
ENV JAN_API_PORT 1337

CMD ["sh", "-c", "cd server && node build/main.js & cd web && npx serve out"]

# pre-requisites: nvidia-docker
# docker build -t jan-gpu . -f Dockerfile.gpu
# docker run -p 1337:1337 -p 3000:3000 -p 3928:3928 --gpus all jan-gpu
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 24,9 @@ endif

check-file-counts: install-and-build
ifeq ($(OS),Windows_NT)
powershell -Command "if ((Get-ChildItem -Path electron/pre-install -Filter *.tgz | Measure-Object | Select-Object -ExpandProperty Count) -ne (Get-ChildItem -Path extensions -Directory | Measure-Object | Select-Object -ExpandProperty Count)) { Write-Host 'Number of .tgz files in electron/pre-install does not match the number of subdirectories in extension'; exit 1 } else { Write-Host 'Extension build successful' }"
powershell -Command "if ((Get-ChildItem -Path pre-install -Filter *.tgz | Measure-Object | Select-Object -ExpandProperty Count) -ne (Get-ChildItem -Path extensions -Directory | Measure-Object | Select-Object -ExpandProperty Count)) { Write-Host 'Number of .tgz files in pre-install does not match the number of subdirectories in extension'; exit 1 } else { Write-Host 'Extension build successful' }"
else
@tgz_count=$$(find electron/pre-install -type f -name "*.tgz" | wc -l); dir_count=$$(find extensions -mindepth 1 -maxdepth 1 -type d | wc -l); if [ $$tgz_count -ne $$dir_count ]; then echo "Number of .tgz files in electron/pre-install ($$tgz_count) does not match the number of subdirectories in extension ($$dir_count)"; exit 1; else echo "Extension build successful"; fi
@tgz_count=$$(find pre-install -type f -name "*.tgz" | wc -l); dir_count=$$(find extensions -mindepth 1 -maxdepth 1 -type d | wc -l); if [ $$tgz_count -ne $$dir_count ]; then echo "Number of .tgz files in pre-install ($$tgz_count) does not match the number of subdirectories in extension ($$dir_count)"; exit 1; else echo "Extension build successful"; fi
endif

dev: check-file-counts
Expand Down
90 changes: 80 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,31 43,31 @@ Jan is an open-source ChatGPT alternative that runs 100% offline on your compute
<tr style="text-align:center">
<td style="text-align:center"><b>Stable (Recommended)</b></td>
<td style="text-align:center">
<a href='https://github.com/janhq/jan/releases/download/v0.4.5/jan-win-x64-0.4.5.exe'>
<a href='https://github.com/janhq/jan/releases/download/v0.4.6/jan-win-x64-0.4.6.exe'>
<img src='./docs/static/img/windows.png' style="height:14px; width: 14px" />
<b>jan.exe</b>
</a>
</td>
<td style="text-align:center">
<a href='https://github.com/janhq/jan/releases/download/v0.4.5/jan-mac-x64-0.4.5.dmg'>
<a href='https://github.com/janhq/jan/releases/download/v0.4.6/jan-mac-x64-0.4.6.dmg'>
<img src='./docs/static/img/mac.png' style="height:15px; width: 15px" />
<b>Intel</b>
</a>
</td>
<td style="text-align:center">
<a href='https://github.com/janhq/jan/releases/download/v0.4.5/jan-mac-arm64-0.4.5.dmg'>
<a href='https://github.com/janhq/jan/releases/download/v0.4.6/jan-mac-arm64-0.4.6.dmg'>
<img src='./docs/static/img/mac.png' style="height:15px; width: 15px" />
<b>M1/M2</b>
</a>
</td>
<td style="text-align:center">
<a href='https://github.com/janhq/jan/releases/download/v0.4.5/jan-linux-amd64-0.4.5.deb'>
<a href='https://github.com/janhq/jan/releases/download/v0.4.6/jan-linux-amd64-0.4.6.deb'>
<img src='./docs/static/img/linux.png' style="height:14px; width: 14px" />
<b>jan.deb</b>
</a>
</td>
<td style="text-align:center">
<a href='https://github.com/janhq/jan/releases/download/v0.4.5/jan-linux-x86_64-0.4.5.AppImage'>
<a href='https://github.com/janhq/jan/releases/download/v0.4.6/jan-linux-x86_64-0.4.6.AppImage'>
<img src='./docs/static/img/linux.png' style="height:14px; width: 14px" />
<b>jan.AppImage</b>
</a>
Expand All @@ -76,31 76,31 @@ Jan is an open-source ChatGPT alternative that runs 100% offline on your compute
<tr style="text-align:center">
<td style="text-align:center"><b>Experimental (Nightly Build)</b></td>
<td style="text-align:center">
<a href='https://delta.jan.ai/latest/jan-win-x64-0.4.5-216.exe'>
<a href='https://delta.jan.ai/latest/jan-win-x64-0.4.6-264.exe'>
<img src='./docs/static/img/windows.png' style="height:14px; width: 14px" />
<b>jan.exe</b>
</a>
</td>
<td style="text-align:center">
<a href='https://delta.jan.ai/latest/jan-mac-x64-0.4.5-216.dmg'>
<a href='https://delta.jan.ai/latest/jan-mac-x64-0.4.6-264.dmg'>
<img src='./docs/static/img/mac.png' style="height:15px; width: 15px" />
<b>Intel</b>
</a>
</td>
<td style="text-align:center">
<a href='https://delta.jan.ai/latest/jan-mac-arm64-0.4.5-216.dmg'>
<a href='https://delta.jan.ai/latest/jan-mac-arm64-0.4.6-264.dmg'>
<img src='./docs/static/img/mac.png' style="height:15px; width: 15px" />
<b>M1/M2</b>
</a>
</td>
<td style="text-align:center">
<a href='https://delta.jan.ai/latest/jan-linux-amd64-0.4.5-216.deb'>
<a href='https://delta.jan.ai/latest/jan-linux-amd64-0.4.6-264.deb'>
<img src='./docs/static/img/linux.png' style="height:14px; width: 14px" />
<b>jan.deb</b>
</a>
</td>
<td style="text-align:center">
<a href='https://delta.jan.ai/latest/jan-linux-x86_64-0.4.5-216.AppImage'>
<a href='https://delta.jan.ai/latest/jan-linux-x86_64-0.4.6-264.AppImage'>
<img src='./docs/static/img/linux.png' style="height:14px; width: 14px" />
<b>jan.AppImage</b>
</a>
Expand Down Expand Up @@ -218,6 218,76 @@ make build

This will build the app MacOS m1/m2 for production (with code signing already done) and put the result in `dist` folder.

### Docker mode

- Supported OS: Linux, WSL2 Docker
- Pre-requisites:
- `docker` and `docker compose`, follow instruction [here](https://docs.docker.com/engine/install/ubuntu/)

```bash
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh ./get-docker.sh --dry-run
```

- `nvidia-driver` and `nvidia-docker2`, follow instruction [here](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html) (If you want to run with GPU mode)

- Run Jan in Docker mode

- **Option 1**: Run Jan in CPU mode

```bash
docker compose --profile cpu up -d
```

- **Option 2**: Run Jan in GPU mode

- **Step 1**: Check cuda compatibility with your nvidia driver by running `nvidia-smi` and check the cuda version in the output

```bash
nvidia-smi

# Output
---------------------------------------------------------------------------------------
| NVIDIA-SMI 531.18 Driver Version: 531.18 CUDA Version: 12.1 |
|----------------------------------------- ---------------------- ----------------------
| GPU Name TCC/WDDM | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|========================================= ====================== ======================|
| 0 NVIDIA GeForce RTX 4070 Ti WDDM | 00000000:01:00.0 On | N/A |
| 0% 44C P8 16W / 285W| 1481MiB / 12282MiB | 2% Default |
| | | N/A |
----------------------------------------- ---------------------- ----------------------
| 1 NVIDIA GeForce GTX 1660 Ti WDDM | 00000000:02:00.0 Off | N/A |
| 0% 49C P8 14W / 120W| 0MiB / 6144MiB | 0% Default |
| | | N/A |
----------------------------------------- ---------------------- ----------------------
| 2 NVIDIA GeForce GTX 1660 Ti WDDM | 00000000:05:00.0 Off | N/A |
| 29% 38C P8 11W / 120W| 0MiB / 6144MiB | 0% Default |
| | | N/A |
----------------------------------------- ---------------------- ----------------------

---------------------------------------------------------------------------------------
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=======================================================================================|
```

- **Step 2**: Go to https://catalog.ngc.nvidia.com/orgs/nvidia/containers/cuda/tags and find the smallest minor version of image tag that matches the cuda version from the output of `nvidia-smi` (e.g. 12.1 -> 12.1.0)

- **Step 3**: Update the `Dockerfile.gpu` line number 5 with the latest minor version of the image tag from step 2 (e.g. change `FROM nvidia/cuda:12.2.0-runtime-ubuntu22.04 AS base` to `FROM nvidia/cuda:12.1.0-runtime-ubuntu22.04 AS base`)

- **Step 4**: Run command to start Jan in GPU mode

```bash
# GPU mode
docker compose --profile gpu up -d
```

This will start the web server and you can access Jan at `http://localhost:3000`.
> Note: Currently, Docker mode is only work for development and localhost, production is not supported yet. RAG feature is not supported in Docker mode yet.

## Acknowledgements

Jan builds on top of other open-source projects:
Expand Down
3 changes: 2 additions & 1 deletion core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 57,7 @@
"rollup-plugin-typescript2": "^0.36.0",
"ts-jest": "^26.1.1",
"tslib": "^2.6.2",
"typescript": "^5.2.2"
"typescript": "^5.2.2",
"rimraf": "^3.0.2"
}
}
1 change: 1 addition & 0 deletions core/src/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 30,7 @@ export enum DownloadRoute {
downloadFile = 'downloadFile',
pauseDownload = 'pauseDownload',
resumeDownload = 'resumeDownload',
getDownloadProgress = 'getDownloadProgress',
}

export enum DownloadEvent {
Expand Down
11 changes: 10 additions & 1 deletion core/src/node/api/routes/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 12,8 @@ import {
import { JanApiRouteConfiguration } from '../common/configuration'
import { startModel, stopModel } from '../common/startStopModel'
import { ModelSettingParams } from '../../../types'
import { getJanDataFolderPath } from '../../utils'
import { normalizeFilePath } from '../../path'

export const commonRouter = async (app: HttpServer) => {
// Common Routes
Expand Down Expand Up @@ -52,7 54,14 @@ export const commonRouter = async (app: HttpServer) => {
// App Routes
app.post(`/app/${AppRoute.joinPath}`, async (request: any, reply: any) => {
const args = JSON.parse(request.body) as any[]
reply.send(JSON.stringify(join(...args[0])))

const paths = args[0].map((arg: string) =>
typeof arg === 'string' && (arg.startsWith(`file:/`) || arg.startsWith(`file:\\`))
? join(getJanDataFolderPath(), normalizeFilePath(arg))
: arg
)

reply.send(JSON.stringify(join(...paths)))
})

app.post(`/app/${AppRoute.baseName}`, async (request: any, reply: any) => {
Expand Down
Loading
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.