if (FALSE) {
# Find Ollama models
ollama_info <- edge_find_ollama_models()
if (!is.null(ollama_info) && length(ollama_info$models) > 0) {
# Use first compatible model
model_path <- ollama_info$models[[1]]$path
ctx <- edge_load_model(model_path)
result <- edge_completion(ctx, "Hello", n_predict = 10)
edge_free_model(ctx)
}
}
Run the code above in your browser using DataLab