This commit is contained in:
parent
0cf4159afc
commit
730b997cab
@ -556,7 +556,7 @@ pub fn c_bot_feed(c: &Context) {
|
|||||||
let mut prompt_sub = "".to_string();
|
let mut prompt_sub = "".to_string();
|
||||||
let mut prompt_chat = "".to_string();
|
let mut prompt_chat = "".to_string();
|
||||||
|
|
||||||
if com == "@ai" || com == "/ai" || com == "ai" {
|
if com == "@ai" || com == "/ai" {
|
||||||
prompt_chat = vec[1..].join(" ");
|
prompt_chat = vec[1..].join(" ");
|
||||||
} else {
|
} else {
|
||||||
prompt = vec[1..].join(" ");
|
prompt = vec[1..].join(" ");
|
||||||
@ -931,7 +931,7 @@ pub fn c_bot_feed(c: &Context) {
|
|||||||
println!("{}", str_rep);
|
println!("{}", str_rep);
|
||||||
w_cid(cid.to_string(), log_file(&"n1"), true);
|
w_cid(cid.to_string(), log_file(&"n1"), true);
|
||||||
}
|
}
|
||||||
} else if com == "@ai" || com == "/ai" || com == "ai" {
|
} else if com == "@ai" || com == "/ai" {
|
||||||
let str_openai = openai::post_request(prompt_chat.to_string()).await;
|
let str_openai = openai::post_request(prompt_chat.to_string()).await;
|
||||||
let text_limit = c_char(str_openai);
|
let text_limit = c_char(str_openai);
|
||||||
let str_rep = reply::post_request(
|
let str_rep = reply::post_request(
|
||||||
|
Loading…
Reference in New Issue
Block a user