From f632e50abf71ba304132c03c1c81bb009f05cc4f Mon Sep 17 00:00:00 2001 From: Joseph Ottinger Date: Mon, 5 Feb 2024 16:00:49 -0500 Subject: [PATCH] Applying IDEA formatting for chatgpt operation --- src/main/kotlin/javabot/operations/ChatGPTOperation.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/kotlin/javabot/operations/ChatGPTOperation.kt b/src/main/kotlin/javabot/operations/ChatGPTOperation.kt index 9caf29e1..59c06b05 100644 --- a/src/main/kotlin/javabot/operations/ChatGPTOperation.kt +++ b/src/main/kotlin/javabot/operations/ChatGPTOperation.kt @@ -4,7 +4,6 @@ import javabot.Javabot import javabot.Message import javabot.dao.AdminDao import javabot.dao.ChatGPTDao -import javabot.operations.throttle.BotRateLimiter import java.util.* import javax.inject.Inject @@ -17,7 +16,7 @@ constructor(bot: Javabot, adminDao: AdminDao, var chatGPTDao: ChatGPTDao) : val responses = mutableListOf() val message = event.value if (message.lowercase(Locale.getDefault()).startsWith("gpt ")) { - val uuid= UUID.randomUUID() + val uuid = UUID.randomUUID() val query = message.substringAfter("gpt ") val prompt = """Someone is asking "$query". Restrict your answer to being applicable to the Java Virtual Machine,