pub async fn log_probabilities(
        &self,
        context: String,
        continuation: NonEmptyString,
    ) -> reqwest::Result<crate::Result<LogProbabilities>> {
        let url = format!(
            "https://api.textsynth.com/v1/engines/{}/logprob",
            self.definition.id()
        );
        self.text_synth
            .post(url)
            .json(&LogProbabilitiesRequest {
                context,
                continuation,
            })
            .send()
            .await?
            .json::<crate::UntaggedResult<_>>()
            .await
            .map(Into::into)
    }
/// See [`LogProbabilities`] for information about this return value.
///
/// # Arguments
///   - `context`: If empty, the context is set to the End-Of-Text token.
///   - `continuation`: Must be a non empty string.
See [`LogProbabilities`] for information about this return value.
See [ ` LogProbabilities ` ] for information about this return value .
pub async fn log_probabilities(
        &self,
        context: String,
        continuation: NonEmptyString,
    ) -> reqwest::Result<crate::Result<LogProbabilities>> {
        let url = format!(
            "https://api.textsynth.com/v1/engines/{}/logprob",
            self.definition.id()
        );
        self.text_synth
            .post(url)
            .json(&LogProbabilitiesRequest {
                context,
                continuation,
            })
            .send()
            .await?
            .json::<crate::UntaggedResult<_>>()
            .await
            .map(Into::into)
    }
pub async fn log_probabilities ( & self , context : String , continuation : NonEmptyString , ) -> reqwest :: Result < crate :: Result < LogProbabilities > > { let url = format ! ( " " self definition id ( ) ) ; self . text_synth . post ( url ) . json ( & LogProbabilitiesRequest { context , continuation , } ) . send ( ) . await ? . json :: < crate :: UntaggedResult < _ > > ( ) . await . map ( Into :: into ) }
See [`LogProbabilities`] for information about this return value.
See [ ` LogProbabilities ` ] for information about this return value .
&self
context
String
continuation
NonEmptyString
&self
context
String
continuation
NonEmptyString