Add cohere models

This commit is contained in:
kwaroran
2024-09-01 19:34:41 +09:00
parent ccda92cc49
commit aea0dd4088
2 changed files with 9 additions and 1 deletions

View File

@@ -126,6 +126,10 @@
<Arcodion name="Cohere"> <Arcodion name="Cohere">
<button class="p-2 hover:text-green-500" on:click={() => {changeModel('cohere-command-r')}}>Command R</button> <button class="p-2 hover:text-green-500" on:click={() => {changeModel('cohere-command-r')}}>Command R</button>
<button class="p-2 hover:text-green-500" on:click={() => {changeModel('cohere-command-r-plus')}}>Command R Plus</button> <button class="p-2 hover:text-green-500" on:click={() => {changeModel('cohere-command-r-plus')}}>Command R Plus</button>
<button class="p-2 hover:text-green-500" on:click={() => {changeModel('cohere-command-r-08-2024')}}>Command R 08-2024</button>
<button class="p-2 hover:text-green-500" on:click={() => {changeModel('cohere-command-r-03-2024')}}>Command R 03-2024</button>
<button class="p-2 hover:text-green-500" on:click={() => {changeModel('cohere-command-r-plus-04-2024')}}>Command R Plus 08-2024</button>
<button class="p-2 hover:text-green-500" on:click={() => {changeModel('cohere-command-r-plus-08-2024')}}>Command R Plus 03-2024</button>
</Arcodion> </Arcodion>
<Arcodion name="NovelAI"> <Arcodion name="NovelAI">
<button class="hover:bg-selected px-6 py-2 text-lg" on:click={() => {changeModel('novelai')}}>NovelAI Clio</button> <button class="hover:bg-selected px-6 py-2 text-lg" on:click={() => {changeModel('novelai')}}>NovelAI Clio</button>

View File

@@ -1537,7 +1537,11 @@ export async function requestChatDataMain(arg:requestDataArgument, model:'model'
} }
} }
case 'cohere-command-r': case 'cohere-command-r':
case 'cohere-command-r-plus':{ case 'cohere-command-r-plus':
case 'cohere-command-r-08-2024':
case 'cohere-command-r-03-2024':
case 'cohere-command-r-plus-04-2024':
case 'cohere-command-r-plus-08-2024':{
const modelName = aiModel.replace('cohere-', '') const modelName = aiModel.replace('cohere-', '')
let lastChatPrompt = '' let lastChatPrompt = ''
let preamble = '' let preamble = ''