pub struct CopilotConfig {
pub enabled: bool,
pub headless_auth: bool,
pub model: Option<String>,
pub fast_model: Option<String>,
pub vision_model: Option<String>,
pub reasoning_effort: Option<ReasoningEffort>,
pub responses_only_models: Vec<String>,
pub request_overrides: Option<RequestOverridesConfig>,
pub extra: BTreeMap<String, Value>,
}Expand description
GitHub Copilot provider configuration
§Example
"copilot": {
"enabled": true,
"headless_auth": false,
"model": "gpt-4o"
}Fields§
§enabled: boolWhether Copilot provider is enabled
headless_auth: boolPrint login URL to console instead of opening browser
model: Option<String>Default model to use for Copilot (used when clients request the “default” model)
fast_model: Option<String>Fast/cheap model for lightweight tasks (title generation, mermaid fix, summarization).
Falls back to model when not set.
vision_model: Option<String>Vision-capable model for image understanding tasks.
Falls back to model when not set.
reasoning_effort: Option<ReasoningEffort>Default reasoning effort for Copilot requests.
responses_only_models: Vec<String>Models that must use the OpenAI Responses API upstream (instead of chat/completions).
This is useful for newer Copilot models that only support Responses-style requests.
Example:
"responses_only_models": ["gpt-5.3-codex", "gpt-5*"]request_overrides: Option<RequestOverridesConfig>Optional request overrides (headers/body patches/model rules).
extra: BTreeMap<String, Value>Preserve unknown keys under providers.copilot.
Trait Implementations§
Source§impl Clone for CopilotConfig
impl Clone for CopilotConfig
Source§fn clone(&self) -> CopilotConfig
fn clone(&self) -> CopilotConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 CopilotConfig
impl Debug for CopilotConfig
Source§impl Default for CopilotConfig
impl Default for CopilotConfig
Source§fn default() -> CopilotConfig
fn default() -> CopilotConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CopilotConfig
impl<'de> Deserialize<'de> for CopilotConfig
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
Auto Trait Implementations§
impl Freeze for CopilotConfig
impl RefUnwindSafe for CopilotConfig
impl Send for CopilotConfig
impl Sync for CopilotConfig
impl Unpin for CopilotConfig
impl UnsafeUnpin for CopilotConfig
impl UnwindSafe for CopilotConfig
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