evolution-api/src
Guilherme Gomes 39aaf29d54 refactor: enhance OpenAI controller and service for better credential management
This commit refactors the OpenAIController and OpenAIService to improve credential handling and error management. Key changes include:
- Added checks to prevent duplicate API keys and names during bot creation.
- Updated the getModels method to accept an optional credential ID for more flexible credential usage.
- Enhanced error handling with specific BadRequestException messages for better clarity.
- Removed unused methods and streamlined the speech-to-text functionality to utilize instance-specific settings.

These improvements enhance the maintainability and usability of the OpenAI integration.
2025-05-27 14:32:10 -03:00
..
@types feat: send media with form-data 2024-10-04 14:45:16 -03:00
api refactor: enhance OpenAI controller and service for better credential management 2025-05-27 14:32:10 -03:00
cache Fix prettier errors 2025-01-07 08:50:34 +01:00
config Merge pull request #1498 from thrsouza/main 2025-05-25 11:10:40 -03:00
exceptions Path mapping & deps fix & bundler changed to tsup 2024-08-11 20:47:17 -03:00
utils Merge pull request #1351 from ricocorreia1/main 2025-04-08 19:10:38 -03:00
validate merging with develop 2025-03-28 10:36:34 -03:00
main.ts feat(env): enhance webhook configuration and SSL support 2025-05-21 17:55:00 -03:00