mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-19 11:52:20 -06:00
This commit refines the Dify integration by updating the controller and service logic for better functionality and maintainability. Key changes include: - Added Dify-specific validation in the createBot method to prevent duplicate entries. - Simplified comments for clarity and removed unused methods in DifyController. - Enhanced message processing in DifyService to handle audio messages more effectively and improve error handling. - Updated DifyDto and DifySettingDto to streamline properties and improve clarity. These updates contribute to a more robust and maintainable Dify integration.
14 lines
331 B
TypeScript
14 lines
331 B
TypeScript
import { $Enums } from '@prisma/client';
|
|
|
|
import { BaseChatbotDto, BaseChatbotSettingDto } from '../../base-chatbot.dto';
|
|
|
|
export class DifyDto extends BaseChatbotDto {
|
|
botType?: $Enums.DifyBotType;
|
|
apiUrl?: string;
|
|
apiKey?: string;
|
|
}
|
|
|
|
export class DifySettingDto extends BaseChatbotSettingDto {
|
|
difyIdFallback?: string;
|
|
}
|