Finishes the generate implementation

This commit is contained in:
2025-12-24 15:58:23 +00:00
parent 8a0c10c6fc
commit d06d69d132
8 changed files with 97 additions and 30 deletions

0
src/types/chat.rs Normal file
View File

View 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

View File

@@ -1,3 +1,4 @@
pub mod chat;
pub mod common;
pub mod generate;
pub mod ps;