Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 12, 2024
1 parent 108ce83 commit 954b399
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
1 change: 0 additions & 1 deletion R/chat.R
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ chat <- function(prompt,
ghost_chat <- function(service = getOption("gpttools.service", "openai"),
stream = TRUE,
where = "source") {

context <- get_cursor_context()

instructions <- glue::glue(
Expand Down
1 change: 0 additions & 1 deletion R/stream-chat.R
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,3 @@ get_stream_pattern <- function(service) {
)
list(pattern = pattern, pluck = pluck)
}

6 changes: 3 additions & 3 deletions inst/retriever/app.R
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ ui <- page_fillable(
selected = getOption("gpttools.service", "openai")
),
selectInput("model", "Model",
choices = NULL
choices = NULL
),
selectInput(
"embed_model", "OpenAI Embedding Model",
Expand Down Expand Up @@ -312,8 +312,8 @@ server <- function(input, output, session) {
)
)
observe(updateSelectInput(session, "source",
choices = c("All", indices()),
selected = getOption("gpttools.sources", "All")
choices = c("All", indices()),
selected = getOption("gpttools.sources", "All")
))
observe({
toggle_popover("settings", show = FALSE)
Expand Down
17 changes: 10 additions & 7 deletions inst/settings/app.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ api_services <-
ui <- page_fillable(
theme = bs_theme(bootswatch = "litera"),
card(
card_header(bs_icon("gear", class = "ms-auto"),
"`gpttools` Settings",
bs_icon("gear", class = "ms-auto")),
card_header(
bs_icon("gear", class = "ms-auto"),
"`gpttools` Settings",
bs_icon("gear", class = "ms-auto")
),
layout_column_wrap(
card(
card_header("Data & Task", bs_icon("robot", class = "ms-auto")),
Expand Down Expand Up @@ -47,7 +49,7 @@ ui <- page_fillable(
selected = getOption("gpttools.service", "openai")
),
selectInput("model", "Model",
choices = NULL
choices = NULL
),
radioButtons(
"stream", "Stream",
Expand Down Expand Up @@ -114,7 +116,8 @@ ui <- page_fillable(
min = 0, max = 20,
value = getOption("gpttools.k_history", 4)
)
)),
)
),
actionButton("save_settings", "Save Settings", icon = icon("save"), class = "btn-primary")
)
)
Expand Down Expand Up @@ -145,8 +148,8 @@ server <- function(input, output, session) {

observe(
updateSelectInput(session, "source",
choices = c("All", indices()),
selected = getOption("gpttools.sources", "All")
choices = c("All", indices()),
selected = getOption("gpttools.sources", "All")
)
)

Expand Down

0 comments on commit 954b399

Please sign in to comment.