pub enum LlmProvider {
OpenAI,
Anthropic,
Ollama,
Bedrock,
Custom,
}Expand description
Which LLM provider to use for extraction.
Variants§
OpenAI
Anthropic
Ollama
Bedrock
AWS Bedrock (Anthropic Claude on Bedrock) signed with SigV4. Uses AWS
credentials from the environment, not an API key. The endpoint is built
per-request from ExtractionConfig::region plus the model id, so
default_url is empty for this provider. Requires the bedrock feature.
Custom
Implementations§
Source§impl LlmProvider
impl LlmProvider
Sourcepub fn default_url(&self) -> &str
pub fn default_url(&self) -> &str
Default API URL for this provider.
Bedrock returns an empty string: its endpoint is region-specific and is
built per-request from ExtractionConfig::region and the model id
(https://bedrock-runtime.{region}.amazonaws.com/model/{model}/invoke).
Sourcepub fn default_model(&self) -> &str
pub fn default_model(&self) -> &str
Default extraction model for this provider (cheap, high-volume).
Sourcepub fn default_reader_model(&self) -> &str
pub fn default_reader_model(&self) -> &str
Default reader model for this provider (smart, low-volume).
Trait Implementations§
Source§impl Clone for LlmProvider
impl Clone for LlmProvider
Source§fn clone(&self) -> LlmProvider
fn clone(&self) -> LlmProvider
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LlmProvider
impl Debug for LlmProvider
Source§impl<'de> Deserialize<'de> for LlmProvider
impl<'de> Deserialize<'de> for LlmProvider
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LlmProvider
Source§impl PartialEq for LlmProvider
impl PartialEq for LlmProvider
Source§impl Serialize for LlmProvider
impl Serialize for LlmProvider
impl StructuralPartialEq for LlmProvider
Auto Trait Implementations§
impl Freeze for LlmProvider
impl RefUnwindSafe for LlmProvider
impl Send for LlmProvider
impl Sync for LlmProvider
impl Unpin for LlmProvider
impl UnsafeUnpin for LlmProvider
impl UnwindSafe for LlmProvider
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more