pub struct ModelConfig {
pub backend: Backend,
pub model_id: String,
pub base_url: String,
pub api_key: String,
}Fields§
§backend: Backend§model_id: StringModel id. Required for openai; optional for subprocess backends (empty =
let the CLI choose its own default).
base_url: String§api_key: StringImplementations§
Source§impl ModelConfig
impl ModelConfig
Sourcepub fn same_endpoint(&self, other: &ModelConfig) -> bool
pub fn same_endpoint(&self, other: &ModelConfig) -> bool
True when two roles resolve to the same backend, model, and endpoint. When the planner and coder are identical there is no point running a separate planning turn: a subprocess planner already plans and edits in one shot.
Trait Implementations§
Source§impl Clone for ModelConfig
impl Clone for ModelConfig
Source§fn clone(&self) -> ModelConfig
fn clone(&self) -> ModelConfig
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 moreAuto Trait Implementations§
impl Freeze for ModelConfig
impl RefUnwindSafe for ModelConfig
impl Send for ModelConfig
impl Sync for ModelConfig
impl Unpin for ModelConfig
impl UnsafeUnpin for ModelConfig
impl UnwindSafe for ModelConfig
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