mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-09 00:47:59 +08:00
Fix metadata config (#14480)
### What problem does this PR solve? Fix metadata config ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@@ -70,11 +70,10 @@ def add_dataset_with_metadata(HttpApiAuth):
|
||||
headers={"Content-Type": "application/json"},
|
||||
auth=HttpApiAuth,
|
||||
json={
|
||||
"enabled": False,
|
||||
"fields": [
|
||||
{"name": "character", "type": "string", "description": "Historical figure name"},
|
||||
{"name": "era", "type": "string", "description": "Historical era"},
|
||||
{"name": "achievements", "type": "list", "description": "Major achievements"},
|
||||
"metadata": [
|
||||
{"key": "character", "type": "string", "description": "Historical figure name"},
|
||||
{"key": "era", "type": "string", "description": "Historical era"},
|
||||
{"key": "achievements", "type": "list", "description": "Major achievements"},
|
||||
]
|
||||
}
|
||||
).json()
|
||||
|
||||
Reference in New Issue
Block a user