base
base
¶
Base types and configuration for LLM providers.
LLMClient
¶
Bases: Protocol
Protocol that all LLM providers must satisfy.
Returns OpenAI-format dicts everywhere so existing parsing code works unchanged regardless of provider.
Source code in autochecklist/providers/base.py
ProviderConfig
dataclass
¶
Configuration preset for an LLM provider.
Source code in autochecklist/providers/base.py
get_provider_config(provider, base_url=None)
¶
Get provider config with optional overrides.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
provider
|
str
|
Provider name ("openrouter", "openai", "vllm") |
required |
base_url
|
Optional[str]
|
Override the default base URL |
None
|
Returns:
| Type | Description |
|---|---|
ProviderConfig
|
ProviderConfig with overrides applied |