1
0

Compare commits

...

4 Commits

Author SHA1 Message Date
f40f6c6ba7
fix
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 15s
2024-11-08 08:12:08 +09:00
4e36370f93
update gpt-4o-mini
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 11s
2024-08-24 04:44:36 +09:00
f7a251faec
fix
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 5s
2024-08-18 04:01:49 +09:00
4a3965efcd
fix
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s
2024-08-18 02:23:01 +09:00
3 changed files with 2 additions and 6 deletions

View File

@ -60,7 +60,6 @@ pub fn c_feed_watch(c: &Context) {
if check_cid == false && { prompt.is_empty() == false || com.is_empty() == false } { if check_cid == false && { prompt.is_empty() == false || com.is_empty() == false } {
println!("{}", handle); println!("{}", handle);
if c.bool_flag("debug") == true { if c.bool_flag("debug") == true {
println!( println!(
"cid:{}\nuri:{}\ncid_root:{}\nuri_root:{}\nhost:{}\ndid:{}\ncheck_cid:{}", "cid:{}\nuri:{}\ncid_root:{}\nuri_root:{}\nhost:{}\ndid:{}\ncheck_cid:{}",

View File

@ -146,7 +146,7 @@ fn main() {
) )
.command( .command(
Command::new("delete") Command::new("delete")
.description("d <rkey>") .description("d <rkey> -c <collection>")
.alias("d") .alias("d")
.action(delete) .action(delete)
.flag( .flag(
@ -358,15 +358,12 @@ fn refresh(_c: &Context) {
let session = session::get_request().await; let session = session::get_request().await;
if session == "err" { if session == "err" {
let res = refresh::post_request().await; let res = refresh::post_request().await;
println!("{}", res);
if res == "err" { if res == "err" {
let m = data_toml(&"handle"); let m = data_toml(&"handle");
let p = data_toml(&"password"); let p = data_toml(&"password");
let s = data_toml(&"host"); let s = data_toml(&"host");
println!("handle:{}, pass:{}, host:{}", m, p, s);
let res = token::post_request(m.to_string(), p.to_string(), s.to_string()).await; let res = token::post_request(m.to_string(), p.to_string(), s.to_string()).await;
w_cfg(&s, &res, &p); w_cfg(&s, &res, &p);
println!("res:{}", res);
} else { } else {
w_refresh(&res); w_refresh(&res);
} }

View File

@ -33,7 +33,7 @@ pub async fn post_request(prompt: String) -> String {
"; ";
let post = Some(json!({ let post = Some(json!({
"model": "gpt-3.5-turbo", "model": "gpt-4o-mini",
"messages": [ "messages": [
{"role": "system", "content": &setting.to_string()}, {"role": "system", "content": &setting.to_string()},
{"role": "user", "content": &prompt.to_string()}, {"role": "user", "content": &prompt.to_string()},