Refactored to Core 1.10.0
This includes chages to make less things static in the Core, instead using the Options Singelton instead
This commit is contained in:
@@ -5,6 +5,7 @@ import io.github.classgraph.ClassInfo;
|
||||
import io.github.classgraph.ClassInfoList;
|
||||
import io.github.classgraph.ScanResult;
|
||||
import me.neurodock.core.Core;
|
||||
import me.neurodock.core.Options;
|
||||
import me.neurodock.ollama.OllamaFunctionTool;
|
||||
import me.neurodock.ollama.OllamaFunctionTools;
|
||||
import org.json.JSONObject;
|
||||
@@ -30,7 +31,7 @@ public class MALAPITool {
|
||||
public MALAPITool() {
|
||||
super();
|
||||
try {
|
||||
JSONObject obj = new JSONObject(Files.readString(Path.of(Core.DATA_DIR + "/malapi.json")));
|
||||
JSONObject obj = new JSONObject(Files.readString(Path.of(Options.getInstance().getDataDir().getPath(), "malapi.json")));
|
||||
this.Client_ID = obj.getString("client_id");
|
||||
this.Client_Secret = obj.getString("client_secret");
|
||||
} catch (IOException e) {
|
||||
|
||||
Reference in New Issue
Block a user