ragflow/api/apps/sdk
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
..
agent.py Feat: Add http api to create, update, or delete agents. (#7515) 2025-05-12 17:59:53 +08:00
chat.py Fix: sdk can not update chat model (#8016) 2025-06-03 15:22:26 +08:00
dataset.py Fix: Enforce default embedding model in create_dataset / update_dataset (#8486) 2025-06-25 16:41:32 +08:00
dify_retrieval.py Fix Bug: When performing the dify_retrieval, the metadata of the document was empty. (#7968) 2025-05-30 12:58:05 +08:00
doc.py Refa: Implement centralized file name length limit using FILE_NAME_LEN_LIMIT constant (#8318) 2025-06-17 18:01:30 +08:00
session.py agents openai API add new way to get session_id (#7937) 2025-05-29 13:31:17 +08:00