Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 86cc89c

Browse files
committed
Merge branch 's/feat/spawn-llama-cpp' of github.com:janhq/nitro into s/feat/spawn-llama-cpp
2 parents 7832a5a + b783b22 commit 86cc89c

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

engine/e2e-test/api/engines/test_api_engine.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ def test_engines_get_llamacpp_should_be_successful(self):
2828

2929
# engines install
3030
def test_engines_install_llamacpp_specific_version_and_variant(self):
31-
data = {"version": "b4920", "variant": "linux-avx-x64"}
31+
data = {"version": "b4932", "variant": "linux-avx-x64"}
3232
response = requests.post(
3333
"http://localhost:3928/v1/engines/llama-cpp/install", json=data
3434
)
3535
assert response.status_code == 200
3636

3737
def test_engines_install_llamacpp_specific_version_and_null_variant(self):
38-
data = {"version": "b4920"}
38+
data = {"version": "b4932"}
3939
response = requests.post(
4040
"http://localhost:3928/v1/engines/llama-cpp/install", json=data
4141
)
@@ -62,7 +62,7 @@ async def test_engines_install_uninstall_llamacpp_with_only_version_should_be_fa
6262
await wait_for_websocket_download_success_event(timeout=120)
6363
assert install_response.status_code == 200
6464

65-
data = {"version": "b4920"}
65+
data = {"version": "b4932"}
6666
response = requests.delete(
6767
"http://localhost:3928/v1/engines/llama-cpp/install", json=data
6868
)
@@ -85,7 +85,7 @@ async def test_engines_install_uninstall_llamacpp_with_variant_should_be_success
8585
def test_engines_install_uninstall_llamacpp_with_specific_variant_and_version_should_be_successful(
8686
self,
8787
):
88-
data = {"variant": "linux-avx-x64", "version": "b4920"}
88+
data = {"variant": "linux-avx-x64", "version": "b4932"}
8989
# install first
9090
install_response = requests.post(
9191
"http://localhost:3928/v1/engines/llama-cpp/install", json=data

engine/e2e-test/api/engines/test_api_get_default_engine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def test_api_get_default_engine_successfully(self):
2525
# Data test
2626
engine= "llama-cpp"
2727
name= "linux-avx-x64"
28-
version= "b4920"
28+
version= "b4932"
2929

3030
data = {"version": version, "variant": name}
3131
post_install_url = f"http://localhost:3928/v1/engines/{engine}/install"

engine/e2e-test/api/engines/test_api_get_list_engine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def test_api_get_list_engines_successfully(self):
2525
# Data test
2626
engine= "llama-cpp"
2727
name= "linux-avx-x64"
28-
version= "b4920"
28+
version= "b4932"
2929

3030
post_install_url = f"http://localhost:3928/v1/engines/{engine}/install"
3131
response = requests.delete(

engine/e2e-test/api/engines/test_api_post_default_engine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def test_api_set_default_engine_successfully(self):
2424
# Data test
2525
engine= "llama-cpp"
2626
name= "linux-avx-x64"
27-
version= "b4920"
27+
version= "b4932"
2828

2929
data = {"version": version, "variant": name}
3030
post_install_url = f"http://localhost:3928/v1/engines/{engine}/install"

engine/e2e-test/cli/engines/test_cli_engine_install.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def test_engines_install_llamacpp_should_be_successfully(self):
3333

3434
@pytest.mark.skipif(platform.system() == "Windows", reason="Progress bar log issue on Windows")
3535
def test_engines_install_pre_release_llamacpp(self):
36-
engine_version = "b4920"
36+
engine_version = "b4932"
3737
exit_code, output, error = run(
3838
"Install Engine",
3939
["engines", "install", "llama-cpp", "-v", engine_version],

engine/services/engine_service.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ EngineService::GetEngineVariants(const std::string& engine,
571571
engine_release_menlo.value().assets.end(), std::back_inserter(assets),
572572
[get_os_major](const github_release_utils::GitHubAsset& assets) {
573573
#if defined(__APPLE__) && defined(__MACH__)
574-
if (get_os_major() == 12 &&
574+
if (get_os_major() <= 12 &&
575575
assets.name.find(kMacOs) != std::string::npos) {
576576
return true;
577577
}

0 commit comments

Comments
 (0)