LangChain 是一個用於建構由 LLM 驅動應用程式的熱門框架。CometAPI 與Documentation Index
Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt
Use this file to discover all available pages before exploring further.
langchain-openai 完全相容——只要將它指向我們的 base URL 即可。
先決條件
- 已安裝 Python 3.8+ 與
langchain-openai(pip install langchain-openai) - 擁有具備有效 API key 的 CometAPI 帳戶
設定
取得你的 CometAPI API key



