Skip to contents

Returns the base URL to use for a given RegCheck client. An explicit base_url always wins, then the REGCHECK_BASE_URL environment variable, then a client-specific default: the bundled local RegCheck server (http://localhost:8000) for "ollama", and the hosted RegCheck app for the API-based clients ("groq", "openai", "deepseek").

Usage

regcheck_base_url(client = "ollama", base_url = NULL)

Arguments

client

the LLM client RegCheck should use

base_url

an explicit base URL, or NULL to use defaults

Value

the base URL with any trailing slash removed

Examples

regcheck_base_url()
#> [1] "http://localhost:8000"
regcheck_base_url(base_url = "http://localhost:11434/")
#> [1] "http://localhost:11434"