Skip to content

Commit 1d10ea8

Browse files
authored
feat: add Poe Llama-2-70b, Llama-2-13b, Llama-2-7b (#482)
1 parent 819eb16 commit 1d10ea8

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

src/config/index.mjs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const customApiModelKeys = ['customModel']
4545
export const azureOpenAiApiModelKeys = ['azureOpenAi']
4646
export const githubThirdPartyApiModelKeys = ['waylaidwandererApi']
4747
export const poeWebModelKeys = [
48-
'poeAiWebSage',
48+
'poeAiWebSage', //poe.com/Assistant
4949
'poeAiWebGPT4',
5050
'poeAiWebGPT4_32k',
5151
'poeAiWebClaudePlus',
@@ -55,6 +55,9 @@ export const poeWebModelKeys = [
5555
'poeAiWebChatGpt',
5656
'poeAiWebChatGpt_16k',
5757
'poeAiWebGooglePaLM',
58+
'poeAiWeb_Llama_2_7b',
59+
'poeAiWeb_Llama_2_13b',
60+
'poeAiWeb_Llama_2_70b',
5861
]
5962

6063
/**
@@ -88,6 +91,9 @@ export const Models = {
8891
poeAiWebClaude: { value: 'claude-instant', desc: 'Poe AI (Web, Claude instant)' },
8992
poeAiWebClaude100k: { value: 'claude-instant-100k', desc: 'Poe AI (Web, Claude instant 100k)' },
9093
poeAiWebGooglePaLM: { value: 'Google-PaLM', desc: 'Poe AI (Web, Google-PaLM)' },
94+
poeAiWeb_Llama_2_7b: { value: 'Llama-2-7b', desc: 'Poe AI (Web, Llama-2-7b)' },
95+
poeAiWeb_Llama_2_13b: { value: 'Llama-2-13b', desc: 'Poe AI (Web, Llama-2-13b)' },
96+
poeAiWeb_Llama_2_70b: { value: 'Llama-2-70b', desc: 'Poe AI (Web, Llama-2-70b)' },
9197
chatgptApi4_8k: { value: 'gpt-4', desc: 'ChatGPT (GPT-4-8k)' },
9298
chatgptApi4_8k_0613: { value: 'gpt-4', desc: 'ChatGPT (GPT-4-8k 0613)' },
9399
chatgptApi4_32k: { value: 'gpt-4-32k', desc: 'ChatGPT (GPT-4-32k)' },
@@ -175,7 +181,7 @@ export const defaultConfig = {
175181
'chatgptApi35_16k',
176182
'bingFree4',
177183
'bingFreeSydney',
178-
'poeAiWebSage',
184+
'poeAiWebSage', //poe.com/Assistant
179185
'poeAiWebGPT4',
180186
'poeAiWebGPT4_32k',
181187
'poeAiWebClaudePlus',

src/services/clients/poe/index.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,12 @@ export default class PoeAiClient {
149149
bot = 'agouti'
150150
} else if (bot === 'Google-PaLM') {
151151
bot = 'acouchy'
152+
} else if (bot === 'Llama-2-7b') {
153+
bot = 'llama_2_7b_chat'
154+
} else if (bot === 'Llama-2-13b') {
155+
bot = 'llama_2_13b_chat'
156+
} else if (bot === 'Llama-2-70b') {
157+
bot = 'llama_2_70b_chat'
152158
}
153159

154160
this.bot = bot

0 commit comments

Comments
 (0)