mirror of
https://github.com/NovaOSS/nova-betterchat.git
synced 2024-11-25 19:13:59 +01:00
update api menu
This commit is contained in:
parent
1069f62fc6
commit
e287e443c9
|
@ -10,5 +10,6 @@
|
|||
"howTo": "Get your personal API key <0>here</0>",
|
||||
"inputLabel": "API Key"
|
||||
},
|
||||
"customEndpoint": "Use custom API endpoint"
|
||||
"customEndpoint": "Use custom API endpoint",
|
||||
"shareGPT": "Checkout <0>ShareGPT</0>, a API key sharing tool that powers https://sharegpt.churchless.tech/share/v1/chat"
|
||||
}
|
||||
|
|
|
@ -10,5 +10,6 @@
|
|||
"howTo": "在<0>这里</0>获取您的个人 API 密钥",
|
||||
"inputLabel": "API 密钥"
|
||||
},
|
||||
"customEndpoint": "使用自定义 API 端点"
|
||||
"customEndpoint": "使用自定义 API 端点",
|
||||
"shareGPT": "看看 <0>ShareGPT</0>,一个 API key 共享工具,驱动 https://sharegpt.churchless.tech/share/v1/chat。"
|
||||
}
|
||||
|
|
|
@ -10,5 +10,6 @@
|
|||
"howTo": "喺<0>呢度</0>獲取你嘅個人 API 金鑰",
|
||||
"inputLabel": "API 金鑰"
|
||||
},
|
||||
"customEndpoint": "使用自訂 API 端點"
|
||||
"customEndpoint": "使用自訂 API 端點",
|
||||
"shareGPT": "睇下 ShareGPT,一個 API key 共享工具,驅動 https://sharegpt.churchless.tech/share/v1/chat。"
|
||||
}
|
||||
|
|
|
@ -146,6 +146,19 @@ const ApiMenu = ({
|
|||
]}
|
||||
/>
|
||||
</div>
|
||||
<div className='mt-4 p-1 border border-gray-500 rounded-md text-sm font-medium text-gray-900 dark:text-gray-300 text-center'>
|
||||
<Trans
|
||||
i18nKey='shareGPT'
|
||||
ns='api'
|
||||
components={[
|
||||
<a
|
||||
href='https://github.com/acheong08/ShareGPT'
|
||||
className='link'
|
||||
target='_blank'
|
||||
/>,
|
||||
]}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</PopupModal>
|
||||
);
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
export const defaultAPIEndpoint =
|
||||
'https://sharegpt.churchless.tech/share/v1/chat';
|
||||
export const defaultAPIEndpoint = 'https://chatgpt-api.shn.hk/v1/';
|
||||
export const officialAPIEndpoint = 'https://api.openai.com/v1/chat/completions';
|
||||
|
||||
export const availableEndpoints = [
|
||||
'https://sharegpt.churchless.tech/share/v1/chat',
|
||||
'https://chatgpt-api.shn.hk/v1/',
|
||||
'https://sharegpt.churchless.tech/share/v1/chat',
|
||||
officialAPIEndpoint,
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue