summaryrefslogtreecommitdiffstats
path: root/src/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/client')
-rw-r--r--src/client/model.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client/model.rs b/src/client/model.rs
index 8fcc6db..6681856 100644
--- a/src/client/model.rs
+++ b/src/client/model.rs
@@ -198,6 +198,10 @@ impl Model {
self.data.no_system_message
}
+ pub fn no_temperature(&self) -> bool {
+ self.data.no_temperature
+ }
+
pub fn system_prompt_prefix(&self) -> Option<&str> {
self.data.system_prompt_prefix.as_deref()
}
@@ -325,6 +329,8 @@ pub struct ModelData {
no_stream: bool,
#[serde(default, skip_serializing_if = "std::ops::Not::not")]
no_system_message: bool,
+ #[serde(default, skip_serializing_if = "std::ops::Not::not")]
+ no_temperature: bool,
#[serde(skip_serializing_if = "Option::is_none")]
system_prompt_prefix: Option<String>,