From 1334f0e5ba22115fff0cb901a609fab839e2f0dc Mon Sep 17 00:00:00 2001 From: josc146 Date: Tue, 21 Nov 2023 00:20:54 +0800 Subject: [PATCH] chore --- .github/workflows/release.yml | 1 + frontend/src/pages/Settings.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2e596c3..5d7d7e2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -134,6 +134,7 @@ jobs: - run: | git clone https://github.com/josStorer/ai00_rwkv_server --depth=1 cd ai00_rwkv_server + rustup target add aarch64-apple-darwin cargo build --release --target aarch64-apple-darwin mv ./target/aarch64-apple-darwin/release/ai00_server ../backend-rust/webgpu_server cd .. diff --git a/frontend/src/pages/Settings.tsx b/frontend/src/pages/Settings.tsx index db3c982..ed711b4 100644 --- a/frontend/src/pages/Settings.tsx +++ b/frontend/src/pages/Settings.tsx @@ -109,7 +109,7 @@ export const AdvancedGeneralSettings: FC = observer(() => { commonStore.setSettings({ apiChatModelName: 'rwkv' }); - if (commonStore.settings.apiCompletionModelName === 'gpt-3.5-turbo-instruct') + if (commonStore.settings.apiCompletionModelName === 'gpt-3.5-turbo-instruct' || commonStore.settings.apiCompletionModelName === 'text-davinci-003') commonStore.setSettings({ apiCompletionModelName: 'rwkv' });