[feat] add kayra
This commit is contained in:
@@ -191,7 +191,7 @@
|
|||||||
{/each}
|
{/each}
|
||||||
</SelectInput>
|
</SelectInput>
|
||||||
{/if}
|
{/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>
|
<span class="text-neutral-200">NovelAI Bearer Token</span>
|
||||||
<TextInput marginBottom={true} bind:value={$DataBase.novelai.token}/>
|
<TextInput marginBottom={true} bind:value={$DataBase.novelai.token}/>
|
||||||
|
|
||||||
|
|||||||
@@ -42,6 +42,8 @@
|
|||||||
return "Plugin"
|
return "Plugin"
|
||||||
case "novelai":
|
case "novelai":
|
||||||
return "NovelAI"
|
return "NovelAI"
|
||||||
|
case "novelai_kayra":
|
||||||
|
return "NovelAI_kayra"
|
||||||
case "novellist":
|
case "novellist":
|
||||||
return "NovelList SuperTrin"
|
return "NovelList SuperTrin"
|
||||||
case "novellist damsel":
|
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')}}>SuperTrin</button>
|
||||||
<button class="p-2 hover:text-green-500" on:click={() => {changeModel('novellist_damsel')}}>Damsel</button>
|
<button class="p-2 hover:text-green-500" on:click={() => {changeModel('novellist_damsel')}}>Damsel</button>
|
||||||
</Arcodion>
|
</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}
|
{#if isTauri ||isNodeServer}
|
||||||
<button class="hover:bg-selected px-6 py-2 text-lg" on:click={() => {changeModel('deepai')}}>DeepAI</button>
|
<button class="hover:bg-selected px-6 py-2 text-lg" on:click={() => {changeModel('deepai')}}>DeepAI</button>
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
@@ -315,13 +315,8 @@ export async function requestChatDataMain(arg:requestDataArgument, model:'model'
|
|||||||
|
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
case 'novelai':{
|
case 'novelai':
|
||||||
if(!isTauri){
|
case 'novelai_kayra':{
|
||||||
return{
|
|
||||||
type: 'fail',
|
|
||||||
result: "NovelAI doesn't work in web version."
|
|
||||||
}
|
|
||||||
}
|
|
||||||
const proompt = stringlizeChat(formated, currentChar?.name ?? '')
|
const proompt = stringlizeChat(formated, currentChar?.name ?? '')
|
||||||
const params = {
|
const params = {
|
||||||
"input": proompt,
|
"input": proompt,
|
||||||
|
|||||||
Reference in New Issue
Block a user