Add V2 plugin

This commit is contained in:
Kwaroran
2024-12-20 23:45:07 +09:00
parent e5e01d0688
commit 7cd49fc8c3
17 changed files with 426 additions and 34 deletions

View File

@@ -357,12 +357,14 @@ async fn streamed_fetch(
return format!(r#"{{"success":false,"body":"Invalid header JSON"}}"#);
}
let body_decoded = general_purpose::STANDARD.decode(body.as_bytes()).unwrap();
let client = reqwest::Client::new();
let response = client
.post(&url)
.headers(headers)
.timeout(Duration::from_secs(240))
.body(body)
.body(body_decoded)
.send()
.await;

View File

@@ -29,7 +29,7 @@
},
"productName": "RisuAI",
"mainBinaryName": "RisuAI",
"version": "143.9.1",
"version": "144.0.0",
"identifier": "co.aiclient.risu",
"plugins": {
"updater": {