Closed CNUlichao closed 3 months ago
Hi @CNUlichao , can you confirm that you're using the latest version of chattr
? It should be 0.0.9012
Yes, my chattr version is 0.0.9012.
And when I run chattr_test(), it appears the Error in if (nchar(out) > 0) { : the condition has length > 1 like this issue
https://github.com/mlverse/chattr/issues/68
chattr() function is no problem.
What happens when you run this?
library(httr2)
request("https://api.openai.com/v1/models") %>%
req_auth_bearer_token(Sys.getenv("OPENAI_API_KEY")) %>%
req_perform()
when I run the code, it returns the response status is ok. And the chattr version is 0.1.0
library(httr2)
request("https://api.openai.com/v1/models") %>%
req_auth_bearer_token(Sys.getenv("OPENAI_API_KEY")) %>%
req_perform()
Hi @CNUlichao , would you mind trying again with the dev version? This should also return any errors from the API that could have been previously not displayed:
pak::pak("mlverse/chattr")
Hi @CNUlichao , would you mind trying again with the dev version? This should also return any errors from the API that could have been previously not displayed:
pak::pak("mlverse/chattr")
It seems ok now, and the version of chattr is 0.1.0.9001.
Great! Thanks for letting me know @CNUlichao . I'll go ahead and close the issue.
when I run chattr_app() in RStudio,the gpt window in Viewer disappears and the error appears
my code: