Skip to main content

apply_compat_options

Function apply_compat_options 

pub fn apply_compat_options(
    b: OpenAiCompatibleBuilder,
    opts: &ModelProviderRuntimeOptions,
) -> Box<dyn ModelProvider>
Expand description

Apply cross-cutting compat overrides (timeout, headers, api_path, max_tokens, reasoning effort, TLS CA, provider_extra) to a compat builder before calling .build() and boxing the trait object. Single source of the override chain — every compat impl funnels through here.