From 4fab4c54b2916931bf5705b5aa5e560e57f7f289 Mon Sep 17 00:00:00 2001 From: sigoden Date: Mon, 10 Feb 2025 16:19:18 +0800 Subject: feat: add model field `no_temperature` (#1164) --- src/client/model.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/client/model.rs') 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, -- cgit v1.2.3