jcrodriguez1989/chatgpt

Tweaking parameters

IvanKrSt opened this issue · 2 comments

I am trying to tweak the get parameters, but the document that is linked does not clearly show how to do so. Some examples or explanation would be really helpful.

Hi @IvanKrSt ,
in this section of the README we state how to tweak parameters.
At the moment we can tweak just some of the parameters, please let me know if you need further parameters to be tweaked.
To set an environment variable it is just by using Sys.setenv, an example would look like this:

Sys.setenv(
  OPENAI_MODEL = "gpt-3.5-turbo",
  OPENAI_MAX_TOKENS = 256,
  OPENAI_TEMPERATURE = 1,
  OPENAI_TOP_P = 1,
  OPENAI_FREQUENCY_PENALTY = 0,
  OPENAI_PRESENCE_PENALTY = 0
)
cat(chatgpt::ask_chatgpt("What do you think about R language?"))

Best,

Is there a way to configure the code to only make calls to specific custom assistant that i have already created in the playground?