Skip to content

Commit

Permalink
transition to new system prompt interface (closes #66)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpcouch committed Nov 25, 2024
1 parent 633c38d commit 91de88b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions R/pal-class.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,8 @@ Pal <- R6::R6Class(
default_args <- getOption(".pal_args", default = list())
args <- modifyList(default_args, args)

args$system_prompt <- get(
paste0(".pal_prompt_", role),
envir = pal_env()
)

Chat <- rlang::eval_bare(rlang::call2(fn, !!!args, .ns = .ns))
Chat$set_system_prompt(get(paste0(".pal_prompt_", role), envir = pal_env()))
private$Chat <- Chat

.stash_last_pal(self)
Expand Down

0 comments on commit 91de88b

Please sign in to comment.