backend: add Backends() listing supported backend names

This commit is contained in:
Levi Neely 2026-04-13 14:45:14 +02:00
parent 269c3eacd5
commit aa32d17e81
1 changed files with 5 additions and 0 deletions

View File

@ -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 {