mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-24 14:17:47 -06:00
feat(evoai): add EvoAI integration with models, services, and routes
- Introduced Evoai and EvoaiSetting models in both MySQL and PostgreSQL schemas. - Implemented EvoaiController and EvoaiService for managing EvoAI bots. - Created EvoaiRouter for handling API requests related to EvoAI. - Added DTOs and validation schemas for EvoAI integration. - Updated server module and chatbot controller to include EvoAI functionality. - Configured environment settings for EvoAI integration.
This commit is contained in:
@@ -254,6 +254,7 @@ export type Chatwoot = {
|
||||
export type Openai = { ENABLED: boolean; API_KEY_GLOBAL?: string };
|
||||
export type Dify = { ENABLED: boolean };
|
||||
export type N8n = { ENABLED: boolean };
|
||||
export type Evoai = { ENABLED: boolean };
|
||||
|
||||
export type S3 = {
|
||||
ACCESS_KEY: string;
|
||||
@@ -294,6 +295,7 @@ export interface Env {
|
||||
OPENAI: Openai;
|
||||
DIFY: Dify;
|
||||
N8N: N8n;
|
||||
EVOAI: Evoai;
|
||||
CACHE: CacheConf;
|
||||
S3?: S3;
|
||||
AUTHENTICATION: Auth;
|
||||
@@ -592,6 +594,9 @@ export class ConfigService {
|
||||
N8N: {
|
||||
ENABLED: process.env?.N8N_ENABLED === 'true',
|
||||
},
|
||||
EVOAI: {
|
||||
ENABLED: process.env?.EVOAI_ENABLED === 'true',
|
||||
},
|
||||
CACHE: {
|
||||
REDIS: {
|
||||
ENABLED: process.env?.CACHE_REDIS_ENABLED === 'true',
|
||||
|
||||
Reference in New Issue
Block a user