Skip to content

Conversation

@Orenoid
Copy link
Contributor

@Orenoid Orenoid commented Dec 9, 2025

Summary

This PR fixes #8211.

Changes

  • Implemented the bindTools method for ChatZhipuAI, adding support for tool calling in both invoke and stream.
  • Fixed two previously failing tests whose expected errors do not occur because ZhipuAI’s API actually handles these cases correctly.

@changeset-bot
Copy link

changeset-bot bot commented Dec 9, 2025

⚠️ No Changeset found

Latest commit: 4e7b78a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions github-actions bot added community Issues related to `@langchain/community` pkg:@langchain/community labels Dec 9, 2025
description: "illegal input in streaming mode should throw an error",
streaming: true,
temperature: 0,
temperature: -1,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for some reason, ZhipuAI's API works fine with the original parameters (temperature: 0), and the test expecting an error doesn't pass any more. changed it to an invalid one therefore.

@Orenoid Orenoid force-pushed the feature/zhipu-tools-calling branch from d840d17 to 9c112a8 Compare December 22, 2025 11:35
Copy link
Member

@christian-bromann christian-bromann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community Issues related to `@langchain/community` pkg:@langchain/community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

How to implement bindtools and call agent in ChatZhipuAI

2 participants