Function translate
Source pub async fn translate(
elements: &[Element],
should_include_p: bool,
) -> Result<String>
Expand description
Translates the given elements into a format GPT-4 can understand.
§Arguments
elements
- The elements to translate.
should_include_p
- Whether to include paragraphs in the translation.
§Errors
- If the elements cannot be translated.