pub struct ChatCompletion<'a> { /* private fields */ }
Expand description
A standard chat completion request. The response will be a string in any shape and will not be parsed.
Implementations§
Source§impl<'a> ChatCompletion<'a>
impl<'a> ChatCompletion<'a>
Sourcepub fn model(model: Model) -> ChatCompletionBuilder<'a>
pub fn model(model: Model) -> ChatCompletionBuilder<'a>
Create an instance of ChatCompletion
using the builder syntax
Trait Implementations§
Source§impl OpenAIRequestProvider for ChatCompletion<'_>
impl OpenAIRequestProvider for ChatCompletion<'_>
Auto Trait Implementations§
impl<'a> Freeze for ChatCompletion<'a>
impl<'a> RefUnwindSafe for ChatCompletion<'a>
impl<'a> Send for ChatCompletion<'a>
impl<'a> Sync for ChatCompletion<'a>
impl<'a> Unpin for ChatCompletion<'a>
impl<'a> UnwindSafe for ChatCompletion<'a>
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