Skip to content

Commit

Permalink
feat: use o1-mini
Browse files Browse the repository at this point in the history
  • Loading branch information
korosuke613 committed Jan 15, 2025
1 parent 7a4f268 commit 47b8897
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions tools/libs/AiReviewer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,19 @@ export class AiReviewer {
"gpt-4o": {
input: 2.5 / (1 * 1000000),
output: 10 / (1 * 1000000),
}
},
"o1-mini": {
input: 3 / (1 * 1000000),
output: 12 / (1 * 1000000),
},
"o1": {
input: 15 / (1 * 1000000),
output: 60 / (1 * 1000000),
},
};
static readonly defaultOptions: AiReviewerOptions = {
max_tokens: 1024,
model: "gpt-4o",
model: "o1",
logging: true,
reviewNum: 5,
};
Expand Down Expand Up @@ -162,7 +170,7 @@ export class AiReviewer {
},
],
temperature: 1,
max_tokens: this.options.max_tokens,
max_completion_tokens: this.options.max_tokens,
top_p: 1,
frequency_penalty: 0,
presence_penalty: 0,
Expand Down

0 comments on commit 47b8897

Please sign in to comment.