mirror of
https://github.com/freeedcom/ai-codereviewer.git
synced 2025-04-22 02:26:48 +00:00
Set the new limits as inputs
This commit is contained in:
parent
433f267f60
commit
75431ca4e5
1 changed files with 2 additions and 2 deletions
|
@ -8,8 +8,8 @@ import minimatch from "minimatch";
|
|||
const GITHUB_TOKEN: string = core.getInput("GITHUB_TOKEN");
|
||||
const OPENAI_API_KEY: string = core.getInput("OPENAI_API_KEY");
|
||||
const OPENAI_API_MODEL: string = core.getInput("OPENAI_API_MODEL");
|
||||
const MAX_FILES: number = 25;
|
||||
const MAX_TOKENS: number = 4096;
|
||||
const MAX_FILES: number = core.getInput("MAX_FILES") ? parseInt(core.getInput("MAX_FILES")) : 20;
|
||||
const MAX_TOKENS: number = core.getInput("MAX_TOKENS") ? parseInt(core.getInput("MAX_TOKENS")) : 4096;
|
||||
|
||||
const octokit = new Octokit({ auth: GITHUB_TOKEN });
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue