Refa: remove dataset language and validate dataset name length. (#5707)

### What problem does this PR solve?

#5686
#5702

### Type of change

- [x] Refactoring
This commit is contained in:
Kevin Hu
2025-03-06 17:08:28 +08:00
committed by GitHub
parent df9b7b2fe9
commit ff35c140dc
5 changed files with 9 additions and 33 deletions

View File

@ -178,7 +178,6 @@ Creates a dataset.
- `"name"`: `string`
- `"avatar"`: `string`
- `"description"`: `string`
- `"language"`: `string`
- `"embedding_model"`: `string`
- `"permission"`: `string`
- `"chunk_method"`: `string`
@ -214,11 +213,6 @@ curl --request POST \
- `"description"`: (*Body parameter*), `string`
A brief description of the dataset to create.
- `"language"`: (*Body parameter*), `string`
The language setting of the dataset to create. Available options:
- `"English"` (default)
- `"Chinese"`
- `"embedding_model"`: (*Body parameter*), `string`
The name of the embedding model to use. For example: `"BAAI/bge-zh-v1.5"`