mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-16 12:12:55 -06:00
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:
commit
5330121c49
@ -55,7 +55,7 @@ export class DifyService extends BaseChatbotService<Dify, DifySetting> {
|
|||||||
pushName: pushName,
|
pushName: pushName,
|
||||||
instanceName: instance.instanceName,
|
instanceName: instance.instanceName,
|
||||||
serverUrl: this.configService.get<HttpServer>('SERVER').URL,
|
serverUrl: this.configService.get<HttpServer>('SERVER').URL,
|
||||||
apiKey: this.configService.get<Auth>('AUTHENTICATION').API_KEY.KEY,
|
apiKey: instance.token,
|
||||||
},
|
},
|
||||||
query: content,
|
query: content,
|
||||||
response_mode: 'blocking',
|
response_mode: 'blocking',
|
||||||
@ -133,7 +133,7 @@ export class DifyService extends BaseChatbotService<Dify, DifySetting> {
|
|||||||
remoteJid: remoteJid,
|
remoteJid: remoteJid,
|
||||||
instanceName: instance.instanceName,
|
instanceName: instance.instanceName,
|
||||||
serverUrl: this.configService.get<HttpServer>('SERVER').URL,
|
serverUrl: this.configService.get<HttpServer>('SERVER').URL,
|
||||||
apiKey: this.configService.get<Auth>('AUTHENTICATION').API_KEY.KEY,
|
apiKey: instance.token,
|
||||||
},
|
},
|
||||||
response_mode: 'blocking',
|
response_mode: 'blocking',
|
||||||
conversation_id: session.sessionId === remoteJid ? undefined : session.sessionId,
|
conversation_id: session.sessionId === remoteJid ? undefined : session.sessionId,
|
||||||
@ -209,7 +209,7 @@ export class DifyService extends BaseChatbotService<Dify, DifySetting> {
|
|||||||
pushName: pushName,
|
pushName: pushName,
|
||||||
instanceName: instance.instanceName,
|
instanceName: instance.instanceName,
|
||||||
serverUrl: this.configService.get<HttpServer>('SERVER').URL,
|
serverUrl: this.configService.get<HttpServer>('SERVER').URL,
|
||||||
apiKey: this.configService.get<Auth>('AUTHENTICATION').API_KEY.KEY,
|
apiKey: instance.token,
|
||||||
},
|
},
|
||||||
query: content,
|
query: content,
|
||||||
response_mode: 'streaming',
|
response_mode: 'streaming',
|
||||||
|
@ -52,7 +52,7 @@ export class FlowiseService extends BaseChatbotService<Flowise, FlowiseSetting>
|
|||||||
pushName: pushName,
|
pushName: pushName,
|
||||||
instanceName: instance.instanceName,
|
instanceName: instance.instanceName,
|
||||||
serverUrl: this.configService.get<HttpServer>('SERVER').URL,
|
serverUrl: this.configService.get<HttpServer>('SERVER').URL,
|
||||||
apiKey: this.configService.get<Auth>('AUTHENTICATION').API_KEY.KEY,
|
apiKey: instance.token,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user