Skip to content

Commit

Permalink
Added auth for classifier
Browse files Browse the repository at this point in the history
  • Loading branch information
Amruth-Vamshi committed Dec 11, 2023
1 parent f81cb83 commit a401f46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/aiTools/ai-tools.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ export class AiToolsService {
try{
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("X-API-Key", `Bearer ${this.configService.get("CLASSIFIER_API_KEY")}`);
myHeaders.append("Authorization", `Bearer ${this.configService.get("CLASSIFIER_API_KEY")}`);
let body = {
text: text
}
Expand Down

0 comments on commit a401f46

Please sign in to comment.