pub struct OpenAI;Expand description
Entry point for OpenAI-compatible adapters.
OpenAI is a namespace for constructing adapters that speak OpenAI’s
wire protocols: use OpenAI::chat for the Chat Completions API and
OpenAI::responses for the Responses API. Both adapters default to
https://api.openai.com/v1 and fall back to the OPENAI_API_KEY
environment variable when no API key is set explicitly.
Implementations§
Auto Trait Implementations§
impl Freeze for OpenAI
impl RefUnwindSafe for OpenAI
impl Send for OpenAI
impl Sync for OpenAI
impl Unpin for OpenAI
impl UnsafeUnpin for OpenAI
impl UnwindSafe for OpenAI
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