Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
0151617
Enhancement: Use XDG Directory Specification by default on Linux (#2035)
qnixsynapse Feb 27, 2025
57004f5
doc: update build instruction for windows (#2044)
gau-nernst Feb 28, 2025
51f9123
fix: docker CI (#2051)
vansangpfiev Feb 28, 2025
fd4edc0
fix: add missing yaml header (#2046)
gau-nernst Feb 28, 2025
0d744fc
feat: improvements to subprocess functionality (#2047)
gau-nernst Mar 3, 2025
3e7f764
chore: Implement Normalize Engine and remove anonymous namespaces (#2…
github-roushan Mar 4, 2025
c9a35d0
chore: remove unused header (#2045)
github-roushan Mar 4, 2025
8b36837
chore: add validation for numeric input and handle out of range value…
github-roushan Mar 4, 2025
5ea79ec
task: expand e2e API POST engine default (#2034)
LeVinhGithub Mar 5, 2025
14bc466
fix: add Authorization Bearer (#2062)
vansangpfiev Mar 6, 2025
ea24ea4
chore: add api_keys to /v1/configs docs (#2070)
vansangpfiev Mar 6, 2025
b74e4d4
task: Expand e2e test for section "thread" #2067
LeVinhGithub Mar 6, 2025
7194ca6
task: Expand e2e test for section "message" #2064
LeVinhGithub Mar 6, 2025
6716266
fix: use copy instead of reference (#2073)
vansangpfiev Mar 6, 2025
8681544
task: Expand e2e test for section "files" #2065
LeVinhGithub Mar 7, 2025
0c5dac4
fix: -Wreorder warning in DownloadService constructor (#2077)
qnixsynapse Mar 7, 2025
54fd1d3
task: expand e2e Assistant (#2084)
LeVinhGithub Mar 10, 2025
dbaf4f8
Update .gitignore (#2087)
github-roushan Mar 10, 2025
ae5bfa8
chore: suppress warnings on Windows (#2089)
vansangpfiev Mar 10, 2025
88efee0
Add CMake option for Cortex code quality assurance (#2085)
qnixsynapse Mar 10, 2025
d1dccf3
fix: Remove unnecessary std::move from temporary objects in Text stru…
qnixsynapse Mar 10, 2025
ce5cbe8
chore: address compiler warnings (#2072)
github-roushan Mar 10, 2025
236beb7
fix: Exception Handling and multiline comment
qnixsynapse Mar 10, 2025
e541d12
Merge pull request #2092 from janhq/fix/exception_handling_by_ref
qnixsynapse Mar 11, 2025
7c3788d
task: expand e2e Hardware
LeVinhGithub Mar 11, 2025
aa149df
chore: use non-cuda version for e2e tests (#2112)
vansangpfiev Mar 12, 2025
e9700a6
fix: update career url
urmauur Mar 12, 2025
994df07
Merge pull request #2114 from janhq/fix/career-url
urmauur Mar 12, 2025
d80ddc8
chore: remove engine before installing for e2e test (#2113)
vansangpfiev Mar 12, 2025
81211a4
fix: all leftover warnings on Linux (#2111)
qnixsynapse Mar 12, 2025
9ee8b2b
fix: add more parameters to server start command (#2032)
vansangpfiev Mar 17, 2025
90c622a
chore: Remove supported_engines check in CLI (#2129)
gau-nernst Mar 17, 2025
8621376
fix: add follow location option for get request (#2131)
vansangpfiev Mar 17, 2025
8ae8e2f
chore: delete unused old download functions (#2133)
gau-nernst Mar 17, 2025
42126f4
Merge branch 'main' of https://github.com/janhq/cortex.cpp into s/cho…
sangjanai Mar 18, 2025
1191ebb
Merge pull request #2147 from menloresearch/s/chore/sync-main-to-dev
vansangpfiev Mar 18, 2025
ccf5c91
chore: remove python engine (#2146)
gau-nernst Mar 19, 2025
948396b
fix: crash if invalid url is set (#2142)
vansangpfiev Mar 19, 2025
2e1dfa0
chore: Move to C++17 and fix extra warnings (#2138)
qnixsynapse Mar 20, 2025
f817b92
fix: github url
urmauur Mar 20, 2025
bc1df0f
Merge pull request #2158 from menloresearch/fix/github-url
urmauur Mar 20, 2025
6bb4656
fix: prevent unlimited loop due to invalid filename in path (#2155)
qnixsynapse Mar 21, 2025
3fef2db
bugfix: more stringent out-of-bound checks for GGUF parser (#2159)
gau-nernst Mar 21, 2025
b31878d
chore: change default GH user agent (#2150)
vansangpfiev Mar 21, 2025
55bea1b
chore: replace homebrew attr to menlo research
urmauur Mar 24, 2025
bfe2b05
epic: Add compiler optimizations (#2170)
qnixsynapse Mar 24, 2025
cf3b129
Update LICENSE
urmauur Mar 24, 2025
770d44e
Merge pull request #2172 from menloresearch/chore/remove-attr-homebrew
urmauur Mar 24, 2025
a9dcc91
ci: add cortex docs new release
Minh141120 Mar 24, 2025
1d8487c
chore: add pr to dev to test ci
Minh141120 Mar 24, 2025
013aeb0
ci: update redirect continue on error
Minh141120 Mar 24, 2025
d457414
ci: remove pr dev testing
Minh141120 Mar 24, 2025
45b2706
Merge pull request #2174 from menloresearch/ci/cortex-docs-new-release
Minh141120 Mar 24, 2025
262fb1f
chore: suppress more warnings on Windows (#2173)
vansangpfiev Mar 25, 2025
2af7798
Merge branch 'main' of https://github.com/menloresearch/cortex.cpp in…
sangjanai Mar 25, 2025
b0bf02b
Merge pull request #2160 from menloresearch/s/chore/sync-main
vansangpfiev Mar 25, 2025
588aa95
fix: handle preflight requests (#2175)
vansangpfiev Mar 26, 2025
ae43c53
fix: add cors and allowed_origins to server standalone parameters (#2…
vansangpfiev Mar 26, 2025
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
51 changes: 51 additions & 0 deletions .github/workflows/cortex-cpp-quality-gate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,24 @@ jobs:


- name: Run setup config
if: runner.os != 'Linux'
run: |
cd engine
echo "huggingFaceToken: ${{ secrets.HUGGINGFACE_TOKEN_READ }}" > ~/.cortexrc
echo "gitHubToken: ${{ secrets.PAT_SERVICE_ACCOUNT }}" >> ~/.cortexrc
# ./build/cortex
cat ~/.cortexrc

- name: Run setup config
if: runner.os == 'Linux'
run: |
cd engine
mkdir -p ~/.config/cortexcpp/
echo "huggingFaceToken: ${{ secrets.HUGGINGFACE_TOKEN_READ }}" > ~/.config/cortexcpp/.cortexrc
echo "gitHubToken: ${{ secrets.PAT_SERVICE_ACCOUNT }}" >> ~/.config/cortexcpp/.cortexrc
# ./build/cortex
cat ~/.config/cortexcpp/.cortexrc

- name: Run unit tests
run: |
cd engine
Expand All @@ -152,13 +163,25 @@ jobs:
GITHUB_TOKEN: ${{ secrets.PAT_SERVICE_ACCOUNT }}

- name: Run setup config
if: runner.os != 'Linux'
run: |
cd engine
echo "apiServerPort: 3928" > ~/.cortexrc
echo "huggingFaceToken: ${{ secrets.HUGGINGFACE_TOKEN_READ }}" >> ~/.cortexrc
echo "gitHubToken: ${{ secrets.PAT_SERVICE_ACCOUNT }}" >> ~/.cortexrc
# ./build/cortex
cat ~/.cortexrc

- name: Run setup config
if: runner.os == 'Linux'
run: |
cd engine
mkdir -p ~/.config/cortexcpp/
echo "apiServerPort: 3928" > ~/.config/cortexcpp/.cortexrc
echo "huggingFaceToken: ${{ secrets.HUGGINGFACE_TOKEN_READ }}" >> ~/.config/cortexcpp/.cortexrc
echo "gitHubToken: ${{ secrets.PAT_SERVICE_ACCOUNT }}" >> ~/.config/cortexcpp/.cortexrc
# ./build/cortex
cat ~/.config/cortexcpp/.cortexrc

- name: Run e2e tests
if: github.event_name != 'schedule' && runner.os != 'Windows' && github.event.pull_request.draft == false
Expand Down Expand Up @@ -226,6 +249,13 @@ jobs:
cd engine
make package

- name: Upload E2E Log
if: failure()
uses: actions/upload-artifact@v4
with:
name: e2e-log-${{ matrix.os }}-${{ matrix.name }}
path: ./engine/e2e-test/logs

- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -414,12 +444,22 @@ jobs:
make build CMAKE_EXTRA_FLAGS="${{ matrix.cmake-flags }}" BUILD_DEPS_CMAKE_EXTRA_FLAGS="${{ matrix.build-deps-cmake-flags }}"

- name: Run setup config
if: runner.os != 'Linux'
run: |
cd engine
echo "gitHubToken: ${{ secrets.GITHUB_TOKEN }}" > ~/.cortexrc
# ./build/cortex
cat ~/.cortexrc

- name: Run setup config
if: runner.os == 'Linux'
run: |
cd engine
mkdir -p ~/.config/cortexcpp/
echo "gitHubToken: ${{ secrets.GITHUB_TOKEN }}" > ~/.config/cortexcpp/.cortexrc
# ./build/cortex
cat ~/.config/cortexcpp/.cortexrc

- name: Run unit tests
run: |
cd engine
Expand All @@ -428,12 +468,23 @@ jobs:
GITHUB_TOKEN: ${{ secrets.PAT_SERVICE_ACCOUNT }}

- name: Run setup config
if: runner.os != 'Linux'
run: |
cd engine
echo "apiServerPort: 3928" > ~/.cortexrc
echo "gitHubToken: ${{ secrets.GITHUB_TOKEN }}" > ~/.cortexrc
# ./build/cortex
cat ~/.cortexrc

- name: Run setup config
if: runner.os == 'Linux'
run: |
cd engine
mkdir -p ~/.config/cortexcpp/
echo "apiServerPort: 3928" > ~/.config/cortexcpp/.cortexrc
echo "gitHubToken: ${{ secrets.GITHUB_TOKEN }}" > ~/.config/cortexcpp/.cortexrc
# ./build/cortex
cat ~/.config/cortexcpp/.cortexrc

- name: Run e2e tests
if: github.event_name != 'schedule' && runner.os != 'Windows' && github.event.pull_request.draft == false
Expand Down
69 changes: 69 additions & 0 deletions .github/workflows/cortex-docs-new-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Deploy Docs on new release

on:
release:
types:
- published
- edited
- released

jobs:
deploy:
name: Deploy to CloudFlare Pages
env:
CLOUDFLARE_PROJECT_NAME: cortex-docs
runs-on: ubuntu-latest
permissions:
contents: write
deployments: write
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
ref: dev
- uses: actions/setup-node@v3
with:
node-version: 18

- name: Install jq
uses: dcarbone/install-jq-action@v2.0.1

- name: Fill env vars
working-directory: docs
continue-on-error: true
run: |
env_example_file=".env.example"
touch .env
while IFS= read -r line || [[ -n "$line" ]]; do
if [[ "$line" == *"="* ]]; then
var_name=$(echo $line | cut -d '=' -f 1)
echo $var_name
var_value="$(jq -r --arg key "$var_name" '.[$key]' <<< "$SECRETS")"
echo "$var_name=$var_value" >> .env
fi
done < "$env_example_file"
env:
SECRETS: '${{ toJson(secrets) }}'

- name: Install dependencies
working-directory: docs
run: yarn install
- name: Build website
working-directory: docs
run: export NODE_ENV=production && yarn build

- name: Copy redirect file
working-directory: docs
continue-on-error: true
run: cp _redirects build/_redirects

- name: Publish to Cloudflare Pages Production
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: ${{ env.CLOUDFLARE_PROJECT_NAME }}
directory: ./docs/build
branch: main
# Optional: Enable this if you want to have GitHub Deployments triggered
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/test-cortexso-model-hub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
run: |
cd engine
./build/cortex --version
sed -i 's/huggingFaceToken: ""/huggingFaceToken: "${{ secrets.HUGGINGFACE_TOKEN_READ }}"/' ~/.cortexrc
sed -i 's/huggingFaceToken: ""/huggingFaceToken: "${{ secrets.HUGGINGFACE_TOKEN_READ }}"/' ~/.config/cortexcpp/.cortexrc

- name: Run e2e tests
run: |
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ build
platform/cortex.exe
platform/package-lock.json
.vscode
.vs
platform/command
platform/src/infrastructure/commanders/test/test_data
**/vcpkg_installed
Expand Down
4 changes: 2 additions & 2 deletions BUILDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ cd vcpkg
```bash
mkdir build
cd build
cmake .. -DBUILD_SHARED_LIBS=OFF -DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows-static
cmake --build . --config Release
cmake .. -DBUILD_SHARED_LIBS=OFF "-DCMAKE_TOOLCHAIN_FILE=..\vcpkg\scripts\buildsystems\vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=x64-windows-static
cmake --build . --config Release -j4
```

4. Verify that Cortex.cpp is installed correctly by getting help information.
Expand Down
Loading
Loading