Restore original free API URL (#56)

This commit is contained in:
Ayaka 2023-03-11 19:29:36 +09:30 committed by GitHub
parent fbf5660b40
commit e5c35eb1a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -79,7 +79,7 @@ const ApiMenu = ({
>
Ayaka
</a>
: https://chatgpt-api-huuz62kfra-as.a.run.app/v1/ or enter your own API endpoint
: https://chatgpt-api.shn.hk/v1/ or enter your own API endpoint
</div>
<div className='flex gap-2 items-center justify-center'>
<div className='min-w-fit text-gray-900 dark:text-gray-300 text-sm'>
@ -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-huuz62kfra-as.a.run.app/v1/'
placeholder='https://chatgpt-api.shn.hk/v1/'
onChange={(e) => {
_setApiFreeEndpoint(e.target.value);
}}

View file

@ -11,7 +11,7 @@ export interface AuthSlice {
export const createAuthSlice: StoreSlice<AuthSlice> = (set, get) => ({
apiFree: true,
apiFreeEndpoint: 'https://chatgpt-api-huuz62kfra-as.a.run.app/v1/',
apiFreeEndpoint: 'https://chatgpt-api.shn.hk/v1/',
setApiKey: (apiKey: string) => {
set((prev: AuthSlice) => ({
...prev,