#[non_exhaustive]pub struct TogetherOptions {
pub shared: TogetherShared,
}Expand description
Together AI’s request options.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.The fields every route takes.
Implementations§
Source§impl TogetherOptions
impl TogetherOptions
Sourcepub fn chat_template_kwarg(self, key: impl Into<String>, value: Value) -> Self
pub fn chat_template_kwarg(self, key: impl Into<String>, value: Value) -> Self
Pass key, value to the model’s chat template.
Sourcepub fn repetition_penalty(self, penalty: f64) -> Self
pub fn repetition_penalty(self, penalty: f64) -> Self
Set the repetition penalty.
Sourcepub fn safety_model(self, model: impl Into<String>) -> Self
pub fn safety_model(self, model: impl Into<String>) -> Self
Screen the request with moderation model model.
Trait Implementations§
Source§impl Clone for TogetherOptions
impl Clone for TogetherOptions
Source§impl Debug for TogetherOptions
impl Debug for TogetherOptions
Source§impl Default for TogetherOptions
impl Default for TogetherOptions
Source§impl ExtensionOptions for TogetherOptions
impl ExtensionOptions for TogetherOptions
Source§type Ext = TogetherExt
type Ext = TogetherExt
The provider these options are for: the entry
ProviderOptions::set stores them under. A type that serves as the
Options of several providers names one of them here, and is stored
for the others with ProviderOptions::with.Source§fn unsupported(
&self,
target: &dyn ReplayTarget,
request: &CompletionRequest,
) -> Vec<(&'static str, String)>
fn unsupported( &self, target: &dyn ReplayTarget, request: &CompletionRequest, ) -> Vec<(&'static str, String)>
The fields
target cannot send for request, each a top-level body
key with the reason. Each one set is reported through the request’s
OnUnsupported policy under the
name "<provider>.<section>.<field>". It must not call
options::param, which reads
it. By default every field is sent.Source§impl PartialEq for TogetherOptions
impl PartialEq for TogetherOptions
Source§impl Serialize for TogetherOptions
impl Serialize for TogetherOptions
impl StructuralPartialEq for TogetherOptions
Auto Trait Implementations§
impl Freeze for TogetherOptions
impl RefUnwindSafe for TogetherOptions
impl Send for TogetherOptions
impl Sync for TogetherOptions
impl Unpin for TogetherOptions
impl UnsafeUnpin for TogetherOptions
impl UnwindSafe for TogetherOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> IntoToolOutput for Twhere
T: Serialize + 'static,
impl<T> IntoToolOutput for Twhere
T: Serialize + 'static,
Source§fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
Convert this value without routing structured data through a string.