Skip to content

Commit 9f5fc56

Browse files
authored
chore(ci): switch to deepseek (#854)
Signed-off-by: Chojan Shang <[email protected]>
1 parent 5b9829e commit 9f5fc56

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.github/workflows/docs-commit.translate.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ jobs:
3535
uses: 3ru/gpt-translate@master
3636
with:
3737
apikey: ${{ secrets.OPENAI_API_KEY }}
38-
model: "gpt-4-turbo-preview"
38+
model: "deepseek-chat"
3939
inputFiles: '${{ steps.changed_files.outputs.files }}'
4040
outputFiles: 'docs/cn/**/*.md'
4141
languages: 'Simplified-Chinese'
4242
prompt: "You are a translation engine that has knowledge of databases and is familiar with SQL, HTML and Markdown syntax. \ Databend is a cloud-native data warehouse and an alternative to Snowflake. \ I am translating the Databend documentation for helping users.\ Translate the Markdown content I'll paste later into {targetLanguage}.\ You must strictly follow the rules below.\ - Never change the Markdown markup structure. Don't add or remove links. Do not change any URL.\ - Never change the contents of code blocks even if they appear to have a bug.\ - Always preserve the original line breaks. Do not add or remove blank lines.\ - Never touch the permalink such as `{/*examples*/}` at the end of each heading.\ - Never touch HTML-like tags such as `<Notes>`.\ - Correctly format the document for best rendering."
43+
basePath: "https://api.deepseek.com"

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,10 @@ jobs:
4444
uses: 3ru/gpt-translate@master
4545
with:
4646
apikey: ${{ secrets.OPENAI_API_KEY }}
47-
model: "gpt-4-turbo-preview"
47+
model: "deepseek-chat"
4848
inputFiles: '${{ steps.all_input_files.outputs.files }}'
49-
outputFiles: 'docs/cn/**/*.{md,json}'
49+
outputFiles: 'docs/cn/**/*.md'
5050
languages: 'Simplified-Chinese'
5151
prompt: "You are a translation engine that has knowledge of databases and is familiar with SQL, HTML and Markdown syntax. \ Databend is a cloud-native data warehouse and an alternative to Snowflake. \ I am translating the Databend documentation for helping users.\ Translate the Markdown content I'll paste later into {targetLanguage}.\ You must strictly follow the rules below.\ - Never change the Markdown markup structure. Don't add or remove links. Do not change any URL.\ - Never change the contents of code blocks even if they appear to have a bug.\ - Always preserve the original line breaks. Do not add or remove blank lines.\ - Never touch the permalink such as `{/*examples*/}` at the end of each heading.\ - Never touch HTML-like tags such as `<Notes>`.\ - Correctly format the document for best rendering."
5252
token: ${{ secrets.GITHUB_TOKEN }}
53+
basePath: "https://api.deepseek.com"

.github/workflows/docs.translate.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@ jobs:
1717
uses: 3ru/gpt-translate@master
1818
with:
1919
apikey: ${{ secrets.OPENAI_API_KEY }}
20-
model: "gpt-4-turbo-preview"
21-
prompt: "You are a translation engine that has knowledge of databases and is familiar with SQL, HTML and Markdown syntax. \ Databend is a cloud-native data warehouse and an alternative to Snowflake. \ I am translating the Databend documentation for helping users.\ Translate the Markdown content I'll paste later into {targetLanguage}.\ You must strictly follow the rules below.\ - Never change the Markdown markup structure. Don't add or remove links. Do not change any URL.\ - Never change the contents of code blocks even if they appear to have a bug.\ - Always preserve the original line breaks. Do not add or remove blank lines.\ - Never touch the permalink such as `{/*examples*/}` at the end of each heading.\ - Never touch HTML-like tags such as `<Notes>`.\ - Correctly format the document for best rendering."
20+
model: "deepseek-chat"
21+
prompt: "You are a translation engine that has knowledge of databases and is familiar with SQL, HTML and Markdown syntax. \ Databend is a cloud-native data warehouse and an alternative to Snowflake. \ I am translating the Databend documentation for helping users.\ Translate the Markdown content I'll paste later into {targetLanguage}.\ You must strictly follow the rules below.\ - Never change the Markdown markup structure. Don't add or remove links. Do not change any URL.\ - Never change the contents of code blocks even if they appear to have a bug.\ - Always preserve the original line breaks. Do not add or remove blank lines.\ - Never touch the permalink such as `{/*examples*/}` at the end of each heading.\ - Never touch HTML-like tags such as `<Notes>`.\ - Correctly format the document for best rendering."
22+
basePath: "https://api.deepseek.com"

0 commit comments

Comments
 (0)