pub enum Model {
Show 30 variants GPT_4, GPT_4_0314, GPT_4_32K, GPT_4_32K_0314, GPT_3_5_TURBO, GPT_3_5_TURBO_0301, TEXT_DAVINCI_003, TEXT_DAVINCI_002, TEXT_DAVINCI_EDIT_001, CODE_DAVINCI_EDIT_001, WHISPER_1, TEXT_EMBEDDING_ADA_002, TEXT_EMBEDDING_ADA_002_v2, TEXT_SEARCH_ADA_DOC_001, CODE_DAVINCI_002, CODE_CUSHMAN_001, TEXT_MODERATION_LATEST, TEXT_MODERATION_004, TEXT_MODERATION_003, TEXT_MODERATION_002, TEXT_MODERATION_001, TEXT_MODERATION_STABLE, TEXT_CURIE_001, TEXT_BABBAGE_001, TEXT_ADA_001, DAVINCI, CURIE, BABBAGE, ADA, UNKNOWN,
}
Expand description

An enum of OpenAI models

Note: GPT-4 are not publicly availble yet (Mar 22, 2023).

Variants§

§

GPT_4

More capable than any GPT-3.5 model, able to do more complex tasks, and optimized for chat. Will be updated with our latest model iteration.

MAX TOKENSTRAINING DATASERIES
8192 tokensUp to Sep 2021GPT-4
§

GPT_4_0314

Snapshot of gpt-4 from March 14th 2023. Unlike gpt-4, this model will not receive updates, and will only be supported for a three month period ending on June 14th 2023.

MAX TOKENSTRAINING DATASERIES
8192 tokensUp to Sep 2021GPT-4
§

GPT_4_32K

Same capabilities as the base gpt-4 mode but with 4x the context length. Will be updated with our latest model iteration.

MAX TOKENSTRAINING DATASERIES
32768 tokensUp to Sep 2021GPT-4
§

GPT_4_32K_0314

Snapshot of gpt-4-32 from March 14th 2023. Unlike gpt-4-32k, this model will not receive updates, and will only be supported for a three month period ending on June 14th 2023.

MAX TOKENSTRAINING DATASERIES
32768 tokensUp to Sep 2021GPT-4
§

GPT_3_5_TURBO

Most capable GPT-3.5 model and optimized for chat at 1/10th the cost of text-davinci-003. Will be updated with our latest model iteration.

MAX TOKENSTRAINING DATASERIES
4096 tokensUp to Sep 2021GPT-3.5
§

GPT_3_5_TURBO_0301

Snapshot of gpt-3.5-turbo from March 1st 2023. Unlike gpt-3.5-turbo, this model will not receive updates, and will only be supported for a three month period ending on June 1st 2023.

MAX TOKENSTRAINING DATASERIES
4096 tokensUp to Sep 2021GPT-3.5
§

TEXT_DAVINCI_003

Can do any language task with better quality, longer output, and consistent instruction-following than the curie, babbage, or ada models. Also supports inserting completions within text.

MAX TOKENSTRAINING DATASERIES
4097 tokensUp to Sep 2021GPT-3.5
§

TEXT_DAVINCI_002

Similar capabilities to text-davinci-003 but trained with supervised fine-tuning instead of reinforcement learning

MAX TOKENSTRAINING DATASERIES
4097 tokensUp to Sep 2021GPT-3.5
§

TEXT_DAVINCI_EDIT_001

§

CODE_DAVINCI_EDIT_001

Optimized for code-completion tasks

MAX TOKENSTRAINING DATASERIES
8001 tokensUp to Sep 2021GPT-3.5
§

WHISPER_1

§

TEXT_EMBEDDING_ADA_002

§

TEXT_EMBEDDING_ADA_002_v2

§

TEXT_SEARCH_ADA_DOC_001

§

CODE_DAVINCI_002

Most capable Codex model. Particularly good at translating natural language to code. In addition to completing code, also supports inserting completions within code.

MAX TOKENSTRAINING DATASERIES
8001 tokensUp to Jun 2021Codex
§

CODE_CUSHMAN_001

Almost as capable as Davinci Codex, but slightly faster. This speed advantage may make it preferable for real-time applications.

MAX TOKENSTRAINING DATASERIES
2048 tokens-Codex
§

TEXT_MODERATION_LATEST

Most capable moderation model. Accuracy will be slighlty higher than the stable model

Series: Moderation

§

TEXT_MODERATION_004

§

TEXT_MODERATION_003

§

TEXT_MODERATION_002

§

TEXT_MODERATION_001

§

TEXT_MODERATION_STABLE

Almost as capable as the latest model, but slightly older.

Series: Moderation

§

TEXT_CURIE_001

Very capable, faster and lower cost than Davinci.

MAX TOKENSTRAINING DATASERIES
2049 tokensUp to Oct 2019GPT-3
§

TEXT_BABBAGE_001

Capable of straightforward tasks, very fast, and lower cost.

MAX TOKENSTRAINING DATASERIES
2049 tokensUp to Oct 2019GPT-3
§

TEXT_ADA_001

Capable of very simple tasks, usually the fastest model in the GPT-3 series, and lowest cost.

MAX TOKENSTRAINING DATASERIES
2049 tokensUp to Oct 2019GPT-3
§

DAVINCI

Most capable GPT-3 model. Can do any task the other models can do, often with higher quality.

MAX TOKENSTRAINING DATASERIES
2049 tokensUp to Oct 2019GPT-3
§

CURIE

Very capable, but faster and lower cost than Davinci.

MAX TOKENSTRAINING DATASERIES
2049 tokensUp to Oct 2019GPT-3
§

BABBAGE

Capable of straightforward tasks, very fast, and lower cost.

MAX TOKENSTRAINING DATASERIES
2049 tokensUp to Oct 2019GPT-3
§

ADA

Capable of very simple tasks, usually the fastest model in the GPT-3 series, and lowest cost.

MAX TOKENSTRAINING DATASERIES
2049 tokensUp to Oct 2019GPT-3
§

UNKNOWN

Trait Implementations§

source§

impl Clone for Model

source§

fn clone(&self) -> Model

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Model

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Model

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Into<&'static str> for Model

source§

fn into(self) -> &'static str

Converts this type into the (usually inferred) input type.
source§

impl PartialEq<Model> for Model

source§

fn eq(&self, other: &Model) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for Model

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for Model

source§

impl StructuralEq for Model

source§

impl StructuralPartialEq for Model

Auto Trait Implementations§

§

impl RefUnwindSafe for Model

§

impl Send for Model

§

impl Sync for Model

§

impl Unpin for Model

§

impl UnwindSafe for Model

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,