Skip to content

Commit 2c78008

Browse files
committed
remove open ai key validation
1 parent 3960624 commit 2c78008

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/api/integrations/chatbot/openai/controllers/openai.controller.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -236,15 +236,15 @@ export class OpenaiController extends BaseChatbotController<OpenaiBot, OpenaiDto
236236
if (!data.name) throw new BadRequestException('Name is required');
237237

238238
// Check if API key already exists
239-
const existingApiKey = await this.credsRepository.findFirst({
240-
where: {
241-
apiKey: data.apiKey,
242-
},
243-
});
244-
245-
if (existingApiKey) {
246-
throw new BadRequestException('This API key is already registered. Please use a different API key.');
247-
}
239+
// const existingApiKey = await this.credsRepository.findFirst({
240+
// where: {
241+
// apiKey: data.apiKey,
242+
// },
243+
// });
244+
245+
// if (existingApiKey) {
246+
// throw new BadRequestException('This API key is already registered. Please use a different API key.');
247+
// }
248248

249249
// Check if name already exists for this instance
250250
const existingName = await this.credsRepository.findFirst({

0 commit comments

Comments
 (0)