Skip to content

Commit

Permalink
Merge branch 'josStorer:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
okkidwi committed Jul 13, 2023
2 parents b551f92 + 9ec3bbe commit 80adc22
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
13 changes: 9 additions & 4 deletions src/config/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,13 @@ export const githubThirdPartyApiModelKeys = ['waylaidwandererApi']
export const poeWebModelKeys = [
'poeAiWebSage',
'poeAiWebGPT4',
'poeAiWebClaudePlus',
'poeAiWebGPT4_32k',
'poeAiWebClaude_2_100k',
'poeAiWebClaude',
'poeAiWebClaude100k',
'poeAiWebCustom',
'poeAiWebChatGpt',
'poeAiWebChatGpt_16k',
'poeAiWebGooglePaLM',
]

Expand All @@ -74,8 +76,9 @@ export const Models = {
bardWebFree: { value: '', desc: 'Bard (Web)' },
poeAiWebSage: { value: 'sage', desc: 'Poe AI (Web, Sage)' },
poeAiWebGPT4: { value: 'gpt-4', desc: 'Poe AI (Web, GPT-4)' },
poeAiWebClaudePlus: { value: 'claude+', desc: 'Poe AI (Web, Claude+)' },
poeAiWebClaude: { value: 'claude', desc: 'Poe AI (Web, Claude)' },
poeAiWebGPT4_32k: { value: 'gpt-4-32k', desc: 'Poe AI (Web, GPT-4-32k)' },
poeAiWebClaude_2_100k: { value: 'claude-2-100k', desc: 'Poe AI (Web, Claude 2 100k)' },
poeAiWebClaude: { value: 'claude-instant', desc: 'Poe AI (Web, Claude instant)' },
poeAiWebClaude100k: { value: 'claude-instant-100k', desc: 'Poe AI (Web, Claude instant 100k)' },
poeAiWebGooglePaLM: { value: 'Google-PaLM', desc: 'Poe AI (Web, Google-PaLM)' },
chatgptApi4_8k: { value: 'gpt-4', desc: 'ChatGPT (GPT-4-8k)' },
Expand All @@ -86,6 +89,7 @@ export const Models = {
waylaidwandererApi: { value: '', desc: 'Waylaidwanderer API (Github)' },
poeAiWebCustom: { value: '', desc: 'Poe AI (Web, Custom)' },
poeAiWebChatGpt: { value: 'chatgpt', desc: 'Poe AI (Web, ChatGPT)' },
poeAiWebChatGpt_16k: { value: 'chatgpt-16k', desc: 'Poe AI (Web, ChatGPT-16k)' },
}

for (const modelName in Models) {
Expand Down Expand Up @@ -164,7 +168,8 @@ export const defaultConfig = {
'bingFreeSydney',
'poeAiWebSage',
'poeAiWebGPT4',
'poeAiWebClaudePlus',
'poeAiWebGPT4_32k',
'poeAiWebClaude_2_100k',
'poeAiWebClaude100k',
'chatgptApi4_8k',
'customModel',
Expand Down
8 changes: 6 additions & 2 deletions src/services/clients/poe/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,18 @@ export default class PoeAiClient {
bot = 'capybara'
} else if (bot === 'gpt-4') {
bot = 'beaver'
} else if (bot === 'gpt-4-32k') {
bot = 'vizcacha'
} else if (bot === 'claude-instant-100k') {
bot = 'a2_100k'
} else if (bot === 'claude+') {
} else if (bot === 'claude-2-100k') {
bot = 'a2_2'
} else if (bot === 'claude') {
} else if (bot === 'claude-instant') {
bot = 'a2'
} else if (bot === 'chatgpt') {
bot = 'chinchilla'
} else if (bot === 'chatgpt-16k') {
bot = 'agouti'
} else if (bot === 'Google-PaLM') {
bot = 'acouchy'
}
Expand Down

0 comments on commit 80adc22

Please sign in to comment.