git-repo-analyzer-test 1.0.24 → 1.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -7,6 +7,8 @@ import { PerformanceAnalyzer } from '../analyzers/performance.js';
|
|
|
7
7
|
import { DocumentationAnalyzer } from '../analyzers/documentation-enhanced.js';
|
|
8
8
|
import { CodeReviewAnalyzer } from '../analyzers/codeReview.js';
|
|
9
9
|
import { CICDAnalyzer } from '../analyzers/cicd-enhanced.js';
|
|
10
|
+
import dotenv from "dotenv";
|
|
11
|
+
dotenv.config();
|
|
10
12
|
export class AnalyzerEngine {
|
|
11
13
|
constructor(githubClient) {
|
|
12
14
|
// ✅ Fallback if not passed
|
package/src/openai.js
CHANGED
|
@@ -7,7 +7,7 @@ import dotenv from "dotenv";
|
|
|
7
7
|
dotenv.config();
|
|
8
8
|
const OPENAI_API_KEY = (process.env.OPENAI_API_KEY || '').trim();
|
|
9
9
|
const OPENAI_MODEL = process.env.OPENAI_MODEL || 'gpt-4o-mini';
|
|
10
|
-
|
|
10
|
+
console.log("Loaded KEY:", process.env.OPENAI_API_KEY);
|
|
11
11
|
const github = axios.create({
|
|
12
12
|
baseURL: 'https://api.github.com',
|
|
13
13
|
headers: process.env.GITHUB_TOKEN
|