[feat] add kayra

This commit is contained in:
kwaroran
2023-07-29 08:07:01 +09:00
parent 7b768d3e73
commit a370b9c033
3 changed files with 9 additions and 9 deletions

View File

@@ -191,7 +191,7 @@
{/each}
</SelectInput>
{/if}
{#if $DataBase.aiModel === "novelai" || $DataBase.subModel === "novelai"}
{#if $DataBase.aiModel === "novelai" || $DataBase.subModel === "novelai" || $DataBase.aiModel === 'novelai_kayra' || $DataBase.subModel === 'novelai_kayra'}
<span class="text-neutral-200">NovelAI Bearer Token</span>
<TextInput marginBottom={true} bind:value={$DataBase.novelai.token}/>

View File

@@ -42,6 +42,8 @@
return "Plugin"
case "novelai":
return "NovelAI"
case "novelai_kayra":
return "NovelAI_kayra"
case "novellist":
return "NovelList SuperTrin"
case "novellist damsel":
@@ -115,7 +117,10 @@
<button class="p-2 hover:text-green-500" on:click={() => {changeModel('novellist')}}>SuperTrin</button>
<button class="p-2 hover:text-green-500" on:click={() => {changeModel('novellist_damsel')}}>Damsel</button>
</Arcodion>
<button class="hover:bg-selected px-6 py-2 text-lg" on:click={() => {changeModel('novelai')}}>NovelAI Clio</button>
<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_kayra')}}>NovelAI Kayra</button>
</Arcodion>
{#if isTauri ||isNodeServer}
<button class="hover:bg-selected px-6 py-2 text-lg" on:click={() => {changeModel('deepai')}}>DeepAI</button>
{/if}

View File

@@ -315,13 +315,8 @@ export async function requestChatDataMain(arg:requestDataArgument, model:'model'
break
}
case 'novelai':{
if(!isTauri){
return{
type: 'fail',
result: "NovelAI doesn't work in web version."
}
}
case 'novelai':
case 'novelai_kayra':{
const proompt = stringlizeChat(formated, currentChar?.name ?? '')
const params = {
"input": proompt,