# \donttest{
if (interactive()) {
# Check if shared session is enabled
if (sdk_feature("use_shared_session")) {
session <- create_shared_session(model = "openai:gpt-4o")
}
} else {
session <- create_chat_session(model = "openai:gpt-4o")
}
# }
Run the code above in your browser using DataLab