pub struct ChatGPTBuilder { /* private fields */ }
Implementations§
Source§impl ChatGPTBuilder
impl ChatGPTBuilder
pub fn new() -> Self
pub fn model(self, model: String) -> Self
pub fn openai_api_token(self, openai_api_token: String) -> Self
pub fn session_id(self, session_id: String) -> Self
pub fn chat_context(self, chat_context: ChatContext) -> Self
pub fn build(self) -> Result<ChatGPT>
Auto Trait Implementations§
impl Freeze for ChatGPTBuilder
impl RefUnwindSafe for ChatGPTBuilder
impl Send for ChatGPTBuilder
impl Sync for ChatGPTBuilder
impl Unpin for ChatGPTBuilder
impl UnwindSafe for ChatGPTBuilder
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