ragflow/api/utils
Liu An dac5bcdf17
Fix: Enforce default embedding model in create_dataset / update_dataset (#8486)
### What problem does this PR solve?

Previous:
- Defaulted to hardcoded model 'BAAI/bge-large-zh-v1.5@BAAI'
- Did not respect user-configured default embedding_model

Now:
- Correctly prioritizes user-configured default embedding_model

Other:
- Make embedding_model optional in CreateDatasetReq with proper None
handling
- Add default embedding model fallback in dataset update when empty
- Enhance validation utils to handle None values and string
normalization
- Update SDK default embedding model to None to match API changes
- Adjust related test cases to reflect new validation rules

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
2025-06-25 16:41:32 +08:00
..
__init__.py Feat: Accessing Alibaba Cloud OSS with Amazon S3 SDK (#5438) 2025-02-27 17:02:42 +08:00
api_utils.py Fix: document typo in test (#8091) 2025-06-05 19:03:46 +08:00
commands.py Format file format from Windows/dos to Unix (#1949) 2024-08-15 09:17:36 +08:00
file_utils.py Fix typo in code (#8327) 2025-06-18 09:41:09 +08:00
log_utils.py Fix typo in code (#8327) 2025-06-18 09:41:09 +08:00
t_crypt.py Fix typo in code (#8327) 2025-06-18 09:41:09 +08:00
validation_utils.py Fix: Enforce default embedding model in create_dataset / update_dataset (#8486) 2025-06-25 16:41:32 +08:00
web_utils.py Feat: add MCP dashboard operations (#8460) 2025-06-25 09:26:04 +08:00