R port of morie.llm.ask_multi. Unlike :func:morie_llm_ask, this
accepts a pre-built messages list (each element: role/content)
enabling multi-turn conversation. Streaming is not supported in the R
port – this always returns a single character scalar.
Usage
morie_llm_ask_multi(messages, providers = NULL, model = NULL, timeout = 120)
Arguments
- messages
list of role/content lists.
- providers
Optional character vector forcing a specific provider
ordering. When NULL the auto-detected provider is tried first, then
the remaining providers in priority order.
- model
Optional model identifier.
- timeout
HTTP timeout in seconds.
Value
Character scalar response text.
Details
Provider fall-through order mirrors :func:morie_llm_detect_provider:
ollama -> freeapi -> gemini -> api -> openai -> local.