pub struct OmpConfiguration {
pub alias_name: 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.
omp is configured as an OpenAI-standard-protocol provider: the key is written
as OPENAI_API_KEY and custom endpoints are registered in models.yml with
api: openai-completions.
Fields§
§alias_name: StringUnique alias name for this configuration
openai_api_key: Option<String>OpenAI API key
base_url: Option<String>Base URL for API endpoint (optional, custom OpenAI-compatible gateway)
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