Tag model-context turns with [SPEAKER: name - datetime] provenance; add global user-name setting (default User, read live), agent name = session title
This commit is contained in:
1 parent
0754262b37
commit
95c41c2c21
8 files changed
+157
-5
No files matched your search
@@ -29,6 +29,12 @@ pub struct SessionSettings {
|
||||
/// Free-form user notes describing the purpose of this chat.
|
||||
#[serde(default)]
|
||||
pub notes: Option<String>,
|
||||
/// The human speaker's name, shown to the model in per-turn [SPEAKER: …]
|
||||
/// tags. Global-authoritative: read live from the global defaults at turn
|
||||
/// time (the per-session copy is inert), so it applies to every chat.
|
||||
/// Absent/empty -> "User".
|
||||
#[serde(default)]
|
||||
pub user_name: Option<String>,
|
||||
#[serde(default)]
|
||||
pub temperature: Option<f64>,
|
||||
#[serde(default)]
|
||||
@@ -57,6 +63,7 @@ impl SessionSettings {
|
||||
SessionSettings {
|
||||
system_prompt: self.system_prompt.clone().or(base.system_prompt.clone()),
|
||||
notes: self.notes.clone().or(base.notes.clone()),
|
||||
user_name: self.user_name.clone().or(base.user_name.clone()),
|
||||
temperature: self.temperature.or(base.temperature),
|
||||
top_p: self.top_p.or(base.top_p),
|
||||
top_k: self.top_k.or(base.top_k),
|
||||
|
||||
Reference in new issue
Block a user