Skip to content

Commit 4cab23a

Browse files
authored
Merge pull request #384 from Quickchive/feat/update-openai
feat: change category recommendation model
2 parents 3812810 + 98a95c6 commit 4cab23a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/categories/category.service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -549,10 +549,10 @@ Present your reply options in JSON format below.
549549

550550
try {
551551
const response = await this.openaiService.createChatCompletion({
552-
model: 'o1-mini',
552+
model: 'gpt-4o-mini',
553553
question,
554-
temperature: 1,
555-
// responseType: { type: 'json_object' },
554+
temperature: 0,
555+
responseType: { type: 'json_object' },
556556
});
557557

558558
const categoryStr = response.choices[0].message?.content;

0 commit comments

Comments
 (0)