fix: i18n error (#12052)

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
This commit is contained in:
yihong
2024-12-24 23:14:51 +08:00
committed by GitHub
parent 0ea6a926c5
commit 7a24c957bd
2 changed files with 6 additions and 7 deletions

View File

@@ -275,10 +275,7 @@ class ToolTransformService:
author=tool.identity.author,
name=tool.identity.name,
label=tool.identity.label,
description=I18nObject(
en_US=tool.description.human if tool.description else "",
zh_Hans=tool.description.human if tool.description else "",
),
description=tool.description.human if tool.description else "", # type: ignore
parameters=current_parameters,
labels=labels,
)