Skip to content

Commit

Permalink
Hide the LLM selector for now
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinEtchells committed Sep 10, 2024
1 parent 1ca1e95 commit e543095
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions django_app/frontend/src/chat-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ body:has(.iai-environment-warning) main:has(.iai-chat-input) {
top: 6.5rem;
}
.iai-panel__scrollable {
max-height: calc(50vh - 12rem);
}
main:has(#llm-selector) .iai-panel__scrollable {
max-height: calc(50vh - 15rem);
}
}
Expand Down
2 changes: 2 additions & 0 deletions django_app/redbox_app/templates/chats.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ <h3 class="govuk-fieldset__heading">Documents to use</h3>
</fieldset>
</document-selector>

{# Temporarily hiding the LLM selector
<div class="iai-panel govuk-!-margin-top-5 govuk-!-padding-top-3">
<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">
Expand All @@ -73,6 +74,7 @@ <h3 class="govuk-fieldset__heading">Documents to use</h3>
{% endfor %}
</select>
</div>
#}

</div>
</div>
Expand Down
4 changes: 4 additions & 0 deletions tests/pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,10 @@ def check_a11y(self, **kwargs):
def expected_page_title(self) -> str:
return "Chats - Redbox"

@property
def selected_llm(self) -> str:
return self.page.locator("#llm-selector").input_value()

@property
def write_message(self) -> str:
return self.page.locator("#message").input_value()
Expand Down
2 changes: 2 additions & 0 deletions tests/test_journey.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ def test_user_journey(page: Page, email_address: str):
logger.debug("page: %s", chats_page)
latest_chat_response = chats_page.wait_for_latest_message()
assert latest_chat_response.text
# Commented out until we make this visible
# assert chats_page.selected_llm == "gpt-4o"

# Give user feedback
chats_page.feedback_stars = 2
Expand Down

0 comments on commit e543095

Please sign in to comment.