Skip to main content

open_driver

Function open_driver 

Source
pub fn open_driver(
    model: &ModelConfig,
) -> Result<(Arc<dyn ModelProvider>, Option<String>), String>
Expand description

The model driver for model, and the secret to redact from messages. Keys come only from the environment; a local openai-compatible server needs none unless api_key_env names one, and Bedrock’s come from the AWS credential chain (AWS_BEARER_TOKEN_BEDROCK or a profile).