Skip to content

Commit 48868f1

Browse files
authored
Update v2.docs.translate.dir.yaml
1 parent 282a2f7 commit 48868f1

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/v2.docs.translate.dir.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,17 @@ jobs:
4141
git push -u origin $BRANCH_NAME
4242
4343
- name: Run GPT Translate
44-
uses: BohuTANG/gpt-translate-refine@v1.2.2
44+
uses: BohuTANG/gpt-translate-refine@v1.3.0
4545
with:
46-
github_token: ${{ secrets.GITHUB_TOKEN }}
4746
api_key: ${{ secrets.API_KEY }}
4847
base_url: ${{ secrets.BASE_URL }}
4948
ai_model: ${{ secrets.LLM_MODEL }}
5049
refine_ai_model: ${{ secrets.REFINE_LLM_MODEL }}
51-
input_files: "${{ github.event.inputs.path }}"
52-
output_files: "docs/cn/**/*.{md,json}"
5350
target_lang: "Simplified-Chinese"
54-
prompt: ".github/workflows/prompt.txt"
55-
refine_prompt: ".github/workflows/refine_prompt.txt"
51+
system_prompt: ".github/workflows/prompt.txt"
52+
refine_system_prompt: ".github/workflows/refine_prompt.txt"
5653
TEMPERATURE: ${{ secrets.TEMPERATURE }}
5754
REFINE_TEMPERATURE: ${{ secrets.REFINE_TEMPERATURE }}
58-
refine_enabled: "true"
55+
input_files: "${{ github.event.inputs.path }}"
56+
output_files: "docs/cn/**/*.{md,json}"
5957
commit_message: "Add LLM Translations"

0 commit comments

Comments
 (0)