mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-09 00:15:38 +08:00
using tauri http api run plugin to fixed cors in App
This commit is contained in:
@@ -4,6 +4,7 @@ import { StoreKey } from "../constant";
|
||||
import { nanoid } from "nanoid";
|
||||
import { createPersistStore } from "../utils/store";
|
||||
import yaml from "js-yaml";
|
||||
import { adapter } from "../utils";
|
||||
|
||||
export type Plugin = {
|
||||
id: string;
|
||||
@@ -61,6 +62,7 @@ export const FunctionToolService = {
|
||||
const api = new OpenAPIClientAxios({
|
||||
definition: yaml.load(plugin.content) as any,
|
||||
axiosConfigDefaults: {
|
||||
adapter: adapter as any,
|
||||
baseURL,
|
||||
headers,
|
||||
},
|
||||
|
Reference in New Issue
Block a user