pub enum BaseModel {
AI21Labs(AI21LabsModel),
Amazon(AmazonModel),
Anthropic(AnthropicModel),
Cohere(CohereModel),
Meta(MetaModel),
StabilityAI(StabilityAIModel),
}Expand description
| Provider | Model name | Version | Model Id |
|---|---|---|---|
| AI21 Labs | Jurassic-2 Mid | 1.x | ai21.j2-mid-v1 |
| AI21 Labs | Jurassic-2 Ultra | 1.x | ai21.j2-ultra-v1 |
| Amazon | Titan Text G1 - Lite | 1.x | amazon.titan-text-lite-v1 |
| Amazon | Titan Embeddings G1 - Text | 1.x | amazon.titan-embed-text-v1 |
| Amazon | Titan Text G1 - Express | 1.x | amazon.titan-text-express-v1 |
| Amazon | Titan Text G1 - Agile | 1.x | amazon.titan-text-agile-v1 |
| Anthropic | Claude | 1.x | anthropic.claude-v1 |
| Anthropic | Claude | 2.x | anthropic.claude-v2 |
| Anthropic | Claude Instant | 1.x | anthropic.claude-instant-v1 |
| Cohere | Command | 14.x | cohere.command-text-v14 |
| Cohere | Command Light | 15.x | cohere.command-light-text-v14 |
| Cohere | Embed English | 3.x | cohere.embed-english-v3 |
| Cohere | Embed Multilingual | 3.x | cohere.embed-multilingual-v3 |
| Meta | Llama 2 Chat 13B | 1.x | meta.llama2-13b-chat-v1 |
| Stability AI | Stable Diffusion XL | 0.x | stability.stable-diffusion-xl-v0 |
Variants§
AI21Labs(AI21LabsModel)
Amazon(AmazonModel)
Anthropic(AnthropicModel)
Cohere(CohereModel)
Meta(MetaModel)
StabilityAI(StabilityAIModel)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BaseModel
impl RefUnwindSafe for BaseModel
impl Send for BaseModel
impl Sync for BaseModel
impl Unpin for BaseModel
impl UnwindSafe for BaseModel
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.