FIX: Bump persona's examples length (#1377)

This commit is contained in:
Roman Rizzi 2025-05-28 14:01:44 -03:00 committed by GitHub
parent 297c64c3b8
commit 01e29ca5d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View File

@ -45,7 +45,7 @@ export default class AiPersonaCollapsableExample extends Component {
(if (eq pairIdx 0) "user" "model")
)
}}
@validation="required|length:1,100"
@validation="required|length:1,5000"
@disabled={{@system}}
as |field|
>

View File

@ -41,7 +41,10 @@ module DiscourseAi
[
[
"Here are the posts inside <input></input> XML tags:\n\n<input>1) user1 said: I love Mondays 2) user2 said: I hate Mondays</input>\n\nGenerate a concise, coherent summary of the text above maintaining the original language.",
"Two users are sharing their feelings toward Mondays. [user1]({resource_url}/1) hates them, while [user2]({resource_url}/2) loves them.",
{
summary:
"Two users are sharing their feelings toward Mondays. [user1]({resource_url}/1) hates them, while [user2]({resource_url}/2) loves them.",
}.to_json,
],
]
end