ragflow/sdk/python/ragflow_sdk/modules
Liu An 2ff911b08c
Fix: Set default rerank_model to empty string in Chat class (#8130)
### What problem does this PR solve?

Previously when LLM.rerank_model was not configured:
- SDK would pass None as the value
- Database field with null=False constraint would reject it
- Caused storage failures for unset rerank_model cases

Now:
- SDK checks for None value before database operations
- Provides empty string as default when rerank_model is unset

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
2025-06-09 11:43:42 +08:00
..
__init__.py Update comments (#4569) 2025-01-21 20:52:28 +08:00
agent.py Feat: add 'delete' for agent's sessions api and unify apis of agent sdk (#5525) 2025-03-03 17:15:16 +08:00
base.py Fix: DataSet.update() now refreshes object data (#8058) 2025-06-05 09:26:19 +08:00
chat.py Fix: Set default rerank_model to empty string in Chat class (#8130) 2025-06-09 11:43:42 +08:00
chunk.py Improve API Documentation, Standardize Error Handling, and Enhance Comments (#5990) 2025-03-13 19:06:50 +08:00
dataset.py Fix(python-sdk): Add name filtering support to Dataset.list_documents() (#8090) 2025-06-05 19:04:35 +08:00
document.py Test: add sdk Document test cases (#8094) 2025-06-06 09:47:06 +08:00
session.py Don't use ',' (U+FF0C) but ', ' (U+2C U+20) (#8063) 2025-06-05 09:29:07 +08:00