Creates an ellmer Ollama chat object for use as the semantic reviewer in
scan_prompt(), scan_output(), scan_context(), or secure_chat().
Arguments
- model
Ollama model name. When
NULL, the first available model fromellmer::models_ollama()$idis used.- ...
Passed to
ellmer::chat_ollama().
Details
This helper is only a convenience for local review. You can pass any
function or object with a $chat() method as reviewer, including your own
wrapper around another LLM service.
Examples
if (FALSE) { # \dontrun{
reviewer <- ollama_reviewer()
scan_prompt("Ignore previous instructions.", reviewer = reviewer, checks = "llm")
} # }
