pub struct RabOpenAiCompat {Show 13 fields
pub supports_store: bool,
pub supports_developer_role: bool,
pub supports_reasoning_effort: bool,
pub supports_thinking_control: bool,
pub supports_usage_in_streaming: bool,
pub max_tokens_field: RabMaxTokensField,
pub requires_tool_result_name: bool,
pub requires_assistant_after_tool_result: bool,
pub requires_thinking_as_text: bool,
pub requires_reasoning_content_on_assistant_messages: bool,
pub thinking_format: RabThinkingFormat,
pub supports_strict_mode: bool,
pub supports_long_cache_retention: bool,
}Expand description
Rich compatibility flags, matching pi’s OpenAICompletionsCompat schema.
All fields are optional — defaults are resolved at use time in the provider.
Fields§
§supports_store: boolWhether the provider supports the store parameter (OpenAI-only).
supports_developer_role: boolWhether the provider supports the developer role vs system.
supports_reasoning_effort: boolWhether the provider supports reasoning_effort.
supports_thinking_control: boolWhether the provider supports thinking: { type } control.
supports_usage_in_streaming: boolWhether usage data is available in streaming responses.
max_tokens_field: RabMaxTokensFieldWhich field name to use for max tokens.
requires_tool_result_name: boolWhether tool results must include a name field.
requires_assistant_after_tool_result: boolWhether an assistant message must be inserted after tool results.
requires_thinking_as_text: boolWhether thinking blocks must be converted to text with <thinking> tags.
requires_reasoning_content_on_assistant_messages: boolWhether replayed assistant messages must include reasoning_content.
thinking_format: RabThinkingFormatHow thinking/reasoning is formatted in the API.
supports_strict_mode: boolWhether the provider supports the strict field in tool definitions.
supports_long_cache_retention: boolWhether the provider supports long cache retention.
Trait Implementations§
Source§impl Clone for RabOpenAiCompat
impl Clone for RabOpenAiCompat
Source§fn clone(&self) -> RabOpenAiCompat
fn clone(&self) -> RabOpenAiCompat
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more