We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84e22bb commit 8553880Copy full SHA for 8553880
crates/chat-cli/src/cli/chat/mod.rs
@@ -90,10 +90,6 @@ use parser::{
90
RecvErrorKind,
91
ResponseParser,
92
};
93
-use rand::distr::{
94
- Alphanumeric,
95
- SampleString,
96
-};
97
use regex::Regex;
98
use serde_json::Map;
99
use spinners::{
@@ -259,7 +255,7 @@ impl ChatArgs {
259
255
}
260
256
261
257
262
- let conversation_id = Alphanumeric.sample_string(&mut rand::rng(), 9);
258
+ let conversation_id = uuid::Uuid::new_v4().to_string();
263
info!(?conversation_id, "Generated new conversation id");
264
let (prompt_request_sender, prompt_request_receiver) = std::sync::mpsc::channel::<Option<String>>();
265
let (prompt_response_sender, prompt_response_receiver) = std::sync::mpsc::channel::<Vec<String>>();
0 commit comments