From 2dadca1f506e634fe9bbdf8b6f191dd3b7fc5c06 Mon Sep 17 00:00:00 2001 From: sihyeong671 Date: Thu, 15 Aug 2024 12:16:48 +0900 Subject: [PATCH] apply formatting --- backend/src/langchain/langchain.module.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/backend/src/langchain/langchain.module.ts b/backend/src/langchain/langchain.module.ts index fb72abfb..00e35da4 100644 --- a/backend/src/langchain/langchain.module.ts +++ b/backend/src/langchain/langchain.module.ts @@ -7,17 +7,16 @@ const chatModelFactory = { provide: "ChatModel", useFactory: () => { const modelType = process.env.YORKIE_INTELLIGENCE; - if (modelType === "gemma2:2b"){ + if (modelType === "gemma2:2b") { return new ChatOllama({ model: modelType, checkOrPullModel: true, streaming: true, }); - } - else if (modelType === "openai"){ + } else if (modelType === "openai") { return new ChatOpenAI({ modelName: "gpt-4o-mini" }) as BaseChatModel; } - } + }, }; @Module({