irudnyts / openai

An R package-wrapper around OpenAI API
https://irudnyts.github.io/openai/
Other
164 stars 28 forks source link

Allow for all other models for Chat endpoint (e.g., GPT-4) #35

Closed irudnyts closed 1 year ago

irudnyts commented 1 year ago

See the list of models here: https://platform.openai.com/docs/models/model-endpoint-compatibility

zhaohongxin0 commented 1 year ago

Needs to update the packages?

Error in match.arg(model) : 'arg' should be one of “gpt-3.5-turbo”, “gpt-3.5-turbo-0301”

irudnyts commented 1 year ago

@zhaohongxin0 Yep, and since version 0.4.1 is on CRAN already, you can simply install.packages("openai") to update.