Initial commit

This commit is contained in:
2025-02-20 18:00:16 +01:00
commit 6935e938a3
24 changed files with 1413 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
package me.zacharias.chat.ollama;
import org.json.JSONObject;
public class OllamaMessage {
OllamaMessageRole role;
String content;
public OllamaMessage(OllamaMessageRole role, String content) {
this.role = role;
this.content = content;
}
@Override
public String toString() {
JSONObject json = new JSONObject();
json.put("role", role);
json.put("content", content);
return json.toString();
}
}