本页还没有译文
本页 6 段还没译成한국어,下面显示的是英文原文。MODEL_AUTHENTICATION
还没翻译译自英文(docs.langchain.com)本页 6 段都还没译
Note
Currently only used in langchainjs (JavaScript/TypeScript).
Your model provider is denying you access to their service.
This error typically occurs when there's an issue with your authentication credentials or API keys.
Troubleshooting
- Confirm that your API key or authentication credentials are accurate and valid.
- If using environment-based authentication, verify:
- The variable name is spelled correctly
- The variable contains an assigned value
- Third-party packages like
dotenvhaven't interfered with loading
- If using a proxy or non-standard endpoint, make sure that your custom provider does not expect an alternative authentication scheme.
- Bypass environment variable issues by passing credentials explicitly:
from langchain_openai import ChatOpenAI
model = ChatOpenAI(api_key="YOUR_KEY_HERE")AI 翻译查看英文原文