pub struct OpenAISettings {
pub url: String,
pub api_key_env: Option<String>,
pub semantic_model: String,
pub code_model: Option<String>,
pub timeout_secs: u64,
pub max_retries: u32,
pub azure_mode: bool,
}Expand description
OpenAI-compatible provider settings.
Fields§
§url: StringAPI base URL (e.g., “https://api.openai.com/v1”)
api_key_env: Option<String>Environment variable name containing API key
semantic_model: StringModel for semantic embeddings
code_model: Option<String>Model for code embeddings (None = use semantic_model)
timeout_secs: u64Request timeout in seconds
max_retries: u32Maximum retry attempts
azure_mode: boolUse Azure OpenAI authentication (api-key header)
Trait Implementations§
Source§impl Clone for OpenAISettings
impl Clone for OpenAISettings
Source§fn clone(&self) -> OpenAISettings
fn clone(&self) -> OpenAISettings
Returns a duplicate of the value. Read more
1.0.0 · 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 OpenAISettings
impl Debug for OpenAISettings
Source§impl Default for OpenAISettings
impl Default for OpenAISettings
Source§impl<'de> Deserialize<'de> for OpenAISettingswhere
OpenAISettings: Default,
impl<'de> Deserialize<'de> for OpenAISettingswhere
OpenAISettings: Default,
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
Auto Trait Implementations§
impl Freeze for OpenAISettings
impl RefUnwindSafe for OpenAISettings
impl Send for OpenAISettings
impl Sync for OpenAISettings
impl Unpin for OpenAISettings
impl UnwindSafe for OpenAISettings
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