From 0f6688773627221a89f76f181d882de1810caad6 Mon Sep 17 00:00:00 2001 From: Sergiy Date: Tue, 27 Aug 2024 16:51:42 +0300 Subject: [PATCH] OV-52: * openai service --- backend/src/common/services/open-ai/open-ai.service.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/src/common/services/open-ai/open-ai.service.ts b/backend/src/common/services/open-ai/open-ai.service.ts index 81b3d8556..980a10f8c 100644 --- a/backend/src/common/services/open-ai/open-ai.service.ts +++ b/backend/src/common/services/open-ai/open-ai.service.ts @@ -1,4 +1,4 @@ -import OpenAI, { type OpenAI as OpenAIType } from 'openai'; +import OpenAI from 'openai'; import { type BaseConfig } from '~/common/config/base-config.package.js'; @@ -8,14 +8,14 @@ import { type OpenAIService as OpenAIServiceType } from './libs/types/types.js'; class OpenAIService implements OpenAIServiceType { private config: BaseConfig; - private openAi: OpenAIType; + private openAi: OpenAI; public constructor(config: BaseConfig) { this.config = config; this.openAi = this.initOpenAi(); } - private initOpenAi = (): OpenAIType => { + private initOpenAi = (): OpenAI => { return new OpenAI({ apiKey: this.config.ENV.APP.OPEN_AI_KEY, });