ragflow/test/testcases/test_sdk_api
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
..
test_chat_assistant_management Test: fix test cases and improve document parsing validation (#8179) 2025-06-11 14:25:30 +08:00
test_chunk_management_within_dataset Test: Refactor test fixtures and add SDK session management tests (#8141) 2025-06-09 18:13:26 +08:00
test_dataset_mangement Fix: Enforce default embedding model in create_dataset / update_dataset (#8486) 2025-06-25 16:41:32 +08:00
test_file_management_within_dataset Fix: Enforce 255-byte filename limit (#8290) 2025-06-16 16:39:41 +08:00
test_session_management Refactor code (#8341) 2025-06-18 16:40:30 +08:00
common.py Test: Refactor test fixtures and add SDK session management tests (#8141) 2025-06-09 18:13:26 +08:00
conftest.py Test: Add web API test suite for knowledge base operations (#8254) 2025-06-13 16:39:10 +08:00