Skip to content

Commit

Permalink
1.93.7 (#356)
Browse files Browse the repository at this point in the history
# PR Checklist
- [ ] Did you check if it works normally in all models? *ignore this
when it dosen't uses models*
- [ ] Did you check if it works normally in all of web, local and node
hosted versions? if it dosen't, did you blocked it in those versions?
- [ ] Did you added a type def?

# Description
  • Loading branch information
kwaroran authored Apr 9, 2024
2 parents 575a68f + cfd083e commit aca6d9f
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"package": {
"productName": "RisuAI",
"version": "1.93.6"
"version": "1.93.7"
},
"tauri": {
"allowlist": {
Expand Down
10 changes: 6 additions & 4 deletions src/lib/UI/ModelList.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,7 @@
<Arcodion name="OpenAI GPT">
<button class="p-2 hover:text-green-500" on:click={() => {changeModel('gpt35')}}>GPT-3.5 Turbo</button>
<button class="p-2 hover:text-green-500" on:click={() => {changeModel('instructgpt35')}}>GPT-3.5 Instruct</button>
<button class="p-2 hover:text-green-500" on:click={() => {changeModel('gpt4')}}>GPT-4</button>
<button class="p-2 hover:text-green-500" on:click={() => {changeModel('gpt4_32k')}}>GPT-4 32K</button>
<button class="p-2 hover:text-green-500" on:click={() => {changeModel('gpt4_0125')}}>GPT-4 Turbo 0125</button>
<button class="p-2 hover:text-green-500" on:click={() => {changeModel('gptvi4_1106')}}>GPT-4 Turbo 1106 Vision</button>
<button class="p-2 hover:text-green-500" on:click={() => {changeModel('gpt4_turbo')}}>GPT-4 Turbo</button>
{#if showUnrec}
<button class="p-2 hover:text-green-500" on:click={() => {changeModel('gpt35_16k')}}>GPT-3.5 Turbo 16K</button>
<button class="p-2 hover:text-green-500" on:click={() => {changeModel('gpt4_0314')}}>GPT-4 0314</button>
Expand All @@ -49,6 +46,11 @@
<button class="p-2 hover:text-green-500" on:click={() => {changeModel('gpt35_0613')}}>GPT-3.5 Turbo 0613</button>
<button class="p-2 hover:text-green-500" on:click={() => {changeModel('gpt35_16k_0613')}}>GPT-3.5 Turbo 16K 0613</button>
<button class="p-2 hover:text-green-500" on:click={() => {changeModel('gpt35_0301')}}>GPT-3.5 Turbo 0301</button>
<button class="p-2 hover:text-green-500" on:click={() => {changeModel('gpt4_0125')}}>GPT-4 Turbo 0125</button>
<button class="p-2 hover:text-green-500" on:click={() => {changeModel('gptvi4_1106')}}>GPT-4 Turbo 1106 Vision</button>
<button class="p-2 hover:text-green-500" on:click={() => {changeModel('gpt4_turbo_20240409')}}>GPT-4 Turbo 20240409</button>
<button class="p-2 hover:text-green-500" on:click={() => {changeModel('gpt4')}}>GPT-4 (Old)</button>
<button class="p-2 hover:text-green-500" on:click={() => {changeModel('gpt4_32k')}}>GPT-4 32K (Old)</button>
{/if}
</Arcodion>
<Arcodion name="Anthropic Claude">
Expand Down
7 changes: 4 additions & 3 deletions src/ts/process/files/image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,14 @@ export async function getInlayImage(id: string){

export function supportsInlayImage(){
const db = get(DataBase)
return db.aiModel.startsWith('gptv') || db.aiModel === 'gemini-pro-vision' || db.aiModel.startsWith('claude-3') ||
return db.aiModel.startsWith('gptv') || db.aiModel === 'gemini-pro-vision' || db.aiModel.startsWith('claude-3') || db.aiModel.startsWith('gpt4_turbo') ||
(db.aiModel === 'reverse_proxy' && (
db.proxyRequestModel?.startsWith('gptv') || db.proxyRequestModel === 'gemini-pro-vision' || db.proxyRequestModel?.startsWith('claude-3') ||
db.proxyRequestModel?.startsWith('gptv') || db.proxyRequestModel === 'gemini-pro-vision' || db.proxyRequestModel?.startsWith('claude-3') || db.proxyRequestModel.startsWith('gpt4_turbo') ||
db.proxyRequestModel === 'custom' && (
db.customProxyRequestModel?.startsWith('gptv') ||
db.customProxyRequestModel === 'gemini-pro-vision' ||
db.customProxyRequestModel?.startsWith('claude-3')
db.customProxyRequestModel?.startsWith('claude-3') ||
db.customProxyRequestModel.startsWith('gpt-4-turbo')
)
))
}
Expand Down
8 changes: 6 additions & 2 deletions src/ts/process/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ interface OpenAITextContents {
}

interface OpenAIImageContents {
type: 'image'
type: 'image'|'image_url'
image_url: {
url: string
detail: string
Expand Down Expand Up @@ -171,6 +171,8 @@ export async function requestChatDataMain(arg:requestDataArgument, model:'model'
case 'mistral-small-latest':
case 'mistral-medium-latest':
case 'mistral-large-latest':
case 'gpt4_turbo_20240409':
case 'gpt4_turbo':
case 'reverse_proxy':{
let formatedChat:OpenAIChatExtra[] = []
for(let i=0;i<formated.length;i++){
Expand All @@ -180,7 +182,7 @@ export async function requestChatDataMain(arg:requestDataArgument, model:'model'
let contents:OpenAIContents[] = []
for(let j=0;j<m.multimodals.length;j++){
contents.push({
"type": "image",
"type": "image_url",
"image_url": {
"url": m.multimodals[j].base64,
"detail": db.gptVisionQuality
Expand Down Expand Up @@ -414,6 +416,8 @@ export async function requestChatDataMain(arg:requestDataArgument, model:'model'
: requestModel === "gpt35_1106" ? 'gpt-3.5-turbo-1106'
: requestModel === 'gpt35_0301' ? 'gpt-3.5-turbo-0301'
: requestModel === 'gpt4_0314' ? 'gpt-4-0314'
: requestModel === 'gpt4_turbo_20240409' ? 'gpt-4-turbo-2024-04-09'
: requestModel === 'gpt4_turbo' ? 'gpt-4-turbo'
: (!requestModel) ? 'gpt-3.5-turbo'
: requestModel,
messages: formatedChat,
Expand Down
2 changes: 1 addition & 1 deletion src/ts/storage/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import type { OobaChatCompletionRequestParams } from '../model/ooba';

export const DataBase = writable({} as any as Database)
export const loadedStore = writable(false)
export let appVer = "1.93.6"
export let appVer = "1.93.7"
export let webAppSubVer = ''

export function setDatabase(data:Database){
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":"1.93.6"}
{"version":"1.93.7"}

0 comments on commit aca6d9f

Please sign in to comment.