From f71c803f2c90e92ad305831e06448e39f5e0b5fe Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Tue, 24 Jun 2025 11:43:00 -0300 Subject: [PATCH] fix(WhatsappDirectLine): update sendFileToDevice to default isViewOnce to true and clean up header example --- packages/llm.gblib/services/ChatServices.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/llm.gblib/services/ChatServices.ts b/packages/llm.gblib/services/ChatServices.ts index 4fd8c6e9..a2700d41 100644 --- a/packages/llm.gblib/services/ChatServices.ts +++ b/packages/llm.gblib/services/ChatServices.ts @@ -281,7 +281,7 @@ export class ChatServices { maxRetries: 2, }); } else { - const azureOpenAIKey = await (min.core as any)['getParam'](min.instance, 'Azure Open AI Key', null, true); + const azureOpenAIKey = process.env.AZURE_OPEN_AI_KEY; const azureOpenAILLMModel = await (min.core as any)['getParam']( min.instance, 'Azure Open AI LLM Model', @@ -295,12 +295,19 @@ export class ChatServices { null, true ); + const azureOpenAIEndPoint = await (min.core as any)['getParam']( + min.instance, + 'Azure Open AI Endpoint', + null, + true + ); model = new ChatOpenAI({ azureOpenAIApiKey: azureOpenAIKey, azureOpenAIApiInstanceName: azureOpenAIApiInstanceName, azureOpenAIApiDeploymentName: azureOpenAILLMModel, azureOpenAIApiVersion: azureOpenAIVersion, + azureOpenAIBasePath: azureOpenAIEndPoint, temperature: 0, }); }