mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-09 00:47:28 +08:00
hotfix
This commit is contained in:
@@ -48,7 +48,7 @@ export const FunctionToolService = {
|
||||
? ` Bearer ${plugin?.authToken}`
|
||||
: plugin?.authToken;
|
||||
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 api = new OpenAPIClientAxios({
|
||||
definition: yaml.load(plugin.content) as any,
|
||||
|
Reference in New Issue
Block a user