From 5eebd47bc309d98bf4781b2df4532e63bf8d9c70 Mon Sep 17 00:00:00 2001 From: sigoden Date: Thu, 13 Feb 2025 19:23:09 +0800 Subject: feat: abandon model field `no_temperature` (revert #1164) (#1170) --- src/client/model.rs | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/client/model.rs') diff --git a/src/client/model.rs b/src/client/model.rs index a2865ab..82e2252 100644 --- a/src/client/model.rs +++ b/src/client/model.rs @@ -203,10 +203,6 @@ 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() } @@ -336,8 +332,6 @@ 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