mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-09-12 12:12:14 +08:00
feat: custom bot for poe.com (#189)
This commit is contained in:
+15
-1
@@ -7,6 +7,7 @@ import {
|
||||
isUsingApiKey,
|
||||
isUsingAzureOpenAi,
|
||||
isUsingCustomModel,
|
||||
isUsingCustomNameOnlyModel,
|
||||
isUsingGithubThirdPartyApi,
|
||||
isUsingMultiModeModel,
|
||||
ModelMode,
|
||||
@@ -90,7 +91,8 @@ function GeneralPart({ config, updateConfig }) {
|
||||
isUsingApiKey(config) ||
|
||||
isUsingMultiModeModel(config) ||
|
||||
isUsingCustomModel(config) ||
|
||||
isUsingAzureOpenAi(config)
|
||||
isUsingAzureOpenAi(config) ||
|
||||
isUsingCustomNameOnlyModel(config)
|
||||
? 'width: 50%;'
|
||||
: undefined
|
||||
}
|
||||
@@ -170,6 +172,18 @@ function GeneralPart({ config, updateConfig }) {
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
{isUsingCustomNameOnlyModel(config) && (
|
||||
<input
|
||||
style="width: 50%;"
|
||||
type="text"
|
||||
value={config.poeCustomBotName}
|
||||
placeholder={t('Bot Name')}
|
||||
onChange={(e) => {
|
||||
const customName = e.target.value
|
||||
updateConfig({ poeCustomBotName: customName })
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
{isUsingAzureOpenAi(config) && (
|
||||
<input
|
||||
type="password"
|
||||
|
||||
Reference in New Issue
Block a user