[feat] android support

This commit is contained in:
kwaroran
2024-01-01 23:14:58 +09:00
parent 0fb9beb5ea
commit 2442b287ff
91 changed files with 3203 additions and 65 deletions

View File

@@ -19,6 +19,7 @@ import { v4 } from "uuid";
import { cloneDeep } from "lodash";
import { supportsInlayImage } from "../image";
import { OaifixEmdash } from "../plugins/fixer";
import { Capacitor } from "@capacitor/core";
@@ -483,7 +484,7 @@ export async function requestChatDataMain(arg:requestDataArgument, model:'model'
// @ts-ignore
body.n = db.genTime
}
let throughProxi = (!isTauri) && (!isNodeServer) && (!db.usePlainFetch)
let throughProxi = (!isTauri) && (!isNodeServer) && (!db.usePlainFetch) && (!Capacitor.isNativePlatform())
if(db.useStreaming && arg.useStreaming && (!multiGen)){
body.stream = true
let urlHost = new URL(replacerURL).host