Update OpenAiController.java
This commit is contained in:
parent
57e19c9920
commit
bb19d5e6a8
@ -80,7 +80,7 @@ public class OpenAiController {
|
|||||||
boolean isAdmin = UserUtils.isAdmin(user.getEmail());
|
boolean isAdmin = UserUtils.isAdmin(user.getEmail());
|
||||||
OpenAiService service = new OpenAiService(token, Duration.ofSeconds(180));
|
OpenAiService service = new OpenAiService(token, Duration.ofSeconds(180));
|
||||||
ChatCompletionRequest completionRequest = ChatCompletionRequest.builder()
|
ChatCompletionRequest completionRequest = ChatCompletionRequest.builder()
|
||||||
.model(isAdmin ? "gpt-4o" : "gpt-3.5-turbo-16k-0613")
|
.model("gpt-3.5-turbo-16k-0613")
|
||||||
.stream(true)
|
.stream(true)
|
||||||
.messages(list)
|
.messages(list)
|
||||||
.build();
|
.build();
|
||||||
|
Loading…
Reference in New Issue
Block a user