2026-04-21 17:24:11 +02:00
|
|
|
package ai.nomyo;
|
|
|
|
|
|
2026-04-26 18:21:05 +02:00
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Map;
|
2026-04-21 17:24:11 +02:00
|
|
|
|
|
|
|
|
/**
|
2026-04-23 13:36:46 +02:00
|
|
|
* Entry point — loads RSA keys and validates key length.
|
2026-04-21 17:24:11 +02:00
|
|
|
*/
|
|
|
|
|
public class Main {
|
|
|
|
|
|
|
|
|
|
static void main() {
|
2026-04-26 18:21:05 +02:00
|
|
|
SecureChatCompletion secureChatCompletion = new SecureChatCompletion( Constants.DEFAULT_BASE_URL, "NOMYO_AI_E2EE_INFERENCE");
|
|
|
|
|
List<Map<String, Object>> messages = List.of(
|
|
|
|
|
Map.of("role", "user", "content", "Hello! How are you today?")
|
|
|
|
|
);
|
2026-04-23 19:22:01 +02:00
|
|
|
|
2026-04-26 18:21:05 +02:00
|
|
|
Map<String, Object> kwargs = Map.of(
|
|
|
|
|
"security_tier", "standard",
|
|
|
|
|
"temperature", 0.7
|
|
|
|
|
);
|
2026-04-21 17:24:11 +02:00
|
|
|
|
2026-04-26 18:21:05 +02:00
|
|
|
var response = secureChatCompletion.create(
|
|
|
|
|
"Qwen/Qwen3-0.6B",
|
|
|
|
|
messages,
|
|
|
|
|
kwargs);
|
2026-04-21 17:24:11 +02:00
|
|
|
|
2026-04-26 18:21:05 +02:00
|
|
|
System.out.println(response.toString());
|
2026-04-21 17:24:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|