File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -18,13 +18,13 @@ const fs = require("fs");
18
18
// Data
19
19
//-----------------------------------------------------------------------------
20
20
21
- const { GITHUB_TOKEN } = process . env ;
21
+ const { GITHUB_TOKEN , OPENAI_API_KEY } = process . env ;
22
22
const now = moment ( ) ;
23
23
const firstDayOfPreviousMonth = now . clone ( ) . subtract ( 1 , "month" ) . startOf ( "month" ) ;
24
24
const lastDayOfPreviousMonth = firstDayOfPreviousMonth . clone ( ) . endOf ( "month" ) ;
25
25
26
26
const AI_URL = "https://models.github.ai/inference/chat/completions" ;
27
- const AI_MODEL = "openai/gpt-4o" ;
27
+ const AI_MODEL = "openai/gpt-4o-mini " ;
28
28
29
29
const PROMPT = `You will be given a JSON object where the keys are GitHub
30
30
usernames and the values are arrays of pull request objects that were
@@ -159,7 +159,7 @@ async function fetchModelResponse(grouped) {
159
159
method : "POST" ,
160
160
headers : {
161
161
"Content-Type" : "application/json" ,
162
- Authorization : `Bearer ${ GITHUB_TOKEN } `
162
+ Authorization : `Bearer ${ OPENAI_API_KEY } `
163
163
} ,
164
164
body : JSON . stringify ( {
165
165
model : AI_MODEL ,
You can’t perform that action at this time.
0 commit comments