🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
🔨 chore: fix `[email protected]` runtime warning (#9063)
Arvin Xu8711ea244c8d
diff --git a/next.config.ts b/next.config.tsindex 5cef14b4a2e..e2ff8fad0ed 100644--- a/next.config.ts+++ b/next.config.ts@@ -271,6 +271,7 @@ const nextConfig: NextConfig = {// when external packages in dev mode with turbopack, this config will lead to bundle errorserverExternalPackages: isProd ? ['@electric-sql/pglite'] : undefined,transpilePackages: ['pdfjs-dist', 'mermaid'],+typescript: {ignoreBuildErrors: true,},diff --git a/package.json b/package.jsonindex 11dbf676a85..1efa9ed8d21 100644--- a/package.json+++ b/package.json@@ -158,7 +158,7 @@"@lobehub/charts": "^2.1.2","@lobehub/chat-plugin-sdk": "^1.32.4","@lobehub/chat-plugins-gateway": "^1.9.0",- "@lobehub/editor": "^1.8.5",+ "@lobehub/editor": "^1.9.2","@lobehub/icons": "^2.32.2","@lobehub/market-sdk": "^0.22.7","@lobehub/tts": "^2.0.1",diff --git a/packages/utils/src/toolManifest.ts b/packages/utils/src/toolManifest.tsindex 283161417a8..a6b410a2a67 100644--- a/packages/utils/src/toolManifest.ts+++ b/packages/utils/src/toolManifest.ts@@ -1,4 +1,4 @@-import { ChatCompletionTool , OpenAIPluginManifest } from '@lobechat/types';+import { ChatCompletionTool, OpenAIPluginManifest } from '@lobechat/types';import { LobeChatPluginManifest, pluginManifestSchema } from '@lobehub/chat-plugin-sdk';import { uniqBy } from 'lodash-es';@@ -107,17 +107,20 @@ export const getToolManifest = async (if (parser.data.openapi) {const openapiJson = await fetchJSON(parser.data.openapi, useProxy);- try {- const { OpenAPIConvertor } = await import('@lobehub/chat-plugin-sdk/openapi');+ // avoid https://github.com/lobehub/lobe-chat/issues/9059+ if (typeof window !== 'undefined') {+ try {+ const { OpenAPIConvertor } = await import('@lobehub/chat-plugin-sdk/openapi');- const convertor = new OpenAPIConvertor(openapiJson);- const openAPIs = await convertor.convertOpenAPIToPluginSchema();+ const convertor = new OpenAPIConvertor(openapiJson);+ const openAPIs = await convertor.convertOpenAPIToPluginSchema();- data.api = [...data.api, ...openAPIs];+ data.api = [...data.api, ...openAPIs];- data.settings = await convertor.convertAuthToSettingsSchema(data.settings);- } catch (error) {- throw new TypeError('openAPIInvalid', { cause: error });+ data.settings = await convertor.convertAuthToSettingsSchema(data.settings);+ } catch (error) {+ throw new TypeError('openAPIInvalid', { cause: error });+ }}}diff --git a/src/app/(backend)/webapi/chat/vertexai/route.ts b/src/app/(backend)/webapi/chat/vertexai/route.tsindex e03efcde640..a5bd8fb1421 100644--- a/src/app/(backend)/webapi/chat/vertexai/route.ts+++ b/src/app/(backend)/webapi/chat/vertexai/route.ts@@ -16,7 +16,7 @@ export const maxDuration = 300;// setGlobalDispatcher(new ProxyAgent({ uri: process.env.HTTP_PROXY_URL }));// }-export const POST = checkAuth(async (req: Request, { jwtPayload }) =>+export const POST: any = checkAuth(async (req: Request, { jwtPayload }) =>UniverseRoute(req, {createRuntime: () => {const googleAuthStr = jwtPayload.apiKey ?? process.env.VERTEXAI_CREDENTIALS ?? undefined;