admin管理员组文章数量:1430551
When executing invoke()
the following error happens:
Errno 401 Client Error: Unauthorized for url: ] {"detail":"Using legacy API key. Please generate a new API key."}
I've created several API keys (yes, the new ones with the lsv2_pt bit), but am still getting an error.
The weird thing is we have another API key that's being used regularly for other tasks, and it works fine on a different machine, but when testing it with invoke()
and prompt.push()
, it won't work as well.
These are the environment variables I have set:
os.environ["LANGCHAIN_API_KEY"] = 'lsv2_pt_000000000000'
os.environ["LANGCHAIN_HUB_API_KEY"] = 'lsv2_pt_000000000000'
os.environ["LANGCHAIN_TRACING_V2"] = "true"
os.environ["LANGCHAIN_ENDPOINT"] = ";
pip list | grep lang
returns:
google-ai-generativelanguage 0.4.0
langchain 0.3.7
langchain-benchmarks 0.0.14
langchain-community 0.0.38
langchain-core 0.3.19
langchain-google-genai 0.0.9
langchain-openai 0.2.9
langchain-text-splitters 0.3.2
langchainhub 0.1.15
langsmith 0.1.129
I'm at a loss here. Any help will be appreciated!
本文标签: authorizationLangchain Unauthorized Legacy API KeyStack Overflow
版权声明:本文标题:authorization - Langchain Unauthorized Legacy API Key - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745549682a2662878.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论