Skip to content

Commit 6663db4

Browse files
Fixed prod issue
1 parent 63d4550 commit 6663db4

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

app.js

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ if (process.env.NODE_ENV == 'production') {
2929
config.pineconeAPIKey = process.env.pineconeAPIKey;
3030
config.azureOpenAIAPIKey = process.env.azureOpenAIAPIKey;
3131
config.azureEndpointURL = process.env.azureEndpointURL;
32+
config.debugDisableEmbeddings = false;
3233
hostPort = process.env.PORT ? process.env.PORT : 8080;
3334
} else {
3435
mongooseConnectionString = config.devMongoDBConnectionString;

backendsrc/webDataHandler.js

-8
Original file line numberDiff line numberDiff line change
@@ -2143,24 +2143,18 @@ class WebDataHandler {
21432143
async getSimilarIssues(queryData) {
21442144
const { organizationName, repoName, issueTitle, issueBody } = queryData;
21452145

2146-
console.log("In data: ", queryData);
2147-
21482146
let issueDescription = GetDescription(issueTitle, issueBody) // to do rewrite to take in issue title and body
21492147

21502148
let dbRepoName = (organizationName + "/" + repoName).toLowerCase();
21512149

21522150
let repo = await this.RepoDetails.findOne({ shortURL: dbRepoName });
21532151

2154-
console.log("Repo short URL: ", repo.shortURL);
2155-
21562152
if (repo == null) {
21572153
throw "Repo not found";
21582154
}
21592155

21602156
let issue = await this.IssueDetails.findOne({ title: issueTitle, repoRef: repo._id });
21612157

2162-
console.log("Issue title if it exists: ", issue?.title);
2163-
21642158
let similarIssueIDArray = await this.embeddingsHandler.getSimilarIssueIDs(repo, issueDescription, issue);
21652159

21662160
// Make a new array that finds each issue with the id specified in the array above
@@ -2178,8 +2172,6 @@ class WebDataHandler {
21782172
}
21792173
});
21802174

2181-
console.log("Return array: ", returnArray);
2182-
21832175
return returnArray;
21842176
}
21852177
}

0 commit comments

Comments
 (0)