Skip to main content

connect

Function connect 

Source
pub fn connect(
    kind: HostKind,
    url: &str,
    api_key: Option<String>,
    timeout: Duration,
) -> Result<Arc<dyn ModelHost>, HostError>
Expand description

Build the adapter for kind. Ollama takes no API key; the others send it as a bearer token.