Ian M
2/21/25, 12:26:11 PM EST
curl -H "Authorization: Bearer YOUR_SECRET_TOKEN" https://ollama.entermediadb.net
says it's running
Cristobal M
2/21/25, 12:33:33 PM EST
<property id="ollama-key" value="YOUR_SECRET_TOKEN">EnterMedia OLLAMA Key</property>
Ian M
2/21/25, 12:34:14 PM EST
since we're shiipping in in GIT to Github publically not sure it matters though
Cristobal M
2/21/25, 12:34:56 PM EST
haha ok, but I'm getting this error:
INFO: monitorchats.html info org.openedit.OpenEditException: HTTP Error:400:Bad Request Body: {"error":"invalid character 'o' after object key:value pair"} at org.entermediadb.net.HttpSharedConnection.parseJson(HttpSharedConnection.java:254) at org.entermediadb.llm.OllamaManager.runPageAsInput(OllamaManager.java:88) at org.entermediadb.llm.OllamaManager.runPageAsInput(OllamaManager.java:1) at org.entermediadb.websocket.chat.ChatModule.respondToChannel(ChatModule.java:740) at org.entermediadb.websocket.chat.ChatModule.monitorChannels(ChatModule.java:675)
INFO: monitorchats.html info org.openedit.OpenEditException: HTTP Error:400:Bad Request Body: {"error":"invalid character 'o' after object key:value pair"} at org.entermediadb.net.HttpSharedConnection.parseJson(HttpSharedConnection.java:254) at org.entermediadb.llm.OllamaManager.runPageAsInput(OllamaManager.java:88) at org.entermediadb.llm.OllamaManager.runPageAsInput(OllamaManager.java:1) at org.entermediadb.websocket.chat.ChatModule.respondToChannel(ChatModule.java:740) at org.entermediadb.websocket.chat.ChatModule.monitorChannels(ChatModule.java:675)
Cristobal M
2/21/25, 12:35:57 PM EST
Yes, but I think in the Templates sites it is also not working ok
Ian M
2/21/25, 12:36:34 PM EST
you could grab the response as a stirng and echo it out
in Ollama Manager
in Ollama Manager
Cristobal M
2/21/25, 12:37:00 PM EST
HttpResponseProxy{HTTP/1.1 400 Bad Request [Server: nginx/1.20.1, Date: Fri, 21 Feb 2025 17:36:11 GMT, Content-Type: application/json; charset=utf-8, Content-Length: 61, Connection: keep-alive] ResponseEntityProxy{[Content-Type: application/json; charset=utf-8,Content-Length: 61,Chunked: false]}}
Cristobal M
2/21/25, 12:37:37 PM EST
{
"model": "llama3.2",
"stream": false,
"messages": [
{
"role": "system",
"content": "You're a powerful chat assistant inside eMedia - a versatile database. You\nact like a bit of a search assistant. When a user asks for info on a topic, you \nshould look for references in the database on that topic rather than answering off the cuff, and then \nsummarize the results.\n\nThe search will return various types of assets, images, PDFs etc.\n\nBe serious but friendly. \n\n\n If your first search doesn't return anything, try searching again a few times with alternative keywords. \n Only do this 3 times then just let the user know we don't have that info.\n\nThe user has access to a variety of top level tables which are records that contain data. This database contains various kinds of data depending on how the system has been configured.\n\nThis user has these tables in particular :\n\n\t\tWith a NAME of \"Activities\" has an id of ID: \"entityactivity\" \t\t\t\t\t\n and \t\tWith a NAME of \"Categories\" has an id of ID: \"searchcategory\" \t\t\t\t\t\n and \t\tWith a NAME of \"Collections\" has an id of ID: \"librarycollection\" \t\t\t\t\t\n and \t\tWith a NAME of \"Content Creator\" has an id of ID: \"contentcreator\" \t\t\t\t\t\n and \t\tWith a NAME of \"Facial Profiles\" has an id of ID: \"faceprofilegroup\" \t\t\t\t\t\n and \t\tWith a NAME of \"Files\" has an id of ID: \"asset\" \t\t\t\t\t\n and \t\tWith a NAME of \"Media Profile\" has an id of ID: \"socialmediaprofile\" \t\t\t\t\t\n and \t\tWith a NAME of \"Objects\" has an id of ID: \"entityobject\" \t\t\t\t\t\n and \t\tWith a NAME of \"Person\" has an id of ID: \"entityperson\" \t\t\t\t\t\n and \t\tWith a NAME of \"Projects\" has an id of ID: \"entityproject\" \t\t\t\t\t\n and \t\tWith a NAME of \"Users\" has an id of ID: \"user\" \t\t\t\t\t\n\nYou can search-tables in response to the users query. You need to identify the ID of the table in question. \n\nEVERYTIME you search tables you MUST respond with a emediasearchformat.\n"
},
{
"role": "user",
"content": "search for images with flowers "
}
]
,
"tools": [
{
"type": "function",
"function": 404 on /finder/mediadb/gpt/functiondefs/search-tables.json
}
],
"function_call": "auto"
}
Ian M
2/21/25, 12:37:56 PM EST
"function": 404 on /finder/mediadb/gpt/functiondefs/search-tables.json