Aktualizovat src/main/java/it/ohalee/minecraftgpt/OpenAI.java

This commit is contained in:
Radim Lipovčan 2024-03-29 18:57:10 +01:00
parent 217718d8f7
commit acdbc508a0

View File

@ -16,7 +16,7 @@ public class OpenAI {
private static OpenAiService service;
public static CompletableFuture<Void> init(String key) {
return CompletableFuture.runAsync(() -> service = new OpenAiService(key, Duration.ofSeconds(5)));
return CompletableFuture.runAsync(() -> service = new CustomOpenAiService(key, Duration.ofSeconds(5)));
}
public static CompletableFuture<String> getResponse(ConfigurationSection section, List<ChatMessage> chatMessages, String message) {