feat: bump majordomo + support llama-swap(s) provider spellings
Build & push image / build-and-push (pull_request) Successful in 6s
Adversarial Review (Gadfly) / review (pull_request) Successful in 6m8s

- Bump majordomo to the latest build (...225659).
- Accept every llama-swap spelling in gadfly's endpoint switches —
  "llama-swap"/"llama-swaps" (mirroring majordomo's DSN schemes: http vs
  https TLS) plus the un-hyphenated "llamaswap"/"llamaswaps" — in both the
  GADFLY_PROVIDER+GADFLY_BASE_URL override and the
  GADFLY_ENDPOINT_<NAME>="llama-swap|url[|key]" form. Previously only the
  un-hyphenated "llamaswap" matched, so a majordomo-canonical "llama-swap"
  hit "unknown provider".
- The LLM_* DSN path (llama-swap:// / llama-swaps://) already works via
  majordomo.Parse — no gadfly change needed there.
- README providers table + error messages updated; new endpointProvider
  alias tests.

gofmt clean, go vet quiet, go test -race green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-27 19:09:19 -04:00
parent a4cdc905c9
commit a59e61f93c
5 changed files with 26 additions and 9 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ majordomo failover chain / alias) is used verbatim.
| **Ollama Cloud** (default) | `ollama-cloud` | `OLLAMA_API_KEY` / `OLLAMA_CLOUD_API_KEY` | ✅ in active use |
| **Local Ollama** | `ollama` | none (`OLLAMA_HOST` or `GADFLY_BASE_URL` for a remote daemon) | ✅ tested |
| **[foreman](https://gitea.stevedudenhoeffer.com/steve/foreman)** (native-Ollama queue daemon) | `foreman` + `GADFLY_BASE_URL`, or a `GADFLY_ENDPOINT_*` / `LLM_*` `foreman://` entry | optional bearer (via the endpoint/DSN) | ✅ native-Ollama path |
| **llamaswap** (llama-swap model router) | `llamaswap` + `GADFLY_BASE_URL`, or a `GADFLY_ENDPOINT_*` entry | optional bearer | ⚠️ wired, **untested** |
| **[llama-swap](https://github.com/mostlygeek/llama-swap)** (model-swapping proxy) | `llama-swap`/`llama-swaps` (+ `GADFLY_BASE_URL` or a `GADFLY_ENDPOINT_*` entry), or an `LLM_*` `llama-swap://` / `llama-swaps://` DSN | optional bearer | ⚠️ wired, **untested** |
| **OpenAI-compatible** (incl. local Ollama's `/v1`) | `openai` + `GADFLY_BASE_URL` | `OPENAI_API_KEY` (any non-empty for Ollama) | ✅ tested against Ollama |
| **OpenAI** | `openai` | `OPENAI_API_KEY` | ⚠️ wired, **untested** |
| **Anthropic** | `anthropic` | `ANTHROPIC_API_KEY` | ⚠️ wired, **untested** |