pub enum OpenAi {
GPT4o,
GPT4oMini,
GPT4Turbo,
GPT35Turbo,
O1,
O1Mini,
O1Pro,
O3,
O3Mini,
O4Mini,
}Expand description
Represents an OpenAI GPT model
Variants§
GPT4o
GPT-4o model
GPT4oMini
GPT-4o-mini model
GPT4Turbo
GPT-4 Turbo model
GPT35Turbo
GPT-3.5 Turbo model
O1
O1
O1Mini
O1Pro
O3
O3
O3Mini
O4Mini
Trait Implementations§
Source§impl HTTPProvider<OpenAi> for OpenAIProvider
impl HTTPProvider<OpenAi> for OpenAIProvider
Source§impl ModelInfo for OpenAi
impl ModelInfo for OpenAi
Source§fn context_window(&self) -> usize
fn context_window(&self) -> usize
Context window size in tokens
Source§fn max_output_tokens(&self) -> usize
fn max_output_tokens(&self) -> usize
Maximum number of output tokens
NOTE: we may want to do something smart here to have this be
context-dependent. for example if you set the right headers
for anthropic, 3.7 can output 128k instead of 64k.
Source§impl OpenAIModelInfo for OpenAi
impl OpenAIModelInfo for OpenAi
fn openai_model_id(&self) -> String
impl Copy for OpenAi
impl Eq for OpenAi
impl StructuralPartialEq for OpenAi
Auto Trait Implementations§
impl Freeze for OpenAi
impl RefUnwindSafe for OpenAi
impl Send for OpenAi
impl Sync for OpenAi
impl Unpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.