feat: simplify message content in hear_talk function
Removed the redundant "I heard: " prefix from the message content in the execute_talk function. The message is now stored as-is without additional formatting, making it more straightforward and consistent with other message handling.
This commit is contained in:
parent
a5d3343c09
commit
6e36384f45
2 changed files with 481 additions and 128 deletions
|
|
@ -96,7 +96,7 @@ pub async fn execute_talk(state: Arc<AppState>, user: UserSession, message: Stri
|
||||||
user_id: "default_user".to_string(),
|
user_id: "default_user".to_string(),
|
||||||
session_id: user.id.to_string(),
|
session_id: user.id.to_string(),
|
||||||
channel: "web".to_string(),
|
channel: "web".to_string(),
|
||||||
content: format!("I heard: {}", message),
|
content: message,
|
||||||
message_type: 1,
|
message_type: 1,
|
||||||
stream_token: None,
|
stream_token: None,
|
||||||
is_complete: true,
|
is_complete: true,
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue