Skip to content

Commit

Permalink
chore: bump max tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
lfsevergnini committed Sep 19, 2023
1 parent bf13719 commit 3f91be3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const OPENAI_API_MODEL: string = core.getInput("OPENAI_API_MODEL");
const REVIEW_MAX_COMMENTS: string = core.getInput("REVIEW_MAX_COMMENTS");
const REVIEW_PROJECT_CONTEXT: string = core.getInput("REVIEW_PROJECT_CONTEXT");

const MAX_TOKENS = 32768;

const octokit = new Octokit({ auth: GITHUB_TOKEN });

const configuration = new Configuration({
Expand Down Expand Up @@ -151,7 +153,7 @@ async function getAIResponse(
const queryConfig = {
model: OPENAI_API_MODEL,
temperature: 0.2,
max_tokens: 700,
max_tokens: MAX_TOKENS,
top_p: 1,
frequency_penalty: 0,
presence_penalty: 0,
Expand Down

0 comments on commit 3f91be3

Please sign in to comment.