add file
This commit is contained in:
@@ -197,7 +197,7 @@ class BaseWorkflowParams(BaseModel):
|
|||||||
chunk_size: int = Field(default=default_params["chunk_size"], description="文本分割的块大小(字符)。")
|
chunk_size: int = Field(default=default_params["chunk_size"], description="文本分割的块大小(字符)。")
|
||||||
concurrent: int = Field(default=default_params["concurrent"], description="并发请求数。")
|
concurrent: int = Field(default=default_params["concurrent"], description="并发请求数。")
|
||||||
temperature: float = Field(default=default_params["temperature"], description="LLM温度参数。")
|
temperature: float = Field(default=default_params["temperature"], description="LLM温度参数。")
|
||||||
thinking: ThinkingMode = Field(default_params["thinking"], description="是否启用深度思考",
|
thinking: ThinkingMode = Field(default=default_params["thinking"], description="是否启用深度思考",
|
||||||
examples=["default", "enable", "disable"]),
|
examples=["default", "enable", "disable"]),
|
||||||
custom_prompt: Optional[str] = Field(None, description="用户自定义的翻译Prompt。", alias="custom_prompt")
|
custom_prompt: Optional[str] = Field(None, description="用户自定义的翻译Prompt。", alias="custom_prompt")
|
||||||
|
|
||||||
@@ -207,7 +207,7 @@ class MarkdownWorkflowParams(BaseWorkflowParams):
|
|||||||
workflow_type: Literal['markdown_based'] = Field(..., description="指定使用基于Markdown的翻译工作流。")
|
workflow_type: Literal['markdown_based'] = Field(..., description="指定使用基于Markdown的翻译工作流。")
|
||||||
convert_engine: ConvertEngineType = Field(
|
convert_engine: ConvertEngineType = Field(
|
||||||
"identity",
|
"identity",
|
||||||
description="文档解析引擎。`identity`处理markdown文件,`mineru`在线服务, `docling`本地引擎。如果输入文件是.md,此项可为`null`或不传。",
|
description="选择将文件解析为markdown的引擎。如果输入文件是.md,此项可为`null`或不传。",
|
||||||
examples=["identity", "mineru", "docling"]
|
examples=["identity", "mineru", "docling"]
|
||||||
)
|
)
|
||||||
mineru_token: Optional[str] = Field(None, description="当 `convert_engine` 为 'mineru' 时必填的API令牌。")
|
mineru_token: Optional[str] = Field(None, description="当 `convert_engine` 为 'mineru' 时必填的API令牌。")
|
||||||
@@ -230,7 +230,7 @@ class JsonWorkflowParams(BaseWorkflowParams):
|
|||||||
json_paths: List[str] = Field(
|
json_paths: List[str] = Field(
|
||||||
...,
|
...,
|
||||||
description="一个jsonpath-ng表达式列表,用于指定需要翻译的JSON字段。",
|
description="一个jsonpath-ng表达式列表,用于指定需要翻译的JSON字段。",
|
||||||
examples=[["productName", "description.long", "features[*]"]]
|
examples=[["$..description", "$.items[0].name", "$.*"]]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
7
更新日志.txt
7
更新日志.txt
@@ -1,5 +1,12 @@
|
|||||||
更新日志
|
更新日志
|
||||||
----------------------------------------
|
----------------------------------------
|
||||||
|
v1.0.0版 2025.8.5
|
||||||
|
优化
|
||||||
|
- 支持txt/json/docx/xlsx文件翻译
|
||||||
|
- 支持控制混合推理模型是否思考
|
||||||
|
- 增加目标语言选项
|
||||||
|
- 交互式界面默认启用公式与代码识别
|
||||||
|
----------------------------------------
|
||||||
v0.3.3版 2025.7.16
|
v0.3.3版 2025.7.16
|
||||||
优化
|
优化
|
||||||
- 提高协程的细粒度
|
- 提高协程的细粒度
|
||||||
|
|||||||
Reference in New Issue
Block a user