@@ -55,7 +55,7 @@ export class DifyService extends BaseChatbotService<Dify, DifySetting> {
5555 pushName : pushName ,
5656 instanceName : instance . instanceName ,
5757 serverUrl : this . configService . get < HttpServer > ( 'SERVER' ) . URL ,
58- apiKey : this . configService . get < Auth > ( 'AUTHENTICATION' ) . API_KEY . KEY ,
58+ apiKey : instance . token ,
5959 } ,
6060 query : content ,
6161 response_mode : 'blocking' ,
@@ -133,7 +133,7 @@ export class DifyService extends BaseChatbotService<Dify, DifySetting> {
133133 remoteJid : remoteJid ,
134134 instanceName : instance . instanceName ,
135135 serverUrl : this . configService . get < HttpServer > ( 'SERVER' ) . URL ,
136- apiKey : this . configService . get < Auth > ( 'AUTHENTICATION' ) . API_KEY . KEY ,
136+ apiKey : instance . token ,
137137 } ,
138138 response_mode : 'blocking' ,
139139 conversation_id : session . sessionId === remoteJid ? undefined : session . sessionId ,
@@ -209,7 +209,7 @@ export class DifyService extends BaseChatbotService<Dify, DifySetting> {
209209 pushName : pushName ,
210210 instanceName : instance . instanceName ,
211211 serverUrl : this . configService . get < HttpServer > ( 'SERVER' ) . URL ,
212- apiKey : this . configService . get < Auth > ( 'AUTHENTICATION' ) . API_KEY . KEY ,
212+ apiKey : instance . token ,
213213 } ,
214214 query : content ,
215215 response_mode : 'streaming' ,
0 commit comments