mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-16 12:12:55 -06:00
fix: Corrige envio da apiKey da instância no payload do Dify
Corrige o envio da apiKey no payload do Dify para usar a apiKey específica da instância ao invés da apiKey global do sistema.
This commit is contained in:
parent
06378e5d6b
commit
53c1c218c4
@ -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',
|
||||||
|
Loading…
Reference in New Issue
Block a user