mirror of
https://github.com/freeedcom/ai-codereviewer.git
synced 2025-04-20 01:26:47 +00:00
add 'OPENAI_API_MODEL' parameter
This commit is contained in:
parent
012d1cdc1a
commit
838fc48abe
3 changed files with 7 additions and 1 deletions
|
@ -7,6 +7,7 @@ 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 octokit = new Octokit({ auth: GITHUB_TOKEN });
|
||||
|
||||
|
@ -132,7 +133,7 @@ async function getAIResponse(prompt: string): Promise<Array<{
|
|||
reviewComment: string;
|
||||
}> | null> {
|
||||
const queryConfig = {
|
||||
model: "gpt-4",
|
||||
model: OPENAI_API_MODEL,
|
||||
temperature: 0.2,
|
||||
max_tokens: 700,
|
||||
top_p: 1,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue