mirror of
https://github.com/p-e-w/heretic.git
synced 2026-12-03 18:42:57 +07:00
[GH-ISSUE #275] feat: hot-reloadable LLM judge endpoint config #155
Labels
No labels
bug
enhancement
enhancement
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
p-e-w/heretic#155
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @aider4ryder on GitHub (Apr 4, 2026).
Original GitHub issue: https://github.com/p-e-w/heretic/issues/275
Summary
Make the LLM judge endpoint configuration hot-reloadable from
config.toml, so the backend can be switched between Ollama, vLLM, or cloud APIs without restarting heretic.Current State
LLM_JUDGE_API_KEYenv var (static, requires restart to change)judge.toml/judge.default.tomlalready exist — judge config is partially separatedProposed Design
Add a
[llm_judge]section toconfig.toml:```toml
[llm_judge]
base_url = "http://localhost:11434/v1" # Ollama default
api_key = "sk-..."
model = "gemma3:27b"
```
Hot-reload behavior
config.tomlmtime before each trial (or every N trials)[llm_judge]section and log the change/v1/chat/completionsformatExample usage
```bash
Start heretic with Ollama judge
uv run heretic
Mid-run: switch to vLLM for faster judge (edit config.toml)
base_url = "http://localhost:8100/v1"
model = "gemma3:27b"
Mid-run: switch to cloud API for higher quality judge
base_url = "https://api.x.ai/v1"
model = "grok-4"
```
Motivation
@aider4ryder commented on GitHub (Apr 4, 2026):
Opened on wrong repo — moving to fork.