| sdk_feature | R Documentation |
Get the current value of a feature flag.
sdk_feature(flag, default = NULL)
flag |
Name of the feature flag. |
default |
Default value if flag not set. |
The flag value.
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")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.