Roll back couple of things
This commit is contained in:
@@ -29,7 +29,7 @@
|
|||||||
},
|
},
|
||||||
"productName": "RisuAI",
|
"productName": "RisuAI",
|
||||||
"mainBinaryName": "RisuAI",
|
"mainBinaryName": "RisuAI",
|
||||||
"version": "142.0.0",
|
"version": "142.0.1",
|
||||||
"identifier": "co.aiclient.risu",
|
"identifier": "co.aiclient.risu",
|
||||||
"plugins": {
|
"plugins": {
|
||||||
"updater": {
|
"updater": {
|
||||||
|
|||||||
@@ -220,12 +220,6 @@
|
|||||||
{#if DBState.db.aiModel === 'reverse_proxy' || DBState.db.subModel === 'reverse_proxy'}
|
{#if DBState.db.aiModel === 'reverse_proxy' || DBState.db.subModel === 'reverse_proxy'}
|
||||||
<Check bind:check={DBState.db.reverseProxyOobaMode} name={`${language.reverseProxyOobaMode}`}/>
|
<Check bind:check={DBState.db.reverseProxyOobaMode} name={`${language.reverseProxyOobaMode}`}/>
|
||||||
{/if}
|
{/if}
|
||||||
{#if modelInfo.flags.includes(LLMFlags.poolSupported) && DBState.db.useExperimental}
|
|
||||||
<Check bind:check={DBState.db.risuPool} name={language.APIPool}>
|
|
||||||
<Help key="APIPool" />
|
|
||||||
<Help key="experimental" />
|
|
||||||
</Check>
|
|
||||||
{/if}
|
|
||||||
{#if modelInfo.provider === LLMProvider.NovelAI || subModelInfo.provider === LLMProvider.NovelAI}
|
{#if modelInfo.provider === LLMProvider.NovelAI || subModelInfo.provider === LLMProvider.NovelAI}
|
||||||
<Check bind:check={DBState.db.NAIadventure} name={language.textAdventureNAI}/>
|
<Check bind:check={DBState.db.NAIadventure} name={language.textAdventureNAI}/>
|
||||||
|
|
||||||
|
|||||||
@@ -1573,7 +1573,6 @@ async function requestGoogleCloudVertex(arg:RequestDataArgumentExtended):Promise
|
|||||||
}
|
}
|
||||||
|
|
||||||
let url = ''
|
let url = ''
|
||||||
const pool = arg.modelInfo.flags.includes(LLMFlags.poolSupported) && db.risuPool && (!arg.customURL) && arg.modelInfo.format !== LLMFormat.VertexAIGemini
|
|
||||||
|
|
||||||
if(arg.customURL){
|
if(arg.customURL){
|
||||||
const u = new URL(arg.customURL)
|
const u = new URL(arg.customURL)
|
||||||
@@ -1583,9 +1582,6 @@ async function requestGoogleCloudVertex(arg:RequestDataArgumentExtended):Promise
|
|||||||
else if(arg.modelInfo.format === LLMFormat.VertexAIGemini){
|
else if(arg.modelInfo.format === LLMFormat.VertexAIGemini){
|
||||||
url =`https://${REGION}-aiplatform.googleapis.com/v1/projects/${PROJECT_ID}/locations/us-central1/publishers/google/models/${arg.modelInfo.internalID}:streamGenerateContent`
|
url =`https://${REGION}-aiplatform.googleapis.com/v1/projects/${PROJECT_ID}/locations/us-central1/publishers/google/models/${arg.modelInfo.internalID}:streamGenerateContent`
|
||||||
}
|
}
|
||||||
else if(pool){
|
|
||||||
url = `https://sv.risuai.xyz/rapi/pool?model=${arg.modelInfo.internalID}&key=${db.google.accessToken}&type=google`
|
|
||||||
}
|
|
||||||
else{
|
else{
|
||||||
url = `https://generativelanguage.googleapis.com/v1beta/models/${arg.modelInfo.internalID}:generateContent?key=${db.google.accessToken}`
|
url = `https://generativelanguage.googleapis.com/v1beta/models/${arg.modelInfo.internalID}:generateContent?key=${db.google.accessToken}`
|
||||||
}
|
}
|
||||||
@@ -1594,7 +1590,6 @@ async function requestGoogleCloudVertex(arg:RequestDataArgumentExtended):Promise
|
|||||||
body: body,
|
body: body,
|
||||||
chatId: arg.chatId,
|
chatId: arg.chatId,
|
||||||
abortSignal: arg.abortSignal,
|
abortSignal: arg.abortSignal,
|
||||||
plainFetchForce: pool
|
|
||||||
})
|
})
|
||||||
|
|
||||||
if(!res.ok){
|
if(!res.ok){
|
||||||
|
|||||||
@@ -18,8 +18,8 @@ export async function shareRealmCardData():Promise<{ name: ArrayBuffer; data: Ar
|
|||||||
const char = safeStructuredClone(getCurrentCharacter({snapshot:true})) as character
|
const char = safeStructuredClone(getCurrentCharacter({snapshot:true})) as character
|
||||||
const trimedName = char.name.replace(/[^a-zA-Z0-9]/g, '') || 'character';
|
const trimedName = char.name.replace(/[^a-zA-Z0-9]/g, '') || 'character';
|
||||||
const writer = new VirtualWriter()
|
const writer = new VirtualWriter()
|
||||||
const namebuf = new TextEncoder().encode(trimedName + '.charx')
|
const namebuf = new TextEncoder().encode(trimedName + '.png')
|
||||||
await exportCharacterCard(char, 'charx', {writer: writer, spec: 'v3'})
|
await exportCharacterCard(char, 'png', {writer: writer, spec: 'v3'})
|
||||||
alertStore.set({
|
alertStore.set({
|
||||||
type: 'none',
|
type: 'none',
|
||||||
msg: ''
|
msg: ''
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import { defaultColorScheme, type ColorScheme } from '../gui/colorscheme';
|
|||||||
import type { PromptItem, PromptSettings } from '../process/prompt';
|
import type { PromptItem, PromptSettings } from '../process/prompt';
|
||||||
import type { OobaChatCompletionRequestParams } from '../model/ooba';
|
import type { OobaChatCompletionRequestParams } from '../model/ooba';
|
||||||
|
|
||||||
export let appVer = "142.0.0"
|
export let appVer = "142.0.1"
|
||||||
export let webAppSubVer = ''
|
export let webAppSubVer = ''
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"version":"142.0.0"}
|
{"version":"142.0.1"}
|
||||||
Reference in New Issue
Block a user