Finishes the generate implementation
This commit is contained in:
0
src/types/chat.rs
Normal file
0
src/types/chat.rs
Normal file
@@ -41,6 +41,11 @@ impl GenerateRequestBuilder {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn system_prompt<P: Into<String>>(mut self, system_prompt: P) -> Self {
|
||||
self.generate_request.system = Some(system_prompt.into());
|
||||
self
|
||||
}
|
||||
|
||||
pub fn prompt<P: Into<String>>(mut self, prompt: P) -> Self {
|
||||
self.generate_request.prompt = Some(prompt.into());
|
||||
self
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
pub mod chat;
|
||||
pub mod common;
|
||||
pub mod generate;
|
||||
pub mod ps;
|
||||
|
||||
Reference in New Issue
Block a user