pub struct VlmConfig {
pub upstream: String,
pub api_key: String,
pub model: String,
pub reasoning_effort: Option<String>,
pub catalog_id: Option<String>,
pub context_window_tokens: Option<usize>,
pub api_format: String,
}Expand description
Connection settings used by Pilot’s model client.
Fields§
§upstream: String§api_key: String§model: String§reasoning_effort: Option<String>Optional OpenAI-compatible reasoning effort sent with each request.
catalog_id: Option<String>Selected catalog id; None means an explicit endpoint was configured.
context_window_tokens: Option<usize>Context limit declared by the deployment. This wins over provider metadata and the built-in registry because a proxy may expose a logical model name while routing to a smaller physical context window.
api_format: StringWire dialect. Currently only “openai” is implemented; checked at
resolve time, kept on the struct for diagnostics / future routing.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VlmConfig
impl RefUnwindSafe for VlmConfig
impl Send for VlmConfig
impl Sync for VlmConfig
impl Unpin for VlmConfig
impl UnsafeUnpin for VlmConfig
impl UnwindSafe for VlmConfig
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