Skip to content

Commit 4a08b91

Browse files
committed
control group should be on single control
1 parent f59b3f7 commit 4a08b91

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

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

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -451,8 +451,8 @@ export default class PersonaEditor extends Component {
451451
@content={{I18n.t "discourse_ai.ai_persona.max_context_posts_help"}}
452452
/>
453453
</div>
454-
<div class="control-group">
455-
{{#if this.showTemperature}}
454+
{{#if this.showTemperature}}
455+
<div class="control-group">
456456
<label>{{I18n.t "discourse_ai.ai_persona.temperature"}}</label>
457457
<Input
458458
@type="number"
@@ -466,8 +466,10 @@ export default class PersonaEditor extends Component {
466466
@icon="question-circle"
467467
@content={{I18n.t "discourse_ai.ai_persona.temperature_help"}}
468468
/>
469-
{{/if}}
470-
{{#if this.showTopP}}
469+
</div>
470+
{{/if}}
471+
{{#if this.showTopP}}
472+
<div class="control-group">
471473
<label>{{I18n.t "discourse_ai.ai_persona.top_p"}}</label>
472474
<Input
473475
@type="number"
@@ -481,8 +483,8 @@ export default class PersonaEditor extends Component {
481483
@icon="question-circle"
482484
@content={{I18n.t "discourse_ai.ai_persona.top_p_help"}}
483485
/>
484-
{{/if}}
485-
</div>
486+
</div>
487+
{{/if}}
486488
{{#if this.siteSettings.ai_embeddings_enabled}}
487489
<div class="control-group">
488490
<PersonaRagUploader

0 commit comments

Comments
 (0)