Skip to content

Commit 9951d05

Browse files
committed
chore: rename package and reorder inputs, update model defaults
1 parent 2d453eb commit 9951d05

2 files changed

Lines changed: 19 additions & 19 deletions

File tree

tasks/translator/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
from oocana import LLMModelOptions
1212
class Inputs(typing.TypedDict):
1313
source_file: str
14-
translated_file: str | None
1514
language: typing.Literal["zh-Hans", "zh-Hant", "en", "fr", "de", "es", "ru", "it", "pt", "ja", "ko"]
1615
write_mode: typing.Literal["append", "replace"]
16+
translated_file: str | None
1717
prompt: str | None
1818
max_chunk_tokens: int
1919
threads: int

tasks/translator/task.oo.yaml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,6 @@ inputs_def:
1414
- name: EPUB
1515
extensions:
1616
- .epub
17-
- handle: translated_file
18-
description: "%the-saved-path-of-the-translated-epub-file-if-not-filled-in-spec%"
19-
json_schema:
20-
type: string
21-
ui:widget: save
22-
ui:options:
23-
excludeAll: true
24-
filters:
25-
- name: EPUE
26-
extensions:
27-
- .epub
28-
value:
29-
nullable: true
30-
- group: Translate
31-
collapsed: false
3217
- handle: language
3318
description: "%translation-target-language%"
3419
json_schema:
@@ -59,7 +44,7 @@ inputs_def:
5944
- Korean
6045
value: zh-Hans
6146
- handle: write_mode
62-
description: '%how-is-the-translation-written-into-an-epub-file-is-it-append-to%'
47+
description: "%how-is-the-translation-written-into-an-epub-file-is-it-append-to%"
6348
json_schema:
6449
enum:
6550
- append
@@ -69,6 +54,21 @@ inputs_def:
6954
- Append
7055
- Replace
7156
value: append
57+
- group: Translate
58+
collapsed: true
59+
- handle: translated_file
60+
description: '%the-saved-path-of-the-translated-epub-file-if-not-filled-in-spec%'
61+
json_schema:
62+
type: string
63+
ui:widget: save
64+
ui:options:
65+
excludeAll: true
66+
filters:
67+
- name: EPUE
68+
extensions:
69+
- epub
70+
value:
71+
nullable: true
7272
- handle: prompt
7373
description: "%provide-llm-with-necessary-information-for-translating-books-for%"
7474
json_schema:
@@ -110,8 +110,8 @@ inputs_def:
110110
value:
111111
model: deepseek-chat
112112
temperature: 0.5
113-
top_p: 0.5
114-
max_tokens: 4096
113+
top_p: 1
114+
max_tokens: 8100
115115
outputs_def:
116116
- handle: translated_file
117117
description: "%translated-epub-file-path%"

0 commit comments

Comments
 (0)