chattr icon indicating copy to clipboard operation
chattr copied to clipboard

chattr Error in UseMethod("ch_test") : no applicable method for 'ch_test' applied to an object of class "c('ch_', 'ch_model')"

Open MilosZarkovic opened this issue 1 year ago • 2 comments

I am trying to use chattr in Rstudio (2024.09.0 Build 375) and R 4.4.1

However, I got the following errors:

library(chattr)

chatGPT.api.key="XXXXXXXXXXXXXXXXXXX"

Sys.setenv("OPENAI_API_KEY" = chatGPT.api.key)

chattr_defaults()

── chattr ──────────────────────────────────────────────────────────────────────

── Defaults for: Default ──

── Prompt:

── Model • Provider: • Path/URL: • Model: • Label:

── Context: Max Data Files: Max Data Frames

chattr_test()

Error in UseMethod("ch_test") : no applicable method for 'ch_test' applied to an object of class "c('ch_', 'ch_model')"

chattr_app()

Error in [[.default(possible, 1) : subscript out of bounds

Thanks Miloš

MilosZarkovic avatar Oct 05 '24 16:10 MilosZarkovic

Same issue!

mancebral avatar Nov 04 '24 21:11 mancebral

Hi all, yes, I plan to offload ChatGPT's backend to https://github.com/tidyverse/elmer once it comes out. This will provide a more consistent interface

edgararuiz avatar Nov 08 '24 18:11 edgararuiz

Integration with OpenAI via ellmer is now available in version 0.3.0 published today to CRAN. Thank you

edgararuiz avatar May 28 '25 19:05 edgararuiz