mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-12 22:54:49 -06:00

- Add YAML file loader to tsup.config.ts to fix build compilation errors - Fix OpenAI speechToText method signature across all chatbot services - Correct DifyService constructor parameter order in server.module.ts and channel.service.ts - Add missing OpenAI service dependency injection to EvoaiService - Standardize audio transcription logic in FlowiseService to match N8N implementation - Fix speechToText calls in WhatsApp Baileys and Evolution channel services - Ensure consistent error handling and parameter passing for audio processing This resolves the "Cannot read properties of undefined" errors and ensures all chatbot integrations (OpenAI, N8N, Flowise, EvoAI, Dify, EvolutionBot) properly handle audio message transcription using OpenAI Whisper.
21 lines
409 B
TypeScript
21 lines
409 B
TypeScript
import { cpSync } from 'node:fs';
|
|
|
|
import { defineConfig } from 'tsup';
|
|
|
|
export default defineConfig({
|
|
entry: ['src'],
|
|
outDir: 'dist',
|
|
splitting: false,
|
|
sourcemap: true,
|
|
clean: true,
|
|
minify: true,
|
|
format: ['cjs', 'esm'],
|
|
onSuccess: async () => {
|
|
cpSync('src/utils/translations', 'dist/translations', { recursive: true });
|
|
},
|
|
loader: {
|
|
'.json': 'file',
|
|
'.yml': 'file',
|
|
},
|
|
});
|