pub struct OpenAIConfig {
pub websocket_mode: bool,
pub responses_store: Option<bool>,
pub responses_include: Vec<String>,
pub service_tier: Option<OpenAIServiceTier>,
pub manual_compaction: OpenAIManualCompactionConfig,
pub hosted_shell: OpenAIHostedShellConfig,
pub tool_search: OpenAIToolSearchConfig,
}Expand description
OpenAI-specific provider configuration
Fields§
§websocket_mode: boolEnable persistent Responses API WebSocket generation and streaming on
native OpenAI and OpenAI-compatible Responses endpoints.
This is an opt-in path designed for long-running, tool-heavy workflows.
A persistent connection removes per-request HTTP handshake overhead, so
pair it with service_tier = "ultrafast" on gpt-6-astra/gpt-6.1-sol
for agentic tool-call bursts (Ultrafast docs strongly recommend WebSockets).
Streaming falls back to HTTP only before any output event is exposed.
responses_store: Option<bool>Optional Responses API store flag.
Set to false to avoid server-side storage when using Responses-compatible models.
responses_include: Vec<String>Optional Responses API include selectors.
Example: ["reasoning.encrypted_content"] for encrypted reasoning continuity.
service_tier: Option<OpenAIServiceTier>Optional native OpenAI service_tier request parameter.
Leave unset to inherit the Project-level default service tier.
Options: “flex”, “priority”, “ultrafast”.
“ultrafast” is the fastest tier: GA for gpt-6-astra and gpt-6.1-sol,
preview-only for gpt-5.6-sol (contact your OpenAI account team). It costs more,
starts at low TPM limits (Astra 500k/1M/5M, 6.1-sol 1M/4M/40M), supports US/global
processing on Astra and US/EU/global on 6.1-sol, and pairs best with websocket_mode = true.
manual_compaction: OpenAIManualCompactionConfigManual /compact defaults for the native OpenAI standalone compaction endpoint.
hosted_shell: OpenAIHostedShellConfigOptional hosted shell configuration for OpenAI native Responses models.
tool_search: OpenAIToolSearchConfigHosted tool search configuration for OpenAI Responses-compatible models.
Trait Implementations§
Source§impl Clone for OpenAIConfig
impl Clone for OpenAIConfig
Source§impl Debug for OpenAIConfig
impl Debug for OpenAIConfig
Source§impl Default for OpenAIConfig
impl Default for OpenAIConfig
Source§impl<'de> Deserialize<'de> for OpenAIConfig
impl<'de> Deserialize<'de> for OpenAIConfig
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>,
Source§impl JsonSchema for OpenAIConfig
impl JsonSchema for OpenAIConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more