Fix chat content trimming in sendChat function
This commit is contained in:
@@ -708,7 +708,7 @@ export async function sendChat(chatProcessIndex = -1,arg:{chatAdditonalTokens?:n
|
|||||||
|
|
||||||
function pushPrompts(cha:OpenAIChat[]){
|
function pushPrompts(cha:OpenAIChat[]){
|
||||||
for(const chat of cha){
|
for(const chat of cha){
|
||||||
if(!chat.content){
|
if(!chat.content.trim()){
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if(!(db.aiModel.startsWith('gpt') || db.aiModel.startsWith('claude') || db.aiModel === 'openrouter' || db.aiModel === 'reverse_proxy')){
|
if(!(db.aiModel.startsWith('gpt') || db.aiModel.startsWith('claude') || db.aiModel === 'openrouter' || db.aiModel === 'reverse_proxy')){
|
||||||
|
|||||||
Reference in New Issue
Block a user