Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 01e29ca

Browse files
authored
FIX: Bump persona's examples length (#1377)
1 parent 297c64c commit 01e29ca

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

assets/javascripts/discourse/components/ai-persona-example.gjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export default class AiPersonaCollapsableExample extends Component {
4545
(if (eq pairIdx 0) "user" "model")
4646
)
4747
}}
48-
@validation="required|length:1,100"
48+
@validation="required|length:1,5000"
4949
@disabled={{@system}}
5050
as |field|
5151
>

lib/personas/summarizer.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ def examples
4141
[
4242
[
4343
"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.",
44-
"Two users are sharing their feelings toward Mondays. [user1]({resource_url}/1) hates them, while [user2]({resource_url}/2) loves them.",
44+
{
45+
summary:
46+
"Two users are sharing their feelings toward Mondays. [user1]({resource_url}/1) hates them, while [user2]({resource_url}/2) loves them.",
47+
}.to_json,
4548
],
4649
]
4750
end

0 commit comments

Comments
 (0)