Skip to content

Commit

Permalink
Merge pull request #233 from MichelNivard/issue-230
Browse files Browse the repository at this point in the history
Add info tooltip to API service settings
  • Loading branch information
JamesHWade authored Oct 31, 2024
2 parents 6e97f0a + eac2f13 commit d5f2c0e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: gptstudio
Title: Use Large Language Models Directly in your Development Environment
Version: 0.4.0.9007
Version: 0.4.0.9008
Authors@R: c(
person("Michel", "Nivard", , "m.g.nivard@vu.nl", role = c("aut", "cph")),
person("James", "Wade", , "github@jameshwade.com", role = c("aut", "cre", "cph"),
Expand Down
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
- Replace curl calls with httr2. #224
- Remove magrittr pipe in favor of base pipe, require R >= 4.1 #226
- Tweak app sidebar and set min version of bsicons and httr2 #228
- Added info tooltips to the API service settings to inform users to save after modifying this section #230

## gptstudio 0.4.0

Expand Down
10 changes: 8 additions & 2 deletions R/mod_settings.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,20 @@ mod_settings_ui <- function(id, translator = create_translator()) {
icon = bsicons::bs_icon("server"),
selectInput(
inputId = ns("service"),
label = translator$t("Select API Service"),
label = tags$span(
translator$t("Select API Service"),
bsicons::bs_icon("info-circle") |> bslib::tooltip("Save after modifying!")
),
choices = api_services,
selected = getOption("gptstudio.service"),
width = "100%"
),
selectInput(
inputId = ns("model"),
label = translator$t("Chat Model"),
label = tags$span(
translator$t("Chat Model"),
bsicons::bs_icon("info-circle") |> bslib::tooltip("Save after modifying!")
),
choices = getOption("gptstudio.model"),
width = "100%",
selected = getOption("gptstudio.model")
Expand Down

0 comments on commit d5f2c0e

Please sign in to comment.