mirror of
https://github.com/NovaOSS/nova-betterchat.git
synced 2024-11-25 19:13:59 +01:00
Temporarily change free API endpoint (#55)
This commit is contained in:
parent
ac7ea965ec
commit
fbf5660b40
|
@ -79,7 +79,7 @@ const ApiMenu = ({
|
|||
>
|
||||
Ayaka
|
||||
</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 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.shn.hk/v1/'
|
||||
placeholder='https://chatgpt-api-huuz62kfra-as.a.run.app/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.shn.hk/v1/',
|
||||
apiFreeEndpoint: 'https://chatgpt-api-huuz62kfra-as.a.run.app/v1/',
|
||||
setApiKey: (apiKey: string) => {
|
||||
set((prev: AuthSlice) => ({
|
||||
...prev,
|
||||
|
|
Loading…
Reference in a new issue