mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-08-14 12:10:31 +08:00
feat: custom bot for poe.com (#189)
This commit is contained in:
@@ -26,6 +26,7 @@ export const Models = {
|
||||
customModel: { value: '', desc: 'Custom Model' },
|
||||
azureOpenAi: { value: '', desc: 'ChatGPT (Azure)' },
|
||||
waylaidwandererApi: { value: '', desc: 'Waylaidwanderer API (Github)' },
|
||||
poeAiWebCustom: { value: '', desc: 'Poe AI (Web, Custom)' },
|
||||
poeAiWebChatGpt: { value: 'chatgpt', desc: 'Poe AI (Web, ChatGPT)' },
|
||||
poeAiWebDragonfly: { value: 'dragonfly', desc: 'Poe AI (Web, Dragonfly)' },
|
||||
}
|
||||
@@ -42,6 +43,7 @@ export const poeWebModelKeys = [
|
||||
'poeAiWebGPT4',
|
||||
'poeAiWebClaudePlus',
|
||||
'poeAiWebClaude',
|
||||
'poeAiWebCustom',
|
||||
'poeAiWebChatGpt',
|
||||
'poeAiWebDragonfly',
|
||||
]
|
||||
@@ -90,6 +92,8 @@ export const defaultConfig = {
|
||||
azureEndpoint: '',
|
||||
azureDeploymentName: '',
|
||||
|
||||
poeCustomBotName: '',
|
||||
|
||||
/** @type {keyof ModelMode}*/
|
||||
modelMode: 'balanced',
|
||||
|
||||
@@ -182,6 +186,10 @@ export function isUsingCustomModel(configOrSession) {
|
||||
return customApiModelKeys.includes(configOrSession.modelName)
|
||||
}
|
||||
|
||||
export function isUsingCustomNameOnlyModel(configOrSession) {
|
||||
return configOrSession.modelName === 'poeAiWebCustom'
|
||||
}
|
||||
|
||||
export function isUsingAzureOpenAi(configOrSession) {
|
||||
return azureOpenAiApiModelKeys.includes(configOrSession.modelName)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user