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 4b4583e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 15 deletions.
4 changes: 3 additions & 1 deletion .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
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
22 changes: 8 additions & 14 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,10 +15,8 @@ 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:
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 4b4583e

Please sign in to comment.