Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ChatGPT-16k & GPT-4-32k on Poe #458

Merged
merged 2 commits into from
Jul 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 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',
'poeAiWebGPT4_32k',
'poeAiWebClaude_2_100k',
'poeAiWebClaude',
'poeAiWebClaude100k',
'poeAiWebCustom',
'poeAiWebChatGpt',
'poeAiWebChatGpt_16k',
'poeAiWebGooglePaLM',
]

Expand All @@ -74,6 +76,7 @@ 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)' },
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)' },
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,6 +168,7 @@ export const defaultConfig = {
'bingFreeSydney',
'poeAiWebSage',
'poeAiWebGPT4',
'poeAiWebGPT4_32k',
'poeAiWebClaude_2_100k',
'poeAiWebClaude100k',
'chatgptApi4_8k',
Expand Down
4 changes: 4 additions & 0 deletions src/services/clients/poe/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ 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-2-100k') {
Expand All @@ -143,6 +145,8 @@ export default class PoeAiClient {
bot = 'a2'
} else if (bot === 'chatgpt') {
bot = 'chinchilla'
} else if (bot === 'chatgpt-16k') {
bot = 'agouti'
} else if (bot === 'Google-PaLM') {
bot = 'acouchy'
}
Expand Down