chore: sync

This commit is contained in:
lencx
2022-12-22 08:59:58 +08:00
parent d513a50e27
commit 2d826c90a0
22 changed files with 116 additions and 47 deletions

View File

@@ -15,7 +15,8 @@ use tauri_plugin_log::{
LogTarget, LoggerBuilder,
};
fn main() {
#[tokio::main]
async fn main() {
ChatConfJson::init();
let chat_conf = ChatConfJson::get_chat_conf();
let context = tauri::generate_context!();
@@ -59,6 +60,7 @@ fn main() {
cmd::open_file,
cmd::get_chat_model,
cmd::parse_prompt,
cmd::window_reload,
fs_extra::metadata,
])
.setup(setup::init)