fix(WhatsappDirectLine): update sendFileToDevice to default isViewOnce to true and clean up header example
Some checks failed
GBCI / build (push) Failing after 8m0s
Some checks failed
GBCI / build (push) Failing after 8m0s
This commit is contained in:
parent
3d5c30a3b0
commit
f71c803f2c
1 changed files with 8 additions and 1 deletions
|
@ -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,
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue