Compare commits
4 Commits
d2a394cec2
...
f40f6c6ba7
Author | SHA1 | Date | |
---|---|---|---|
f40f6c6ba7 | |||
4e36370f93 | |||
f7a251faec | |||
4a3965efcd |
@ -60,7 +60,6 @@ pub fn c_feed_watch(c: &Context) {
|
||||
|
||||
if check_cid == false && { prompt.is_empty() == false || com.is_empty() == false } {
|
||||
println!("{}", handle);
|
||||
|
||||
if c.bool_flag("debug") == true {
|
||||
println!(
|
||||
"cid:{}\nuri:{}\ncid_root:{}\nuri_root:{}\nhost:{}\ndid:{}\ncheck_cid:{}",
|
||||
|
@ -146,7 +146,7 @@ fn main() {
|
||||
)
|
||||
.command(
|
||||
Command::new("delete")
|
||||
.description("d <rkey>")
|
||||
.description("d <rkey> -c <collection>")
|
||||
.alias("d")
|
||||
.action(delete)
|
||||
.flag(
|
||||
@ -358,15 +358,12 @@ fn refresh(_c: &Context) {
|
||||
let session = session::get_request().await;
|
||||
if session == "err" {
|
||||
let res = refresh::post_request().await;
|
||||
println!("{}", res);
|
||||
if res == "err" {
|
||||
let m = data_toml(&"handle");
|
||||
let p = data_toml(&"password");
|
||||
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;
|
||||
w_cfg(&s, &res, &p);
|
||||
println!("res:{}", res);
|
||||
} else {
|
||||
w_refresh(&res);
|
||||
}
|
||||
|
@ -33,7 +33,7 @@ pub async fn post_request(prompt: String) -> String {
|
||||
";
|
||||
|
||||
let post = Some(json!({
|
||||
"model": "gpt-3.5-turbo",
|
||||
"model": "gpt-4o-mini",
|
||||
"messages": [
|
||||
{"role": "system", "content": &setting.to_string()},
|
||||
{"role": "user", "content": &prompt.to_string()},
|
||||
|
Loading…
x
Reference in New Issue
Block a user