#set($systeminfo = $gpt.loadInputFromTemplate($context, "$cataloghome/gpt/templates/coursecreator.html")) { "model": "$model", "stream": true, "messages": [ { "role": "system", "content": #jesc($systeminfo) }, #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/functions/extract_questions.json") , $gpt.loadInputFromTemplate($context, "/oneliveweb/system/gpt/functions/checkweather.json"), $gpt.loadInputFromTemplate($context, "/oneliveweb/system/gpt/functions/createtree.json") ## $gpt.loadInputFromTemplate($context, "/oneliveweb/system/gpt/functions/scrapewebpage.json"), ## $gpt.loadInputFromTemplate($context, "/oneliveweb/system/gpt/functions/searchdocuments.json") ], "function_call": "auto" }