Skip to main content

parse_backend

Function parse_backend 

Source
pub fn parse_backend(s: &str) -> (BackendType, &'static str)
Expand description

Maps a backend name string to a BackendType and its default endpoint.

Unrecognized strings produce a warning on stderr and fall back to ollama-native. Valid values: ollama-native, openai-compat, anthropic, local-embedded.