为什么无法导入glm #1050

Closed
opened 2026-02-20 17:42:53 -05:00 by yindo · 0 comments
Owner

Originally created by @hnking-star on GitHub (Nov 11, 2025).

Checked other resources

  • This is a bug, not a usage question. For questions, please use the LangChain Forum (https://forum.langchain.com/).
  • I added a clear and detailed title that summarizes the issue.
  • I read what a minimal reproducible example is (https://stackoverflow.com/help/minimal-reproducible-example).
  • I included a self-contained, minimal example that demonstrates the issue INCLUDING all the relevant imports. The code run AS IS to reproduce the issue.

Example Code

os.environ["ZHIPUAI_API_KEY"] = "key"

model = ChatOpenAI(
    temperature=0.6,
    model="glm-4.6",
    openai_api_key=os.environ["ZHIPUAI_API_KEY"],
    openai_api_base="https://open.bigmodel.cn/api/coding/paas/v4"
)

Error Message and Stack Trace (if applicable)


Description

无法运行

System Info

无法运行

Originally created by @hnking-star on GitHub (Nov 11, 2025). ### Checked other resources - [x] This is a bug, not a usage question. For questions, please use the LangChain Forum (https://forum.langchain.com/). - [x] I added a clear and detailed title that summarizes the issue. - [x] I read what a minimal reproducible example is (https://stackoverflow.com/help/minimal-reproducible-example). - [x] I included a self-contained, minimal example that demonstrates the issue INCLUDING all the relevant imports. The code run AS IS to reproduce the issue. ### Example Code ```python os.environ["ZHIPUAI_API_KEY"] = "key" model = ChatOpenAI( temperature=0.6, model="glm-4.6", openai_api_key=os.environ["ZHIPUAI_API_KEY"], openai_api_base="https://open.bigmodel.cn/api/coding/paas/v4" ) ``` ### Error Message and Stack Trace (if applicable) ```shell ``` ### Description 无法运行 ### System Info 无法运行
yindo added the bugpending labels 2026-02-20 17:42:53 -05:00
yindo closed this issue 2026-02-20 17:42:53 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#1050