mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-13 15:14:49 -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,
|
||||
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',
|
||||
|
@ -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,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user