Whonestly, i have forgoten what this contains, sooo ye :)
Removed Ollama integration swaped it for llama.cpp integration and made backend integration more generic/abstract.. soo ollama will return.. maybe.. probobly some mopdules(GeniusAPI) dosent work due to not being ported yet.... and maybe will never be
This commit is contained in:
@@ -1,12 +1,18 @@
|
||||
package me.neurodock.display;
|
||||
|
||||
import me.neurodock.backend.open.ai.OpenAIModel;
|
||||
import me.neurodock.core.Core;
|
||||
import me.neurodock.core.Options;
|
||||
import me.neurodock.core.Pair;
|
||||
import me.neurodock.core.PrintMessageHandler;
|
||||
import me.neurodock.core.memory.CoreMemory;
|
||||
import me.neurodock.llm.ChatObject;
|
||||
import me.neurodock.llm.Message;
|
||||
import me.neurodock.llm.exceptions.ToolException;
|
||||
import me.neurodock.llm.tools.*;
|
||||
import me.neurodock.ollama.*;
|
||||
import me.neurodock.ollama.utils.SystemMessage;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.json.JSONObject;
|
||||
|
||||
import java.io.*;
|
||||
@@ -21,7 +27,14 @@ import static me.neurodock.core.Core.writeLog;
|
||||
* Somewhat meant to be used as a Debug tool for testing your API.
|
||||
*/
|
||||
public class Display {
|
||||
|
||||
|
||||
/*
|
||||
* Inizilizer
|
||||
*/
|
||||
{
|
||||
Options.getInstance().setDataDir(Path.of("AI-Chat"), false);
|
||||
}
|
||||
|
||||
/**
|
||||
* The Core instance.
|
||||
*/
|
||||
@@ -43,16 +56,17 @@ public class Display {
|
||||
*/
|
||||
public Display()
|
||||
{
|
||||
OpenAIModel model = new OpenAIModel("http://localhost:8080", "MiniCPM5");
|
||||
|
||||
Options.getInstance().setDataDir(Path.of("AI-Chat"), false);
|
||||
|
||||
core.setOllamaObject/*NoMemory*/(OllamaObject.builder()
|
||||
/*core.setOllamaObject/*NoMemory*//*(OllamaObject.builder()
|
||||
.setModel("llama3.1:8b")
|
||||
.keep_alive(10)
|
||||
//.stream(false)
|
||||
.addFileTools(Options.getInstance().getFileHandlerDataLocation())
|
||||
.addMessages(new SystemMessage("You need to emulate feelings and emotions."))
|
||||
.build());
|
||||
.build());*/
|
||||
|
||||
core.setModel(model);
|
||||
|
||||
core.enablePlugins(Options.getInstance().getPluginDirectory());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user