Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: chattr
Title: Interact with Large Language Models in 'RStudio'
Version: 0.3.0
Version: 0.3.0.9000
Authors@R: c(
person("Edgar", "Ruiz", , "edgar@posit.co", role = c("aut", "cre")),
person(given = "Posit Software, PBC", role = c("cph", "fnd"))
Expand All @@ -22,7 +22,7 @@ Imports:
lifecycle,
processx,
config,
ellmer (>= 0.2.0),
ellmer (>= 0.3.0),
purrr,
rlang,
bslib,
Expand Down
2 changes: 1 addition & 1 deletion R/backend-ellmer.R
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ ch_ellmer_history <- function(x) {
ellmer::Turn(
role = .x$role,
contents = list(ellmer::ContentText(.x$content)),
tokens = .x$tokens %||% c(0, 0)
tokens = .x$tokens %||% c(0, 0, 0)
)
}
)
Expand Down
12 changes: 6 additions & 6 deletions tests/testthat/_snaps/app-ui.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
[4] " <div style=\"top:0px;left:0.1px;width:100%;position:fixed;cursor:inherit; z-index: 10;background-color: #E1E2E5;\">"
[5] " <div class=\"row\">"
[6] " <div class=\"col-sm-11\" style=\"width: 85%;\">"
[7] " <div class=\"form-group shiny-input-container\" style=\"width: 100%;\">"
[7] " <div class=\"shiny-input-textarea form-group shiny-input-container\" style=\"width:100%;\">"
[8] " <label class=\"control-label shiny-label-null\" for=\"prompt\" id=\"prompt-label\"></label>"
[9] " <textarea id=\"prompt\" class=\"shiny-input-textarea form-control\" style=\"width:100%;resize:none;\"></textarea>"
[9] " <textarea id=\"prompt\" class=\"form-control\" style=\"width:100%;resize:none;\" data-update-on=\"change\"></textarea>"
[10] " </div>"
[11] " </div>"
[12] " <div class=\"col-sm-1\" style=\"width: 15%;\">"
Expand Down Expand Up @@ -54,19 +54,19 @@
[4] " <div class=\"modal-body\">"
[5] " <p>Save / Load Chat</p>"
[6] " <hr/>"
[7] " <div class=\"form-group shiny-input-container\">"
[7] " <div class=\"shiny-input-textarea form-group shiny-input-container\">"
[8] " <label class=\"control-label\" id=\"prompt2-label\" for=\"prompt2\">Prompt</label>"
[9] " <textarea id=\"prompt2\" class=\"shiny-input-textarea form-control\">For code output, use RMarkdown code chunks"
[9] " <textarea id=\"prompt2\" class=\"form-control\" data-update-on=\"change\">For code output, use RMarkdown code chunks"
[10] "Avoid all code chunk options</textarea>"
[11] " </div>"
[12] " <br/>"
[13] " <div class=\"form-group shiny-input-container\">"
[14] " <label class=\"control-label\" id=\"i_data-label\" for=\"i_data\">Max Data Frames</label>"
[15] " <input id=\"i_data\" type=\"text\" class=\"shiny-input-text form-control\" value=\"0\"/>"
[15] " <input id=\"i_data\" type=\"text\" class=\"shiny-input-text form-control\" value=\"0\" data-update-on=\"change\"/>"
[16] " </div>"
[17] " <div class=\"form-group shiny-input-container\">"
[18] " <label class=\"control-label\" id=\"i_files-label\" for=\"i_files\">Max Data Files</label>"
[19] " <input id=\"i_files\" type=\"text\" class=\"shiny-input-text form-control\" value=\"0\"/>"
[19] " <input id=\"i_files\" type=\"text\" class=\"shiny-input-text form-control\" value=\"0\" data-update-on=\"change\"/>"
[20] " </div>"
[21] " <div class=\"form-group shiny-input-container\">"
[22] " <div class=\"checkbox\">"
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/chattr-use.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@

-- chattr
* Provider: Anthropic
* Model: claude-3-7-sonnet-latest
* Label: claude-3-7-sonnet-latest (Anthropic)
* Model: claude-sonnet-4-20250514
* Label: claude-sonnet-4-20250514 (Anthropic)

2 changes: 1 addition & 1 deletion tests/testthat/test-app-server.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ test_that("Testing the function directly", {
)
expect_null(
shiny::testServer(app_server, {
session$setInputs(open = TRUE)
#session$setInputs(open = TRUE)
})
)
expect_null(
Expand Down
Loading