Cargo Features
[dependencies]
llm = { version = "1.3.4", default-features = false, features = ["full", "default-tls", "rustls-tls", "openai", "anthropic", "ollama", "deepseek", "xai", "phind", "google", "groq", "azure_openai", "cohere", "mistral", "openrouter", "cli", "api", "elevenlabs", "agent", "rodio", "logging"] }
- default = cli, default-tls
-
These default features are set whenever
llm
is added without
somewhere in the dependency tree.default-features = false - full cli = agent, anthropic, api, azure_openai, cohere, deepseek, elevenlabs, google, groq, mistral, ollama, openai, openrouter, phind, xai
- default-tls default
-
Enables default-tls of reqwest
reqwest:
Note: this doesn't enable the 'native-tls' feature, which adds specific functionality for it.
- rustls-tls
-
Enables rustls-tls of reqwest
- openai full?
-
Affects
backends::openai
… - anthropic full?
-
Affects
backends::anthropic
… - ollama full?
-
Affects
backends::ollama
… - deepseek full?
-
Affects
backends::deepseek
… - xai full?
-
Affects
backends::xai
… - phind full?
-
Affects
backends::phind
… - google full?
-
Affects
backends::google
… - groq full?
-
Affects
backends::groq
… - azure_openai full?
-
Affects
backends::azure_openai
… - cohere full?
-
Affects
backends::cohere
… - mistral full?
-
Affects
backends::mistral
… - openrouter full?
-
Affects
backends::openrouter
… - cli default = full
-
Enables clap, colored, rustyline ^15, and spinners
Required by the binary
- api full?
-
Enables axum ^0.7, tower-http ^0.5, and uuid
Affects
llm::api
… - elevenlabs full?
-
Affects
backends::elevenlabs
… - agent full?
-
Affects
agent::builder
,llm::agent
… - rodio
-
Enables rodio ^0.20.0
- logging
-
Enables env_logger