fix(WhatsappDirectLine): update sendFileToDevice to default isViewOnce to true and clean up header example
Some checks failed
GBCI / build (push) Failing after 7m41s
Some checks failed
GBCI / build (push) Failing after 7m41s
This commit is contained in:
parent
f71c803f2c
commit
619a0e11b9
2 changed files with 9 additions and 24 deletions
|
@ -30,7 +30,7 @@ jobs:
|
|||
sudo cp -r ./* /opt/gbo/bin/bot/botserver
|
||||
|
||||
|
||||
- name: Install production dependencies in deployment location
|
||||
- name: Building BotServer
|
||||
run: |
|
||||
echo "[General Bots Deployer] Building BotServer..."
|
||||
# rm -rf /opt/gbo/bin/bot/botserver/node_modules
|
||||
|
@ -43,7 +43,4 @@ jobs:
|
|||
- name: Restart Bots Deployer
|
||||
run: |
|
||||
echo "[General Bots Deployer] Restarting..."
|
||||
sudo systemctl stop bot
|
||||
echo "[General Bots Deployer] Stopped."
|
||||
sudo systemctl start bot
|
||||
echo "[General Bots Deployer] Started."
|
||||
lxc restart pragmatismo-bot
|
||||
|
|
|
@ -281,26 +281,14 @@ export class ChatServices {
|
|||
maxRetries: 2,
|
||||
});
|
||||
} else {
|
||||
|
||||
|
||||
|
||||
const azureOpenAIKey = process.env.AZURE_OPEN_AI_KEY;
|
||||
const azureOpenAILLMModel = await (min.core as any)['getParam'](
|
||||
min.instance,
|
||||
'Azure Open AI LLM Model',
|
||||
null,
|
||||
true
|
||||
);
|
||||
const azureOpenAIVersion = await (min.core as any)['getParam'](min.instance, 'Azure Open AI Version', null, true);
|
||||
const azureOpenAIApiInstanceName = await (min.core as any)['getParam'](
|
||||
min.instance,
|
||||
'Azure Open AI Instance',
|
||||
null,
|
||||
true
|
||||
);
|
||||
const azureOpenAIEndPoint = await (min.core as any)['getParam'](
|
||||
min.instance,
|
||||
'Azure Open AI Endpoint',
|
||||
null,
|
||||
true
|
||||
);
|
||||
const azureOpenAILLMModel = process.env.AZURE_OPEN_AI_LLM_MODEL;
|
||||
const azureOpenAIVersion = process.env.AZURE_OPEN_AI_VERSION;
|
||||
const azureOpenAIApiInstanceName = process.env.AZURE_OPEN_AI_INSTANCE;
|
||||
const azureOpenAIEndPoint = process.env.AZURE_OPEN_AI_ENDPOINT;
|
||||
|
||||
model = new ChatOpenAI({
|
||||
azureOpenAIApiKey: azureOpenAIKey,
|
||||
|
|
Loading…
Add table
Reference in a new issue