Ian M
2/21/25, 12:39:12 PM EST
"functions":[
##$gpt.loadInputFromTemplate($context, "/$mediaarchive.getMediaDbId()/gpt/functiondefs/checkweather.json"),
#foreach($module in $chatprofile.getEntities())
$context.putPageValue("module",$module)
$gpt.loadInputFromTemplate($context, "/$mediaarchive.getMediaDbId()/gpt/functiondefs/search-moduletemplate.json"),
#end
$gpt.loadInputFromTemplate($context, "/$mediaarchive.getMediaDbId()/gpt/functiondefs/emediasearchformat.json")
],
See this - he changed it to emediasearchformat
See this - he changed it to emediasearchformat
Ian M
2/21/25, 12:39:31 PM EST
but didn't update it in the ollaman API format also
no big deal just change it to match
no big deal just change it to match
Ian M
2/21/25, 12:40:14 PM EST
The inputs are similar but you can't use one input for both, they are different enough apis
Cristobal M
2/21/25, 1:15:07 PM EST
ok, feel like they haven't complete all the formatting, at least is not throwing an ugly error now, I gonna wait for shakil to see if he made some more progress formatting.
Cristobal M
2/21/25, 1:50:45 PM EST
Regarding the other AI, the one who tags assets.
I got it enabled but getting this error:
I got it enabled but getting this error:
Cristobal M
2/21/25, 1:51:05 PM EST
Caused by: org.apache.velocity.exception.MacroOverflowException: Max calling depth of 20 was exceeded in macro 'showcats' with Call Stack:showcats->showcats->showcats->showcats->showcats->showcats->showcats->showcats->showcats->showcats->showcats->showcats->showcats->showcats->showcats->showcats->showcats->showcats->showcats->showcats at /WEB-INF/base/finder/mediadb/gpt/systemmessage/analyzeasset.html?filter=translation&locale=en_US[line 2, column 1]
Cristobal M
2/21/25, 1:51:23 PM EST
Do yo think it is only becaue I have more than 20 Categories in the Root?
Ian M
2/21/25, 2:30:10 PM EST
Just remove that from the prompt, we don't need it in EnterMedia
Look for the #macro showcats
Look for the #macro showcats
Cristobal M
2/21/25, 4:09:28 PM EST
fixed couple of things in the scipt and let it ran some time, is not tagging anything, looks like always depending in having a ""tool_calls" in the message response from ollama, which I can't find anywhere in the code, is this and old concept or something?
Ian M
2/21/25, 8:10:34 PM EST
The code you are looking for is OllamaResponse.getArguments() - it looks for tool_calls
Ian M
2/22/25, 8:12:58 AM EST
Do you want to pair up and review? I can give you a hand to understand it
Christopher B
2/22/25, 12:43:57 PM EST
He was trying to setup metadata scanning and chat at the same time on the template sites. I can be available to document how its done anytime