Temporarily change free API endpoint (#55)

This commit is contained in:
Ayaka 2023-03-11 17:31:46 +09:30 committed by GitHub
parent ac7ea965ec
commit fbf5660b40
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 Ayaka
</a> </a>
: 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
</div> </div>
<div className='flex gap-2 items-center justify-center'> <div className='flex gap-2 items-center justify-center'>
<div className='min-w-fit text-gray-900 dark:text-gray-300 text-sm'> <div className='min-w-fit text-gray-900 dark:text-gray-300 text-sm'>
@ -89,7 +89,7 @@ const ApiMenu = ({
type='text' 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' 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} value={_apiFreeEndpoint}
placeholder='https://chatgpt-api.shn.hk/v1/' placeholder='https://chatgpt-api-huuz62kfra-as.a.run.app/v1/'
onChange={(e) => { onChange={(e) => {
_setApiFreeEndpoint(e.target.value); _setApiFreeEndpoint(e.target.value);
}} }}

View file

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