pub struct OpenAIModelRegistry { /* private fields */ }Expand description
Registry for managing OpenAI model configurations and capabilities.
This struct provides a centralized way to manage model-specific configurations, parameter mappings, and capabilities for OpenAI models.
Implementations§
Source§impl OpenAIModelRegistry
impl OpenAIModelRegistry
Sourcepub fn get_model_capabilities(&self, model_name: &str) -> ModelCapabilities
pub fn get_model_capabilities(&self, model_name: &str) -> ModelCapabilities
Get the capabilities for a specific model.
Sourcepub fn is_reasoning_model(&self, model_name: &str) -> bool
pub fn is_reasoning_model(&self, model_name: &str) -> bool
Check if a model is a reasoning model.
Sourcepub fn get_registered_models(&self) -> Vec<String>
pub fn get_registered_models(&self) -> Vec<String>
Get a list of all explicitly registered models.
Sourcepub fn register_model(
&mut self,
model_name: &str,
capabilities: ModelCapabilities,
)
pub fn register_model( &mut self, model_name: &str, capabilities: ModelCapabilities, )
Register a new model with its capabilities.
Sourcepub fn register_pattern(&mut self, pattern: &str, model_type: ModelType)
pub fn register_pattern(&mut self, pattern: &str, model_type: ModelType)
Register a pattern for inferring model types.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OpenAIModelRegistry
impl RefUnwindSafe for OpenAIModelRegistry
impl Send for OpenAIModelRegistry
impl Sync for OpenAIModelRegistry
impl Unpin for OpenAIModelRegistry
impl UnwindSafe for OpenAIModelRegistry
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