Remove thoughts property from OpenAIChatExtra interface and clean up related request processing
This commit is contained in:
@@ -259,6 +259,7 @@ export interface OpenAIChatExtra {
|
|||||||
removable?:boolean
|
removable?:boolean
|
||||||
attr?:string[]
|
attr?:string[]
|
||||||
multimodals?:MultiModal[]
|
multimodals?:MultiModal[]
|
||||||
|
thoughts?:string[]
|
||||||
}
|
}
|
||||||
|
|
||||||
function reformater(formated:OpenAIChat[],modelInfo:LLMModel){
|
function reformater(formated:OpenAIChat[],modelInfo:LLMModel){
|
||||||
@@ -451,6 +452,7 @@ async function requestOpenAI(arg:RequestDataArgumentExtended):Promise<requestDat
|
|||||||
delete formatedChat[i].removable
|
delete formatedChat[i].removable
|
||||||
delete formatedChat[i].attr
|
delete formatedChat[i].attr
|
||||||
delete formatedChat[i].multimodals
|
delete formatedChat[i].multimodals
|
||||||
|
delete formatedChat[i].thoughts
|
||||||
}
|
}
|
||||||
if(aiModel === 'reverse_proxy' && db.reverseProxyOobaMode && formatedChat[i].role === 'system'){
|
if(aiModel === 'reverse_proxy' && db.reverseProxyOobaMode && formatedChat[i].role === 'system'){
|
||||||
const cont = formatedChat[i].content
|
const cont = formatedChat[i].content
|
||||||
|
|||||||
Reference in New Issue
Block a user