diff --git a/build.gradle b/build.gradle index 6b4e728..e897eab 100644 --- a/build.gradle +++ b/build.gradle @@ -4,7 +4,7 @@ plugins { } group = 'dev.arctic' -version = '1.2.2' +version = '1.2.3' repositories { mavenCentral() diff --git a/src/main/java/dev/arctic/aicore/AiCore.java b/src/main/java/dev/arctic/aicore/AiCore.java index d2b5c6d..c179833 100644 --- a/src/main/java/dev/arctic/aicore/AiCore.java +++ b/src/main/java/dev/arctic/aicore/AiCore.java @@ -3,13 +3,14 @@ import dev.arctic.aicore.objects.AiCoreService; import dev.arctic.aicore.utils.CommandManager; import dev.arctic.aicore.utils.TabComplete; +import lombok.Getter; import org.bukkit.plugin.java.JavaPlugin; import java.util.*; public final class AiCore extends JavaPlugin { - public static AiCore AICORE_PLUGIN; + @Getter public static AiCore AICORE_PLUGIN; /** * A List of all open services, iterable for updating, viewing, and closing services */ diff --git a/src/main/java/dev/arctic/aicore/objects/AiCoreService.java b/src/main/java/dev/arctic/aicore/objects/AiCoreService.java index b877621..10529f0 100644 --- a/src/main/java/dev/arctic/aicore/objects/AiCoreService.java +++ b/src/main/java/dev/arctic/aicore/objects/AiCoreService.java @@ -41,7 +41,7 @@ public class AiCoreService { */ public AiCoreService(String apiKey, String name) { // Initialize the services with the given API key - this.service = new OpenAiService(apiKey, Duration.ofSeconds(30)); + this.service = new OpenAiService(apiKey, Duration.ofSeconds(86400)); this.chatService = new ChatService(service); this.assistantService = new AssistantService(service);