summaryrefslogtreecommitdiffstats
path: root/src/config
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-03-22 19:24:22 +0800
committerGitHub <noreply@github.com>2024-03-22 19:24:22 +0800
commit527da63d18def9cec29c89387de988b43acb7d24 (patch)
tree368286b2ae7dfc374f43ae8829ab1107399d7c83 /src/config
parent4d52479545082254315171d6716ee9c3588f76f5 (diff)
downloadaichat-527da63d18def9cec29c89387de988b43acb7d24.tar.gz
refactor: do not automatically convert temperature value (#368)
Diffstat (limited to 'src/config')
-rw-r--r--src/config/mod.rs2
-rw-r--r--src/config/role.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/config/mod.rs b/src/config/mod.rs
index 548a0b2..b6bc730 100644
--- a/src/config/mod.rs
+++ b/src/config/mod.rs
@@ -46,7 +46,7 @@ pub struct Config {
/// LLM model
#[serde(rename(serialize = "model", deserialize = "model"))]
pub model_id: Option<String>,
- /// GPT temperature, between 0 and 2
+ /// LLM temperature
#[serde(rename(serialize = "temperature", deserialize = "temperature"))]
pub default_temperature: Option<f64>,
/// Dry-run flag
diff --git a/src/config/role.rs b/src/config/role.rs
index 7b4a117..8e4a20e 100644
--- a/src/config/role.rs
+++ b/src/config/role.rs
@@ -16,7 +16,7 @@ pub struct Role {
pub name: String,
/// Prompt text
pub prompt: String,
- /// What sampling temperature to use, between 0 and 2
+ /// Temperature value
pub temperature: Option<f64>,
}