|
|
@ -155,7 +155,11 @@ impl EventHandler for Handler {
|
|
|
|
.await
|
|
|
|
.await
|
|
|
|
.unwrap();
|
|
|
|
.unwrap();
|
|
|
|
|
|
|
|
|
|
|
|
let response = response.choices[0].message.content.as_str();
|
|
|
|
let mut response = response.choices[0].message.content.as_str();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if let Some(unprefixed) = response.strip_prefix("Smolhaj: ") {
|
|
|
|
|
|
|
|
response = unprefixed;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
let is_appropriate = !self
|
|
|
|
let is_appropriate = !self
|
|
|
|
.client
|
|
|
|
.client
|
|
|
|