Enhance OpenAI Test Script with Advanced Model Selection and Error Handling

- Added comprehensive model configuration and selection mechanism
- Implemented dynamic model handling for OpenAI and DeepSeek providers
- Enhanced error handling and retry logic for API interactions
- Expanded system analysis with more detailed XML-based response parsing
- Updated configuration loading with improved model selection and validation
- Added colored logging and more informative console output
- Integrated new test suite for API endpoints
This commit is contained in:
jango-blockchained
2025-02-02 23:29:37 +01:00
parent 2987837321
commit 92bafbdaa7
4 changed files with 740 additions and 251 deletions

View File

@@ -28,7 +28,8 @@ module.exports = {
'**/__tests__/helpers.test.ts',
'**/__tests__/schemas/devices.test.ts',
'**/__tests__/context/index.test.ts',
'**/__tests__/hass/index.test.ts'
'**/__tests__/hass/index.test.ts',
'**/__tests__/api/index.test.ts'
],
globals: {
'ts-jest': {