Add OAI prediction

This commit is contained in:
kwaroran
2024-11-21 15:44:14 +09:00
parent e895008814
commit ec03903372
4 changed files with 12 additions and 0 deletions

View File

@@ -535,6 +535,13 @@ export async function requestChatDataMain(arg:requestDataArgument, model:'model'
}
}
if(db.OAIPrediction){
body.prediction = {
type: "content",
content: db.OAIPrediction
}
}
if(aiModel === 'openrouter'){
if(db.openrouterFallback){
body.route = "fallback"