Skip to content

Commit

Permalink
chore: removed test condition in comment evaluator
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernand authored and Fernand committed Mar 21, 2024
1 parent a85e01c commit 902b54e
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/parser/content-evaluator-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,6 @@ export class ContentEvaluatorModule implements Module {

async _evaluateComment(specification: string, comment: string) {
const prompt = this._generatePrompt(specification, comment);

if (process.env.NODE_ENV === "test") {
return {
relevance: 0.5,
};
}

try {
const response: OpenAI.Chat.ChatCompletion = await this._openAi.chat.completions.create({
model: "gpt-3.5-turbo",
Expand Down

0 comments on commit 902b54e

Please sign in to comment.