Skip to content

Commit 942f14b

Browse files
committed
[BACKED | GEMINI FEATURE CORRECTED] - corrected the gemini feature
1 parent f3b24a2 commit 942f14b

2 files changed

Lines changed: 7 additions & 9 deletions

File tree

apps/server/controller/customAIFeatures.controllers.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ class customModel {
1919
async generateFileBasedOnFeatures(
2020
srs: string,
2121
description: string,
22-
gitSummary: string
22+
gitSummary: string,
2323
) {
2424
const prompt = CodeGenerationForFeature.replace(
2525
"{srs_documentdetails}",
26-
srs
26+
srs,
2727
)
2828
.replace("{current_feature}", description)
2929
.replace("{git_summary}", gitSummary);
@@ -41,7 +41,7 @@ class customModel {
4141
codefile,
4242
gitSummary,
4343
currentStatus,
44-
sdd
44+
sdd,
4545
) {
4646
let response = "";
4747
const prompt = CodeGenerationForFile.replace("{srs_documentdetails}", srs)
@@ -134,11 +134,11 @@ class customModel {
134134
async generateCorrectnessInFileOnBuggyFeature(
135135
srs: string,
136136
codefile: string,
137-
gitSummary: string
137+
gitSummary: string,
138138
) {
139139
const prompt = CodeGenerationForCorrection.replace(
140140
"{srs_documentdetails}",
141-
srs
141+
srs,
142142
)
143143
.replace("{current_code}", codefile)
144144
.replace("{git_summary}", gitSummary);

apps/server/utils/keymanager.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class GeminiKeyManager {
1717
isRateLimited: false,
1818
rateLimitExpiry: null,
1919
},
20-
])
20+
]),
2121
);
2222
}
2323

@@ -70,8 +70,6 @@ class GeminiKeyManager {
7070
}
7171

7272
// Initialize the GeminiKeyManager with API keys
73-
const keyManager = new GeminiKeyManager([
74-
process.env.GEMINI_KEY,
75-
]);
73+
const keyManager = new GeminiKeyManager([process.env.GEMINI_KEY]);
7674

7775
export default keyManager;

0 commit comments

Comments
 (0)