summaryrefslogtreecommitdiffstats
path: root/src/client
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2025-02-13 19:23:09 +0800
committerGitHub <noreply@github.com>2025-02-13 19:23:09 +0800
commit5eebd47bc309d98bf4781b2df4532e63bf8d9c70 (patch)
tree965b099ea7656e303c343a1a30130ea92c8fd550 /src/client
parent9dfbdafe9f2c662c1d9dae96f3b850f4de5bca19 (diff)
downloadaichat-5eebd47bc309d98bf4781b2df4532e63bf8d9c70.tar.gz
feat: abandon model field `no_temperature` (revert #1164) (#1170)
Diffstat (limited to 'src/client')
-rw-r--r--src/client/model.rs6
1 files changed, 0 insertions, 6 deletions
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<String>,