无法使用 `GOOGLE_APPLICATION_CREDENTIALS` 创建 `ChatGoogle` LLM
err: { "type": "AuthError", "message": "No authentication method available. Please provide either an apiKey or credentials.", "stack": AuthError: No authentication method available. Please provide either an apiKey or credentials. at WebApiClient.fetch (file:///usr/src/app/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected]_/node_modules/@LangChain/google/dist/clients/index.js:207:48) at file:///usr/src/app/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected]_/node_modules/@LangChain/google/dist/chat_models/base.js:298:47 at pRetry.onFailedAttempt.error.error (file:///usr/src/app/node_modules/.pnpm/@[email protected]_@[email protected][email protected]/node_modules/@LangChain/core/dist/utils/async_caller.js:191:44) at pRetry (file:///usr/src/app/node_modules/.pnpm/@[email protected]_@[email protected][email protected]/node_modules/@LangChain/core/dist/utils/p-retry/index.js:124:25) at queue.add.throwOnTimeout (file:///usr/src/app/node_modules/.pnpm/@[email protected]_@[email protected][email protected]/node_modules/@LangChain/core/dist/utils/async_caller.js:191:31) at run (/usr/src/app/node_modules/.pnpm/[email protected]/node_modules/p-queue/dist/index.js:157:104) at PQueue._tryToStartAnother (/usr/src/app/node_modules/.pnpm/[email protected]/node_modules/p-queue/dist/index.js:105:17) at /usr/src/app/node_modules/.pnpm/[email protected]/node_modules/p-queue/dist/index.js:171:18 at …
内容来源: langchain-ai/langchainjs