|
@@ -62,7 +62,7 @@ export const FunctionToolService = {
|
|
|
const api = new OpenAPIClientAxios({
|
|
const api = new OpenAPIClientAxios({
|
|
|
definition: yaml.load(plugin.content) as any,
|
|
definition: yaml.load(plugin.content) as any,
|
|
|
axiosConfigDefaults: {
|
|
axiosConfigDefaults: {
|
|
|
- adapter: adapter as any,
|
|
|
|
|
|
|
+ adapter: (window.__TAURI__ ? adapter : ["xhr"]) as any,
|
|
|
baseURL,
|
|
baseURL,
|
|
|
headers,
|
|
headers,
|
|
|
},
|
|
},
|