pub struct CustomProviderProfileConfig {Show 18 fields
pub api_format: CustomProviderApiFormat,
pub context_window: Option<usize>,
pub temperature: Option<f32>,
pub top_p: Option<f32>,
pub top_k: Option<i32>,
pub presence_penalty: Option<f32>,
pub frequency_penalty: Option<f32>,
pub max_tokens: Option<u32>,
pub reasoning_effort: Option<ReasoningEffortLevel>,
pub supports_tools: Option<bool>,
pub supports_reasoning: Option<bool>,
pub supports_reasoning_effort: Option<bool>,
pub supports_vision: Option<bool>,
pub supports_structured_output: Option<bool>,
pub supports_parallel_tool_calls: Option<bool>,
pub supports_context_caching: Option<bool>,
pub supports_responses_compaction: Option<bool>,
pub supports_context_edits: Option<bool>,
}Expand description
Sparse per-provider or per-model capability/profile settings.
Fields§
§api_format: CustomProviderApiFormatTyped API format for this provider/profile.
context_window: Option<usize>Optional context window size in tokens.
temperature: Option<f32>Optional sampling temperature override (0.0-2.0) sent with requests.
top_p: Option<f32>Optional nucleus-sampling override (0.0-1.0).
top_k: Option<i32>Optional top-k override (>= 0).
presence_penalty: Option<f32>Optional presence penalty override (-2.0-2.0).
frequency_penalty: Option<f32>Optional frequency penalty override (-2.0-2.0).
max_tokens: Option<u32>Optional max output tokens override (> 0).
reasoning_effort: Option<ReasoningEffortLevel>Optional reasoning effort override sent with requests for this model.
supports_tools: Option<bool>§supports_reasoning: Option<bool>§supports_reasoning_effort: Option<bool>§supports_vision: Option<bool>§supports_structured_output: Option<bool>§supports_parallel_tool_calls: Option<bool>§supports_context_caching: Option<bool>§supports_responses_compaction: Option<bool>§supports_context_edits: Option<bool>Trait Implementations§
Source§impl Clone for CustomProviderProfileConfig
impl Clone for CustomProviderProfileConfig
Source§impl Debug for CustomProviderProfileConfig
impl Debug for CustomProviderProfileConfig
Source§impl<'de> Deserialize<'de> for CustomProviderProfileConfig
impl<'de> Deserialize<'de> for CustomProviderProfileConfig
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 JsonSchema for CustomProviderProfileConfig
impl JsonSchema for CustomProviderProfileConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for CustomProviderProfileConfig
Auto Trait Implementations§
impl Freeze for CustomProviderProfileConfig
impl RefUnwindSafe for CustomProviderProfileConfig
impl Send for CustomProviderProfileConfig
impl Sync for CustomProviderProfileConfig
impl Unpin for CustomProviderProfileConfig
impl UnsafeUnpin for CustomProviderProfileConfig
impl UnwindSafe for CustomProviderProfileConfig
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