chore: bump cortex with cors fix
This commit is contained in:
parent
fc521ecda9
commit
c597cb6af6
@ -14,7 +14,7 @@ download() {
|
||||
}
|
||||
|
||||
# Read CORTEX_VERSION
|
||||
CORTEX_VERSION=1.0.12
|
||||
CORTEX_VERSION=1.0.13-rc1
|
||||
ENGINE_VERSION=0.1.55
|
||||
CORTEX_RELEASE_URL="https://github.com/menloresearch/cortex.cpp/releases/download"
|
||||
ENGINE_DOWNLOAD_URL="https://github.com/menloresearch/cortex.llamacpp/releases/download/v${ENGINE_VERSION}/cortex.llamacpp-${ENGINE_VERSION}"
|
||||
@ -58,6 +58,7 @@ elif [ "$OS_TYPE" == "Darwin" ]; then
|
||||
rm -rf ./cortex-beta
|
||||
chmod +x "./cortex-server"
|
||||
mv ./cortex-server ./cortex-server-universal-apple-darwin
|
||||
cp ./cortex-server-universal-apple-darwin ./cortex-server-aarch64-apple-darwin
|
||||
|
||||
# Download engines for macOS
|
||||
download "${ENGINE_DOWNLOAD_URL}-mac-arm64.tar.gz" "${SHARED_PATH}/engines/cortex.llamacpp/mac-arm64/v${ENGINE_VERSION}"
|
||||
|
||||
@ -202,6 +202,10 @@ pub fn setup_sidecar(app: &App) -> Result<(), String> {
|
||||
.unwrap()
|
||||
.to_str()
|
||||
.unwrap(),
|
||||
"--cors",
|
||||
"ON",
|
||||
"--allowed_origins",
|
||||
"http://localhost:3000",
|
||||
"config",
|
||||
"--api_keys",
|
||||
app_state.inner().app_token.as_deref().unwrap_or(""),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user