Aktualizovat src/main/java/it/ohalee/minecraftgpt/OpenAI.java
This commit is contained in:
parent
217718d8f7
commit
acdbc508a0
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user