update docs for release 0.8.0 (#1419)

### What problem does this PR solve?

update docs for release 0.8.0

### Type of change

- [x] Documentation Update

---------

Co-authored-by: writinwaters <93570324+writinwaters@users.noreply.github.com>
This commit is contained in:
KevinHuSh
2024-07-08 17:06:33 +08:00
committed by GitHub
parent fce3f6df8e
commit 593c20889d
9 changed files with 36 additions and 29 deletions

View File

@ -38,7 +38,7 @@ class CategorizeParam(GenerateParam):
self.check_empty(self.category_description, "[Categorize] Category examples")
for k, v in self.category_description.items():
if not k: raise ValueError(f"[Categorize] Category name can not be empty!")
if not v["to"]: raise ValueError(f"[Categorize] 'To' of category {k} can not be empty!")
if not v.get("to"): raise ValueError(f"[Categorize] 'To' of category {k} can not be empty!")
def get_prompt(self):
cate_lines = []