Merge pull request #1486 from oriondesign2015/develop

fix: Corrige envio da apiKey da instância nos payloads do Flowise e do Dify
This commit is contained in:
Davidson Gomes 2025-05-22 11:24:20 -03:00 committed by GitHub
commit 5330121c49
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -55,7 +55,7 @@ export class DifyService extends BaseChatbotService<Dify, DifySetting> {
pushName: pushName,
instanceName: instance.instanceName,
serverUrl: this.configService.get<HttpServer>('SERVER').URL,
apiKey: this.configService.get<Auth>('AUTHENTICATION').API_KEY.KEY,
apiKey: instance.token,
},
query: content,
response_mode: 'blocking',
@ -133,7 +133,7 @@ export class DifyService extends BaseChatbotService<Dify, DifySetting> {
remoteJid: remoteJid,
instanceName: instance.instanceName,
serverUrl: this.configService.get<HttpServer>('SERVER').URL,
apiKey: this.configService.get<Auth>('AUTHENTICATION').API_KEY.KEY,
apiKey: instance.token,
},
response_mode: 'blocking',
conversation_id: session.sessionId === remoteJid ? undefined : session.sessionId,
@ -209,7 +209,7 @@ export class DifyService extends BaseChatbotService<Dify, DifySetting> {
pushName: pushName,
instanceName: instance.instanceName,
serverUrl: this.configService.get<HttpServer>('SERVER').URL,
apiKey: this.configService.get<Auth>('AUTHENTICATION').API_KEY.KEY,
apiKey: instance.token,
},
query: content,
response_mode: 'streaming',

View File

@ -52,7 +52,7 @@ export class FlowiseService extends BaseChatbotService<Flowise, FlowiseSetting>
pushName: pushName,
instanceName: instance.instanceName,
serverUrl: this.configService.get<HttpServer>('SERVER').URL,
apiKey: this.configService.get<Auth>('AUTHENTICATION').API_KEY.KEY,
apiKey: instance.token,
},
},
};