Skip to contents

R port of morie.llm.ask. Tries each provider in priority order; on HTTP/timeout failure falls through to the next, and finally to a static local help string.

Usage

morie_llm_ask(
  prompt,
  context = NULL,
  model = NULL,
  provider = NULL,
  system_prompt = NULL,
  timeout = 120
)

Arguments

prompt

User question or instruction.

context

Optional named list injected as text into the system prompt.

model

Optional model override.

provider

Optional provider override (ollama/gemini/api/openai/local). NULL = auto-detect.

system_prompt

Optional full system-prompt override.

timeout

HTTP timeout in seconds. Default 120.

Value

Character scalar response text, or local-fallback text when all providers fail.