1
0

fix
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s

This commit is contained in:
syui 2024-04-13 11:25:58 +09:00
parent 0cf4159afc
commit 730b997cab
Signed by: syui
GPG Key ID: 5417CFEBAD92DF56

View File

@ -556,7 +556,7 @@ pub fn c_bot_feed(c: &Context) {
let mut prompt_sub = "".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(" ");
} else {
prompt = vec[1..].join(" ");
@ -931,7 +931,7 @@ pub fn c_bot_feed(c: &Context) {
println!("{}", str_rep);
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 text_limit = c_char(str_openai);
let str_rep = reply::post_request(