Skip to content

Commit 7d51c98

Browse files
chore: update message id to be a uuid (#166)
1 parent 486e601 commit 7d51c98

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

crates/chat-cli/src/cli/chat/parser.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ use std::time::{
44
};
55

66
use eyre::Result;
7-
use rand::distr::{
8-
Alphanumeric,
9-
SampleString,
10-
};
117
use thiserror::Error;
128
use tracing::{
139
error,
@@ -105,7 +101,7 @@ pub struct ResponseParser {
105101

106102
impl ResponseParser {
107103
pub fn new(response: SendMessageOutput) -> Self {
108-
let message_id = Alphanumeric.sample_string(&mut rand::rng(), 9);
104+
let message_id = uuid::Uuid::new_v4().to_string();
109105
info!(?message_id, "Generated new message id");
110106
Self {
111107
response,

0 commit comments

Comments
 (0)