samterfa / openai

This R package provides an SDK to the Open AI API
Other
137 stars 19 forks source link

I got error when I tried to apply the code after I set up the user ID and key #3

Closed czqiu closed 1 year ago

czqiu commented 1 year ago

library(openai) library(purrr) library(magrittr) library(dplyr)

list_models() %>% pluck('data') %>% map_dfr(compact)

Show in New Window Error in namespaceExport(ns, exports) : undefined exports: %has_args%, %has_attr%, %has_name%, on_failure<-, are_equal, assert_that, has_args, has_attr, has_extension, has_name, is.count, is.date, is.dir, is.error, is.flag, is.number, is.readable, is.scalar, is.string, is.time, is.writeable, noNA, not_empty, on_failure, see_if, validate_that

samterfa commented 1 year ago

Hi, can you restart your R session, and then try just the code below and let me know what happens?

library(openai)
library(purrr)
library(magrittr)
library(dplyr)

list_models()
czqiu commented 1 year ago

Hi Sameterfa,

I still got the same error:

[cid:502efb3b-e7ce-4933-8b17-438320420908]

Thanks Eric


From: Sam Terfa @.> Sent: Tuesday, March 21, 2023 5:27 PM To: samterfa/openai @.> Cc: Zunqiu Chen @.>; Author @.> Subject: Re: [samterfa/openai] I got error when I tried to apply the code after I set up the user ID and key (Issue #3)

Hi, can you restart your R session, and then try just the code below and let me know what happens?

library(openai) library(purrr) library(magrittr) library(dplyr)

list_models()

— Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fsamterfa%2Fopenai%2Fissues%2F3%23issuecomment-1478759701&data=05%7C01%7C%7C39e1d163c40d456a750f08db2a6c2a86%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638150416286912203%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=8kPvjPdcQ5r7crh%2FYDLxUpeG%2FL3sg41Npi5BMgK6ELE%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACBNDL4ND2BB2D6RGAZG43DW5JBNTANCNFSM6AAAAAAWCX5SNU&data=05%7C01%7C%7C39e1d163c40d456a750f08db2a6c2a86%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638150416286912203%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=t1bV774plG%2BK4QDXMrFxsu%2BNOaV7Xg776rckl8vuOjo%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.***>

samterfa commented 1 year ago

This error appears different than the last one. Can you please install the reprex package and run the following. It will put the results of running the code on your computer's clipboard. Please paste the results in your next submission. Thanks!

reprex::reprex({
library(openai)
library(purrr)
library(magrittr)
library(dplyr)

list_models()
})
samterfa commented 1 year ago

Any luck creating a reprex?