pub struct Gpt { /* private fields */ }Implementations§
Trait Implementations§
Source§impl LLM for Gpt
impl LLM for Gpt
type TokenStream = OpenAITokenStream
Source§fn prompt(
&self,
chat: &[Message],
options: &PromptOptions,
) -> Result<OpenAITokenStream, PromptError>
fn prompt( &self, chat: &[Message], options: &PromptOptions, ) -> Result<OpenAITokenStream, PromptError>
Generates a response to the given prompt. The prompt is a list of strings, where each
is either the user or the assistant, starting with the user and alternating.
Auto Trait Implementations§
impl Freeze for Gpt
impl RefUnwindSafe for Gpt
impl Send for Gpt
impl Sync for Gpt
impl Unpin for Gpt
impl UnwindSafe for Gpt
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