pub struct OmpConfiguration {
pub alias_name: String,
pub auth_mode: String,
pub anthropic_api_key: Option<String>,
pub anthropic_oauth_token: Option<String>,
pub openai_api_key: Option<String>,
pub base_url: Option<String>,
pub slow_model: Option<String>,
pub smol_model: Option<String>,
pub plan_model: Option<String>,
}Expand description
OmpConfiguration represents an OMP (omp.sh) configuration
Supports two authentication modes:
- “anthropic”: Uses ANTHROPIC_API_KEY or ANTHROPIC_OAUTH_TOKEN
- “openai”: Uses OPENAI_API_KEY
Fields§
§alias_name: StringUnique alias name for this configuration
auth_mode: StringAuthentication mode: “anthropic” or “openai”
anthropic_api_key: Option<String>Anthropic API key (anthropic mode)
anthropic_oauth_token: Option<String>Anthropic OAuth token (anthropic mode, takes precedence over API key)
openai_api_key: Option<String>OpenAI API key (openai mode)
base_url: Option<String>Base URL for API endpoint (optional, e.g., ANTHROPIC_BASE_URL)
slow_model: Option<String>PI_SLOW_MODEL - slow/reasoning model
smol_model: Option<String>PI_SMOL_MODEL - fast/smaller model
plan_model: Option<String>PI_PLAN_MODEL - planning model
Trait Implementations§
Source§impl Clone for OmpConfiguration
impl Clone for OmpConfiguration
Source§fn clone(&self) -> OmpConfiguration
fn clone(&self) -> OmpConfiguration
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 moreSource§impl Debug for OmpConfiguration
impl Debug for OmpConfiguration
Source§impl<'de> Deserialize<'de> for OmpConfiguration
impl<'de> Deserialize<'de> for OmpConfiguration
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
Source§impl PartialEq for OmpConfiguration
impl PartialEq for OmpConfiguration
Source§impl Serialize for OmpConfiguration
impl Serialize for OmpConfiguration
impl StructuralPartialEq for OmpConfiguration
Auto Trait Implementations§
impl Freeze for OmpConfiguration
impl RefUnwindSafe for OmpConfiguration
impl Send for OmpConfiguration
impl Sync for OmpConfiguration
impl Unpin for OmpConfiguration
impl UnsafeUnpin for OmpConfiguration
impl UnwindSafe for OmpConfiguration
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