From fbf5660b40ffb1b83de3a5c9ab9fa1ffd003d7cc Mon Sep 17 00:00:00 2001 From: Ayaka Date: Sat, 11 Mar 2023 17:31:46 +0930 Subject: [PATCH] Temporarily change free API endpoint (#55) --- src/components/ApiMenu/ApiMenu.tsx | 4 ++-- src/store/auth-slice.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/ApiMenu/ApiMenu.tsx b/src/components/ApiMenu/ApiMenu.tsx index 15dc267..49377e3 100644 --- a/src/components/ApiMenu/ApiMenu.tsx +++ b/src/components/ApiMenu/ApiMenu.tsx @@ -79,7 +79,7 @@ const ApiMenu = ({ > Ayaka - : https://chatgpt-api.shn.hk/v1/ or enter your own API endpoint + : https://chatgpt-api-huuz62kfra-as.a.run.app/v1/ or enter your own API endpoint
@@ -89,7 +89,7 @@ const ApiMenu = ({ type='text' className='text-gray-800 dark:text-white p-3 text-sm border-none bg-gray-200 dark:bg-gray-600 rounded-md m-0 w-full mr-0 h-8 focus:outline-none' value={_apiFreeEndpoint} - placeholder='https://chatgpt-api.shn.hk/v1/' + placeholder='https://chatgpt-api-huuz62kfra-as.a.run.app/v1/' onChange={(e) => { _setApiFreeEndpoint(e.target.value); }} diff --git a/src/store/auth-slice.ts b/src/store/auth-slice.ts index e99f841..dc02bd8 100644 --- a/src/store/auth-slice.ts +++ b/src/store/auth-slice.ts @@ -11,7 +11,7 @@ export interface AuthSlice { export const createAuthSlice: StoreSlice = (set, get) => ({ apiFree: true, - apiFreeEndpoint: 'https://chatgpt-api.shn.hk/v1/', + apiFreeEndpoint: 'https://chatgpt-api-huuz62kfra-as.a.run.app/v1/', setApiKey: (apiKey: string) => { set((prev: AuthSlice) => ({ ...prev,