[feat] force openai option
This commit is contained in:
@@ -407,4 +407,5 @@ export const languageEnglish = {
|
||||
usePromptTemplate: "Use Prompt Template",
|
||||
specialType: "Special Type",
|
||||
noSpecialType: "No Special Type",
|
||||
forceProxyAsOpenAI: "Force Proxy Format as OpenAI",
|
||||
}
|
||||
@@ -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>
|
||||
|
||||
@@ -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':
|
||||
|
||||
@@ -616,6 +616,7 @@ export interface Database{
|
||||
colorScheme:ColorScheme
|
||||
colorSchemeName:string
|
||||
promptTemplate?:Proompt[]
|
||||
forceProxyAsOpenAI?:boolean
|
||||
}
|
||||
|
||||
interface hordeConfig{
|
||||
|
||||
Reference in New Issue
Block a user