From 527da63d18def9cec29c89387de988b43acb7d24 Mon Sep 17 00:00:00 2001 From: sigoden Date: Fri, 22 Mar 2024 19:24:22 +0800 Subject: refactor: do not automatically convert temperature value (#368) --- src/config/mod.rs | 2 +- src/config/role.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/config') 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, - /// GPT temperature, between 0 and 2 + /// LLM temperature #[serde(rename(serialize = "temperature", deserialize = "temperature"))] pub default_temperature: Option, /// 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, } -- cgit v1.2.3