Skip to content

Commit

Permalink
fix: cache of OpenAI's reply stored in JSON format
Browse files Browse the repository at this point in the history
  • Loading branch information
laresbernardo committed Sep 12, 2024
1 parent 12d381c commit ea753e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: lares
Type: Package
Title: Analytics & Machine Learning Sidekick
Version: 5.2.8.9005
Version: 5.2.8.9006
Authors@R: c(
person("Bernardo", "Lares", , "laresbernardo@gmail.com", c("aut", "cre")))
Maintainer: Bernardo Lares <laresbernardo@gmail.com>
Expand Down
2 changes: 1 addition & 1 deletion R/chatgpt.R
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ gpt_ask <- function(ask,

# Save historical answers
cache <- bind_rows(
data.frame(ts = ts, reply = ret),
data.frame(ts = ts, reply = toJSON(ret)),
cache_read("GPT_HIST_REPLY", quiet = TRUE, ...)
) %>%
as_tibble()
Expand Down

0 comments on commit ea753e0

Please sign in to comment.