Set some hard limits on the prompt lenghts we inject
This commit is contained in:
@@ -11,10 +11,10 @@ module Card::Promptable
|
||||
<<~PROMPT
|
||||
BEGIN OF CARD #{id}
|
||||
|
||||
**Title:** #{title}
|
||||
**Title:** #{title.first(1000)}
|
||||
**Description:**
|
||||
|
||||
#{description.to_plain_text}
|
||||
#{description.to_plain_text.first(10_000)}
|
||||
|
||||
#### Metadata
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ module Comment::Promptable
|
||||
|
||||
**Content:**
|
||||
|
||||
#{body.to_plain_text}
|
||||
#{body.to_plain_text.first(5000)}
|
||||
|
||||
#### Metadata
|
||||
|
||||
|
||||
Reference in New Issue
Block a user