From aa32d17e818f89361c8fd6bf61ced66dee09b42f Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Mon, 13 Apr 2026 14:45:14 +0200 Subject: [PATCH] backend: add Backends() listing supported backend names --- pkg/backend/new.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/backend/new.go b/pkg/backend/new.go index 50740ed..b9b71fc 100644 --- a/pkg/backend/new.go +++ b/pkg/backend/new.go @@ -86,6 +86,11 @@ func New() (Backend, error) { } } +// Backends returns the list of supported backend names. +func Backends() []string { + return []string{"ollama", "openai", "openrouter", "anthropic", "copilot", "kiro"} +} + // openAIName derives a short backend label from the OLLIE_BACKEND value and // the base URL, so openai-compatible endpoints self-identify correctly. func openAIName(which, url string) string {