Skip to content

Commit

Permalink
fix: remove extra symbols from translation results
Browse files Browse the repository at this point in the history
  • Loading branch information
liby committed Apr 7, 2023
1 parent 34beaf8 commit 490b833
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 18 deletions.
8 changes: 5 additions & 3 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Bug report
description: Problems with the software
name: "Bug report"
description: "Problems with the software"
title: '[Bug] {{请输入标题,不要留空 - Please enter a title, do not leave it blank.}}'
labels: ['bug']
body:
Expand Down Expand Up @@ -68,7 +68,9 @@ body:
attributes:
label: Bob version
description: |
请提供您正在使用的 Bob 版本。Please provide the version of the Bob you are using. For example, `Bob 1.6.0 [103]`.
请提供您正在使用的 Bob 版本。
Please provide the version of the Bob you are using. For example, `Bob 1.6.0 [103]`.
validations:
required: true
- type: textarea
Expand Down
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: false
24 changes: 9 additions & 15 deletions .github/ISSUE_TEMPLATE/feature.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
name: Feature
description: Add new feature, improve code, and more
name: "Feature"
description: "Add new feature, improve code, and more"
labels: [ "enhancement" ]
body:
- type: markdown
attributes:
value: |
**非常感谢您的功能建议!**
**Thank you very much for your feature proposal!**
**非常感谢您的功能建议!Thank you very much for your feature proposal!**
- type: checkboxes
attributes:
Expand All @@ -16,14 +15,12 @@ body:
Please search [issues](https://github.com/yetone/openai-translator/issues) to check if your issue has already been reported.
options:
- label: |
在 [issues](https://github.com/yetone/openai-translator/issues) 中没有找到类似的内容。
I searched in the [issues](https://github.com/yetone/openai-translator/issues) and found nothing similar.
- label: >
在 [issues](https://github.com/yetone/openai-translator/issues) 中没有找到类似的内容。I searched in the [issues](https://github.com/yetone/openai-translator/issues) and found nothing similar.
required: true
- type: input
attributes:
label: feature
label: Feature
description: |
一句话概括你的功能建议。
Expand All @@ -43,9 +40,9 @@ body:
attributes:
label: Solution
description: |
描述建议的解决方案。
描述建议的解决方案。
Describe the proposed solution. (if you have any additional information, please add it here.)
Describe the proposed solution. (if you have any additional information, please add it here.)
- type: textarea
attributes:
label: 还有其他内容吗?Anything else?
Expand All @@ -60,8 +57,5 @@ body:
- label: 我愿意提供 PR! I'm willing to submit a PR!
- type: markdown
attributes:
value: |
"非常感谢您的功能建议!"

"Thank you very much for your feature proposal!"
value: "非常感谢您的功能建议!Thank you very much for your feature proposal!"

1 change: 1 addition & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ function generatePrompts(query) {
"""
${query.text}
"""
Result:\n
`

return { systemPrompt, userPrompt };
Expand Down

0 comments on commit 490b833

Please sign in to comment.