llm_base: Set LLM API Base URL

View source: R/config.R

llm_baseR Documentation

Set LLM API Base URL

Description

Stores a base URL in the llm.api.api_base option, which chat uses as the default endpoint.

Usage

llm_base(url)

Arguments

url

Character. Base URL for the API endpoint.

Value

The previous value of the option, invisibly.

Examples

old <- llm_base("http://localhost:11434")  # 'Ollama'
llm_base(old)  # restore

llm.api documentation built on April 16, 2026, 5:08 p.m.