Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
thguss committed Jan 15, 2025
2 parents 72045b8 + c22cf15 commit 9c28a00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public String prompt(String message) {
@Override
public List<Correction> promptCorrections(String content) {
OpenAiChatOptions options = OpenAiChatOptions.builder()
.withResponseFormat(new ResponseFormat(JSON_SCHEMA, SchemeTemplate.getCorrectionScheme()))
.responseFormat(new ResponseFormat(JSON_SCHEMA, SchemeTemplate.getCorrectionScheme()))
.build();

Prompt prompt = new Prompt(PromptTemplate.getCorrectionPrompt(content), options);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ OpenAiApi openAiApi(OpenAiProperties properties) {
@Bean
public OpenAiChatModel openAiChatModel(OpenAiApi openAiApi) {
OpenAiChatOptions options = OpenAiChatOptions.builder()
.withModel("gpt-4o-mini")
.withTemperature(0.4)
.model("gpt-4o-mini")
.temperature(0.4)
.build();
return new OpenAiChatModel(openAiApi, options);
}
Expand Down

0 comments on commit 9c28a00

Please sign in to comment.