forked from GithubProxy/ChatGPT-Next-Web
hotfix
This commit is contained in:
parent
f652f73260
commit
877668b629
@ -48,7 +48,7 @@ export const FunctionToolService = {
|
|||||||
? ` Bearer ${plugin?.authToken}`
|
? ` Bearer ${plugin?.authToken}`
|
||||||
: plugin?.authToken;
|
: plugin?.authToken;
|
||||||
const definition = yaml.load(plugin.content) as any;
|
const definition = yaml.load(plugin.content) as any;
|
||||||
const serverURL = definition.servers?.[0]?.url;
|
const serverURL = definition?.servers?.[0]?.url;
|
||||||
const baseURL = !!plugin?.usingProxy ? "/api/proxy" : serverURL;
|
const baseURL = !!plugin?.usingProxy ? "/api/proxy" : serverURL;
|
||||||
const api = new OpenAPIClientAxios({
|
const api = new OpenAPIClientAxios({
|
||||||
definition: yaml.load(plugin.content) as any,
|
definition: yaml.load(plugin.content) as any,
|
||||||
|
Loading…
Reference in New Issue
Block a user