mirror of
https://github.com/ritonioz/minecraft-ai-companion-mod-EMVs12-Project.git
synced 2026-03-18 07:10:20 +01:00
Merge branch 'main' of https://github.com/ritonioz/minecraft-ai-companion-mod-EMVs12-Project
This commit is contained in:
2
.env
Normal file
2
.env
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
API_BASE_URL="ollama.cametendo.org"
|
||||||
|
MODEL="gpt-oss:20b"
|
||||||
0
.env.example
Normal file
0
.env.example
Normal file
@@ -137,6 +137,8 @@ public class Aicompanion2_0 implements ModInitializer {
|
|||||||
System.out.println("[" + MOD_ID + "] MOD GELADEN!");
|
System.out.println("[" + MOD_ID + "] MOD GELADEN!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Innerhalb deiner Klasse Aicompanion2_0
|
||||||
|
|
||||||
private String callOllama(String prompt) throws Exception {
|
private String callOllama(String prompt) throws Exception {
|
||||||
String json = "{\"model\":\"" + jsonEscape(MODEL) + "\",\"messages\":[{\"role\":\"user\",\"content\":\""
|
String json = "{\"model\":\"" + jsonEscape(MODEL) + "\",\"messages\":[{\"role\":\"user\",\"content\":\""
|
||||||
+ jsonEscape(prompt) + "\"}],\"stream\":false}";
|
+ jsonEscape(prompt) + "\"}],\"stream\":false}";
|
||||||
|
|||||||
Reference in New Issue
Block a user