From 490b833aed21cde8f878643626d851cc261efa57 Mon Sep 17 00:00:00 2001 From: Bryan Lee <38807139+liby@users.noreply.github.com> Date: Fri, 7 Apr 2023 12:59:07 +0800 Subject: [PATCH] fix: remove extra symbols from translation results --- .github/ISSUE_TEMPLATE/bug-report.yml | 8 +++++--- .github/ISSUE_TEMPLATE/config.yml | 1 + .github/ISSUE_TEMPLATE/feature.yml | 24 +++++++++--------------- src/main.js | 1 + 4 files changed, 16 insertions(+), 18 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE/config.yml diff --git a/.github/ISSUE_TEMPLATE/bug-report.yml b/.github/ISSUE_TEMPLATE/bug-report.yml index f280f0c..5a0ec57 100644 --- a/.github/ISSUE_TEMPLATE/bug-report.yml +++ b/.github/ISSUE_TEMPLATE/bug-report.yml @@ -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: @@ -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 diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..ec4bb38 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1 @@ +blank_issues_enabled: false \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/feature.yml b/.github/ISSUE_TEMPLATE/feature.yml index 56cf2b8..75d3d4c 100644 --- a/.github/ISSUE_TEMPLATE/feature.yml +++ b/.github/ISSUE_TEMPLATE/feature.yml @@ -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: @@ -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: | 一句话概括你的功能建议。 @@ -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? @@ -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!" diff --git a/src/main.js b/src/main.js index 0192755..ceb208b 100644 --- a/src/main.js +++ b/src/main.js @@ -73,6 +73,7 @@ function generatePrompts(query) { """ ${query.text} """ + Result:\n ` return { systemPrompt, userPrompt };