From 5f467b53281c4dc129ef83bf7f120668ddea6ffa Mon Sep 17 00:00:00 2001 From: YuCheng Hu Date: Wed, 22 Mar 2023 13:17:00 -0400 Subject: [PATCH] USVT-138 Change token for GPT --- .../visatrack/api/service/impl/ChatGPTService.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/northtecom/visatrack/api/service/impl/ChatGPTService.java b/src/main/java/com/northtecom/visatrack/api/service/impl/ChatGPTService.java index 8058e46..6b09304 100644 --- a/src/main/java/com/northtecom/visatrack/api/service/impl/ChatGPTService.java +++ b/src/main/java/com/northtecom/visatrack/api/service/impl/ChatGPTService.java @@ -21,12 +21,9 @@ import java.time.Instant; import java.util.HashMap; import java.util.concurrent.*; + /** - * Created with IntelliJ IDEA. - * - * @author XieYang, YuCheng - * @Date: 2022/10/14/16:17 - * @Description: + * ChatGPTService to process ChatGPT related */ @Service @Slf4j @@ -107,7 +104,7 @@ public class ChatGPTService { */ private String getChatGPTContent(String content) { log.debug(">>>>>>>> ChatGPT Content Call"); - OpenAiService service = new OpenAiService("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", 30); + OpenAiService service = new OpenAiService("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", 30); CompletionRequest completionRequest = new CompletionRequestBuilder().setModel("text-davinci-003") .setPrompt(content) .setMaxTokens(500)