diff options
| author | sigoden <sigoden@gmail.com> | 2024-06-27 08:21:49 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-27 08:21:49 +0800 |
| commit | 33a0049a81103c1f6c5639b9cec43cb14a9ef367 (patch) | |
| tree | 7402b251e2d75aaf5306487b70265f35c8d52b22 /src/config/session.rs | |
| parent | 1ced451c2723c36b7e0cb70e6c0755cdbad457c3 (diff) | |
| download | aichat-33a0049a81103c1f6c5639b9cec43cb14a9ef367.tar.gz | |
refactor: saved messages ignore embedding context (#659)
Diffstat (limited to 'src/config/session.rs')
| -rw-r--r-- | src/config/session.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/config/session.rs b/src/config/session.rs index 3057697..9aa4ca4 100644 --- a/src/config/session.rs +++ b/src/config/session.rs @@ -298,9 +298,7 @@ impl Session { if self.is_temp() { self.name = Text::new("Session name:") .with_validator(|input: &str| { - if input == TEMP_SESSION_NAME { - Ok(Validation::Invalid(format!("'{TEMP_SESSION_NAME}' is a reserved word and cannot be used as a session name").into())) - } else if input.trim().is_empty() { + if input.trim().is_empty() { Ok(Validation::Invalid("This field is required".into())) } else { Ok(Validation::Valid) |
