#set($systeminfo = $gpt.loadInputFromTemplate($context, "$apphome/ditachat/llminput.html")) { "model": "$model", "stream": true, "messages": [ { "role": "system", "content": #jesc($systeminfo) }#if($recent.size() >0),#end #foreach($message in $recent) #set($entry = $testbench.getData("thought", $message.id)) #if($foreach.count != 1) , #end { #if($entry.messagetype == "function_call") "role": "function", "name" : "$message.function", #elseif($entry.user == "agent") "role": "assistant", #else "role": "user", #end "content": #jesc("$!message.message $!message.functionresponse") } #end ] , "functions":[ $gpt.loadInputFromTemplate($context, "/oneliveweb/system/gpt/functiondefs/viewfilecontent.json") , $gpt.loadInputFromTemplate($context, "/oneliveweb/system/gpt/functiondefs/update_files.json"), ## $gpt.loadInputFromTemplate($context, "/oneliveweb/system/gpt/functiondefs/checkweather.json") $gpt.loadInputFromTemplate($context, "/oneliveweb/system/gpt/functiondefs/scrapewebpage.json") ## $gpt.loadInputFromTemplate($context, "/oneliveweb/system/gpt/functiondefs/searchdocuments.json") ], "function_call": "auto" }