forked from neurodock/NeuroDock
Extracted the external tool base for python runner
Fixed URL building in APITool.java. Updated libraries for API, Launcher. Started applying NotNull annotation to methods and arguments in Core.java. Started handeling the big init block in Core.java. Added overloaded constructor for Core.java and made Core.ollamaIP a variabled that's definible Updated Tool.addTool return for 400 error.
This commit is contained in:
@@ -14,6 +14,8 @@ import me.zacharias.neuro.dock.wikipedia.WikipediaTool;
|
||||
import org.json.JSONObject;
|
||||
|
||||
import java.io.*;
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.*;
|
||||
|
||||
import static me.zacharias.chat.core.Core.writeLog;
|
||||
@@ -48,9 +50,7 @@ public class Display {
|
||||
{
|
||||
|
||||
core.setOllamaObject/*NoMemory*/(OllamaObject.builder()
|
||||
//.setModel("llama3.2")
|
||||
//.setModel("gemma3:12b")
|
||||
.setModel("qwen3:8b")
|
||||
.setModel("llama3.2")
|
||||
.keep_alive(10)
|
||||
//.stream(false)
|
||||
//.addFileTools(FileHandlerLocation.DATA_FILES)
|
||||
@@ -61,10 +61,11 @@ public class Display {
|
||||
|
||||
core.addTool(new TimeTool(), Core.Source.INTERNAL);
|
||||
// TODO: Well Docker failes when luanched.... Fuck
|
||||
//core.addTool(new PythonRunner(core), Core.Source.INTERNAL);
|
||||
core.addTools(new MALAPITool().getOllamaTools());
|
||||
core.addTools(new GeniusTools().getGeniusTools());
|
||||
core.addTools(new WikipediaTool().getWikipediaToolsInstance());
|
||||
PythonRunner pythonRunner = new PythonRunner(core);
|
||||
core.addTool(pythonRunner, Core.Source.INTERNAL);
|
||||
//core.addTools(new MALAPITool().getOllamaTools());
|
||||
//core.addTools(new GeniusTools().getGeniusTools());
|
||||
//core.addTools(new WikipediaTool().getWikipediaToolsInstance());
|
||||
|
||||
APIApplication.start();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user