[feat] force openai option
This commit is contained in:
@@ -407,4 +407,5 @@ export const languageEnglish = {
|
|||||||
usePromptTemplate: "Use Prompt Template",
|
usePromptTemplate: "Use Prompt Template",
|
||||||
specialType: "Special Type",
|
specialType: "Special Type",
|
||||||
noSpecialType: "No Special Type",
|
noSpecialType: "No Special Type",
|
||||||
|
forceProxyAsOpenAI: "Force Proxy Format as OpenAI",
|
||||||
}
|
}
|
||||||
@@ -47,6 +47,9 @@
|
|||||||
<div class="flex items-center mt-4">
|
<div class="flex items-center mt-4">
|
||||||
<Check bind:check={$DataBase.useExperimental} name={language.useExperimental}/>
|
<Check bind:check={$DataBase.useExperimental} name={language.useExperimental}/>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="flex items-center mt-4">
|
||||||
|
<Check bind:check={$DataBase.forceProxyAsOpenAI} name={language.forceProxyAsOpenAI}/>
|
||||||
|
</div>
|
||||||
<div class="flex items-center mt-4">
|
<div class="flex items-center mt-4">
|
||||||
<Check bind:check={$DataBase.usePlainFetch} name="Force Plain Fetch"/>
|
<Check bind:check={$DataBase.usePlainFetch} name="Force Plain Fetch"/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -95,6 +95,9 @@ export async function requestChatDataMain(arg:requestDataArgument, model:'model'
|
|||||||
if(db.proxyRequestModel.startsWith('claude')){
|
if(db.proxyRequestModel.startsWith('claude')){
|
||||||
raiModel = 'claude'
|
raiModel = 'claude'
|
||||||
}
|
}
|
||||||
|
if(db.forceProxyAsOpenAI){
|
||||||
|
raiModel = 'reverse_proxy'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
switch(raiModel){
|
switch(raiModel){
|
||||||
case 'gpt35':
|
case 'gpt35':
|
||||||
|
|||||||
@@ -616,6 +616,7 @@ export interface Database{
|
|||||||
colorScheme:ColorScheme
|
colorScheme:ColorScheme
|
||||||
colorSchemeName:string
|
colorSchemeName:string
|
||||||
promptTemplate?:Proompt[]
|
promptTemplate?:Proompt[]
|
||||||
|
forceProxyAsOpenAI?:boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
interface hordeConfig{
|
interface hordeConfig{
|
||||||
|
|||||||
Reference in New Issue
Block a user