if (FALSE) {
# Requires a downloaded model (not run in checks)
setup <- edge_quick_setup("TinyLlama-1.1B")
ctx <- setup$context
if (!is.null(ctx)) {
# Start interactive chat with streaming
edge_chat_stream(ctx,
system_prompt = "You are a helpful R programming assistant.")
edge_free_model(ctx)
}
}
Run the code above in your browser using DataLab