samterfa / openai

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

GPT4 #9

Closed czqiu closed 8 months ago

czqiu commented 8 months ago

Can I specify to use GPT 4 engine instead of GPT 3.5?

samterfa commented 8 months ago

Great question! I thought I had that in the example, but I did not. You can set the following environment variable to do so. Sys.setenv(openai_addin_model = "gpt-4").