Skip to content

Commit

Permalink
Explicitly set value attributes on LLM selector, so "(default)" isn't…
Browse files Browse the repository at this point in the history
… passed on
  • Loading branch information
KevinEtchells authored and George Burton committed Sep 7, 2024
1 parent 7932401 commit a6c20e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_app/redbox_app/templates/chats.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ <h3 class="govuk-fieldset__heading">Documents to use</h3>
<label class="govuk-body-s govuk-!-font-weight-bold" for="llm-selector">Model</label>
<select id="llm-selector" name="llm" class="govuk-select govuk-!-margin-top-1">
{% for option in llm_options %}
<option {% if option.selected %}selected{% endif %}>{{ option.name }}{% if option.default %} (default){% endif %}</option>
<option value="{{ option.name }}" {% if option.selected %}selected{% endif %}>{{ option.name }}{% if option.default %} (default){% endif %}</option>
{% endfor %}
</select>
</div>
Expand Down

0 comments on commit a6c20e8

Please sign in to comment.