mirror of
https://github.com/NovaOSS/nova-betterchat.git
synced 2024-11-25 20:54:00 +01:00
Restore original free API URL (#56)
This commit is contained in:
parent
fbf5660b40
commit
e5c35eb1a3
|
@ -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);
|
||||
}}
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue