Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions assets/javascripts/discourse/components/ai-persona-editor.gjs
Original file line number Diff line number Diff line change
Expand Up @@ -283,25 +283,6 @@ export default class PersonaEditor extends Component {
/>
<div class="ai-persona-editor" {{didInsert this.updateAllGroups @model.id}}>
<Form @onSubmit={{this.save}} @data={{this.formData}} as |form data|>
<form.Field
@name="enabled"
@title={{i18n "discourse_ai.ai_persona.enabled"}}
@onSet={{fn this.toggleEnabled data}}
as |field|
>
<field.Toggle />
</form.Field>

<form.Field
@name="priority"
@title={{i18n "discourse_ai.ai_persona.priority"}}
@onSet={{fn this.togglePriority data}}
@tooltip={{i18n "discourse_ai.ai_persona.priority_help"}}
as |field|
>
<field.Toggle />
</form.Field>

<form.Field
@name="name"
@title={{i18n "discourse_ai.ai_persona.name"}}
Expand Down Expand Up @@ -562,6 +543,25 @@ export default class PersonaEditor extends Component {
{{/if}}

<form.Section @title={{i18n "discourse_ai.ai_persona.ai_bot.title"}}>
<form.Field
@name="enabled"
@title={{i18n "discourse_ai.ai_persona.enabled"}}
@onSet={{fn this.toggleEnabled data}}
as |field|
>
<field.Toggle />
</form.Field>

<form.Field
@name="priority"
@title={{i18n "discourse_ai.ai_persona.priority"}}
@onSet={{fn this.togglePriority data}}
@tooltip={{i18n "discourse_ai.ai_persona.priority_help"}}
as |field|
>
<field.Toggle />
</form.Field>

{{#if @model.isNew}}
<div>{{i18n "discourse_ai.ai_persona.ai_bot.save_first"}}</div>
{{else}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default class AiPersonaListEditor extends Component {
<thead>
<tr>
<th>{{i18n "discourse_ai.ai_persona.name"}}</th>
<th>{{i18n "discourse_ai.ai_persona.enabled"}}</th>
<th>{{i18n "discourse_ai.ai_persona.list.enabled"}}</th>
<th></th>
</tr>
</thead>
Expand Down
5 changes: 4 additions & 1 deletion config/locales/client.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -307,9 +307,12 @@ en:
rag_conversation_chunks_help: "The number of chunks to use for the RAG model searches. Increase to increase the amount of context the AI can use."
persona_description: "Personas are a powerful feature that allows you to customize the behavior of the AI engine in your Discourse forum. They act as a 'system message' that guides the AI's responses and interactions, helping to create a more personalized and engaging user experience."

list:
enabled: "AI Bot?"

ai_bot:
title: "AI bot options"
save_first: "AI bot options will become available once you save the persona."
save_first: "More AI bot options will become available once you save the persona."

rag:
title: "RAG"
Expand Down