This commit is contained in:
Cametendo
2026-03-04 21:40:35 +01:00
3 changed files with 4 additions and 0 deletions

2
.env Normal file
View File

@@ -0,0 +1,2 @@
API_BASE_URL="ollama.cametendo.org"
MODEL="gpt-oss:20b"

0
.env.example Normal file
View File

View File

@@ -137,6 +137,8 @@ public class Aicompanion2_0 implements ModInitializer {
System.out.println("[" + MOD_ID + "] MOD GELADEN!");
}
// Innerhalb deiner Klasse Aicompanion2_0
private String callOllama(String prompt) throws Exception {
String json = "{\"model\":\"" + jsonEscape(MODEL) + "\",\"messages\":[{\"role\":\"user\",\"content\":\""
+ jsonEscape(prompt) + "\"}],\"stream\":false}";