diff --git a/plugins.md b/plugins.md index 115db9ef..f29edbc6 100644 --- a/plugins.md +++ b/plugins.md @@ -46,7 +46,7 @@ Fetches a URL with a native API, which doesn't have CORS restrictions. - `data: any` - The response data which is parsed JSON if possible. if `rawResponse` is true, it will be a Uint8Array. - `headers: Record` - The response headers. -### `nativeFetch(url: string, arg: NativeFetchArg = {}): Promise` +### `nativeFetch(url: string, arg: NativeFetchArg = {}): Promise` Fetches a URL with the native API, which doesn't have CORS restrictions. this API is designed as a subset of [fetch api](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API), except it doesn't have CORS restrictions and default method is `POST`. @@ -61,13 +61,7 @@ Fetches a URL with the native API, which doesn't have CORS restrictions. this AP #### Returns -- `Promise` - The fetch result. - - `body: ReadableStream` - The response body. - - `headers: Headers` - The response headers. - - `status: number` - The response status. - - `json: () => Promise` - A function that returns a promise that resolves to the JSON representation of the response body. - - `text: () => Promise` - A function that returns a promise that resolves to the text representation of the response body. - - `arrayBuffer: () => Promise` - A function that returns a promise that resolves to the ArrayBuffer representation of the response body. +- `Promise` - The fetch result, in a [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) object. ### `getArg(name: string): string|number` diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 88e3dfa3..30b046dd 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -29,7 +29,7 @@ }, "productName": "RisuAI", "mainBinaryName": "RisuAI", - "version": "144.3.1", + "version": "144.4.0", "identifier": "co.aiclient.risu", "plugins": { "updater": { diff --git a/src/ts/storage/database.svelte.ts b/src/ts/storage/database.svelte.ts index 3619b22d..b1400ecf 100644 --- a/src/ts/storage/database.svelte.ts +++ b/src/ts/storage/database.svelte.ts @@ -12,7 +12,7 @@ import { defaultColorScheme, type ColorScheme } from '../gui/colorscheme'; import type { PromptItem, PromptSettings } from '../process/prompt'; import type { OobaChatCompletionRequestParams } from '../model/ooba'; -export let appVer = "144.3.1" +export let appVer = "144.4.0" export let webAppSubVer = '' diff --git a/version.json b/version.json index 12c6d6d8..8843f4a0 100644 --- a/version.json +++ b/version.json @@ -1 +1 @@ -{"version":"144.3.1"} \ No newline at end of file +{"version":"144.4.0"} \ No newline at end of file