[feat] force openai option

This commit is contained in:
kwaroran
2023-08-04 17:46:04 +09:00
parent 3227b33cb1
commit c788399321
4 changed files with 8 additions and 0 deletions

View File

@@ -407,4 +407,5 @@ export const languageEnglish = {
usePromptTemplate: "Use Prompt Template",
specialType: "Special Type",
noSpecialType: "No Special Type",
forceProxyAsOpenAI: "Force Proxy Format as OpenAI",
}

View File

@@ -47,6 +47,9 @@
<div class="flex items-center mt-4">
<Check bind:check={$DataBase.useExperimental} name={language.useExperimental}/>
</div>
<div class="flex items-center mt-4">
<Check bind:check={$DataBase.forceProxyAsOpenAI} name={language.forceProxyAsOpenAI}/>
</div>
<div class="flex items-center mt-4">
<Check bind:check={$DataBase.usePlainFetch} name="Force Plain Fetch"/>
</div>

View File

@@ -95,6 +95,9 @@ export async function requestChatDataMain(arg:requestDataArgument, model:'model'
if(db.proxyRequestModel.startsWith('claude')){
raiModel = 'claude'
}
if(db.forceProxyAsOpenAI){
raiModel = 'reverse_proxy'
}
}
switch(raiModel){
case 'gpt35':

View File

@@ -616,6 +616,7 @@ export interface Database{
colorScheme:ColorScheme
colorSchemeName:string
promptTemplate?:Proompt[]
forceProxyAsOpenAI?:boolean
}
interface hordeConfig{