mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-09-09 23:23:55 +08:00
using stream_fetch in App
This commit is contained in:
@@ -5,10 +5,8 @@ mod stream;
|
||||
|
||||
fn main() {
|
||||
tauri::Builder::default()
|
||||
.invoke_handler(tauri::generate_handler![stream::stream_fetch])
|
||||
.plugin(tauri_plugin_window_state::Builder::default().build())
|
||||
.register_uri_scheme_protocol("stream", move |app_handle, request| {
|
||||
stream::stream(app_handle, request)
|
||||
})
|
||||
.run(tauri::generate_context!())
|
||||
.expect("error while running tauri application");
|
||||
}
|
||||
|
Reference in New Issue
Block a user