From bb19d5e6a8852700a34d79566f9d64a0bab68626 Mon Sep 17 00:00:00 2001 From: ronger Date: Fri, 5 Jul 2024 19:04:17 +0800 Subject: [PATCH] Update OpenAiController.java --- src/main/java/com/rymcu/forest/openai/OpenAiController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/rymcu/forest/openai/OpenAiController.java b/src/main/java/com/rymcu/forest/openai/OpenAiController.java index 19644e5..d12be57 100644 --- a/src/main/java/com/rymcu/forest/openai/OpenAiController.java +++ b/src/main/java/com/rymcu/forest/openai/OpenAiController.java @@ -80,7 +80,7 @@ public class OpenAiController { boolean isAdmin = UserUtils.isAdmin(user.getEmail()); OpenAiService service = new OpenAiService(token, Duration.ofSeconds(180)); ChatCompletionRequest completionRequest = ChatCompletionRequest.builder() - .model(isAdmin ? "gpt-4o" : "gpt-3.5-turbo-16k-0613") + .model("gpt-3.5-turbo-16k-0613") .stream(true) .messages(list) .build();