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
|
sudo cp -r ./* /opt/gbo/bin/bot/botserver
|
||||||
|
|
||||||
|
|
||||||
- name: Install production dependencies in deployment location
|
- name: Building BotServer
|
||||||
run: |
|
run: |
|
||||||
echo "[General Bots Deployer] Building BotServer..."
|
echo "[General Bots Deployer] Building BotServer..."
|
||||||
# rm -rf /opt/gbo/bin/bot/botserver/node_modules
|
# rm -rf /opt/gbo/bin/bot/botserver/node_modules
|
||||||
|
@ -43,7 +43,4 @@ jobs:
|
||||||
- name: Restart Bots Deployer
|
- name: Restart Bots Deployer
|
||||||
run: |
|
run: |
|
||||||
echo "[General Bots Deployer] Restarting..."
|
echo "[General Bots Deployer] Restarting..."
|
||||||
sudo systemctl stop bot
|
lxc restart pragmatismo-bot
|
||||||
echo "[General Bots Deployer] Stopped."
|
|
||||||
sudo systemctl start bot
|
|
||||||
echo "[General Bots Deployer] Started."
|
|
||||||
|
|
|
@ -281,26 +281,14 @@ export class ChatServices {
|
||||||
maxRetries: 2,
|
maxRetries: 2,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const azureOpenAIKey = process.env.AZURE_OPEN_AI_KEY;
|
const azureOpenAIKey = process.env.AZURE_OPEN_AI_KEY;
|
||||||
const azureOpenAILLMModel = await (min.core as any)['getParam'](
|
const azureOpenAILLMModel = process.env.AZURE_OPEN_AI_LLM_MODEL;
|
||||||
min.instance,
|
const azureOpenAIVersion = process.env.AZURE_OPEN_AI_VERSION;
|
||||||
'Azure Open AI LLM Model',
|
const azureOpenAIApiInstanceName = process.env.AZURE_OPEN_AI_INSTANCE;
|
||||||
null,
|
const azureOpenAIEndPoint = process.env.AZURE_OPEN_AI_ENDPOINT;
|
||||||
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
|
|
||||||
);
|
|
||||||
|
|
||||||
model = new ChatOpenAI({
|
model = new ChatOpenAI({
|
||||||
azureOpenAIApiKey: azureOpenAIKey,
|
azureOpenAIApiKey: azureOpenAIKey,
|
||||||
|
|
Loading…
Add table
Reference in a new issue