30 lines
792 B
Java
30 lines
792 B
Java
package ai.nomyo;
|
|
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
/**
|
|
* Entry point — loads RSA keys and validates key length.
|
|
*/
|
|
public class Main {
|
|
|
|
static void main() {
|
|
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?")
|
|
);
|
|
|
|
Map<String, Object> kwargs = Map.of(
|
|
"security_tier", "standard",
|
|
"temperature", 0.7
|
|
);
|
|
|
|
var response = secureChatCompletion.create(
|
|
"Qwen/Qwen3-0.6B",
|
|
messages,
|
|
kwargs);
|
|
|
|
System.out.println(response.toString());
|
|
}
|
|
|
|
}
|