Learn R Programming

air (version 0.2.2)

set_model: Securely stores your your OpenAI API key to your OS keyring.

Description

Securely stores your your OpenAI API key to your OS keyring.

Usage

set_model(model = "gpt-4")

Value

No return value; only side-effect and message printed to console

Arguments

model

String of your preferred model; defaults to 'gpt-4'.

Examples

Run this code
# CAREFUL: Changes your OpenAI API model in your OS keyring
if (FALSE) {
set_model("gpt-4-1106-preview")
set_model() # use default
}

Run the code above in your browser using DataLab