Skip to content

Commit

Permalink
fix(lib): inc short content length
Browse files Browse the repository at this point in the history
  • Loading branch information
snowyu committed Aug 29, 2024
1 parent a724269 commit 6b0d6a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/translator.ai.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
type: lib
version: 0.1.0
version: 0.1.1
name: "Translator"
description: |-
Translate the content or a file to the target language.
Expand Down Expand Up @@ -66,7 +66,7 @@ parameters:
lang: "?=this.$detectLang(content.slice(0, 120))"
- user: |-
Output high-quality translation result before the completion delimiter "{{completion_delimiter}}".
{%- if content.length > 50 -%}
{%- if content.length > 100 -%}
Translate the following content {% if lang %}from {{lang}} {% endif %}to {{target}}.
---
{{content|trim}}
Expand Down

0 comments on commit 6b0d6a7

Please sign in to comment.