pub struct OpenAiCodexProvider { /* private fields */ }Expand description
ChatGPT/Codex-backed OpenAI provider.
Implementations§
Trait Implementations§
Source§impl Default for OpenAiCodexProvider
impl Default for OpenAiCodexProvider
Source§impl Provider for OpenAiCodexProvider
impl Provider for OpenAiCodexProvider
Source§fn stream(
&self,
model: &Model,
context: Context,
options: RequestOptions,
api_key: &str,
) -> Pin<Box<dyn Stream<Item = Result<StreamEvent>> + Send>>
fn stream( &self, model: &Model, context: Context, options: RequestOptions, api_key: &str, ) -> Pin<Box<dyn Stream<Item = Result<StreamEvent>> + Send>>
Stream a completion response.
Source§fn resolve_auth<'life0, 'life1, 'async_trait>(
&'life0 self,
auth: &'life1 AuthStore,
) -> Pin<Box<dyn Future<Output = Result<ApiKey>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn resolve_auth<'life0, 'life1, 'async_trait>(
&'life0 self,
auth: &'life1 AuthStore,
) -> Pin<Box<dyn Future<Output = Result<ApiKey>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Resolve an API key for this provider.
Source§fn transport_capabilities(&self) -> TransportCapabilities
fn transport_capabilities(&self) -> TransportCapabilities
Transport capabilities exposed to the runtime. Providers should only
report features implemented by this crate, not features merely present
in the upstream vendor API.
Auto Trait Implementations§
impl Freeze for OpenAiCodexProvider
impl !RefUnwindSafe for OpenAiCodexProvider
impl Send for OpenAiCodexProvider
impl Sync for OpenAiCodexProvider
impl Unpin for OpenAiCodexProvider
impl UnsafeUnpin for OpenAiCodexProvider
impl !UnwindSafe for OpenAiCodexProvider
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