Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix[community]: Fixed missing tool_choice in call options of chat IBM #7192

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

FilipZmijewski
Copy link
Contributor

@FilipZmijewski FilipZmijewski commented Nov 12, 2024

Fixed missing tool_choice in call options of chat model.
Was not aware of this issue until actually looking into langgraph implementation, maybe there could be an option to avoid such problems in the future?

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Nov 12, 2024
Copy link

vercel bot commented Nov 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
langchainjs-docs ✅ Ready (Inspect) Visit Preview Nov 12, 2024 9:13am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
langchainjs-api-refs ⬜️ Ignored (Inspect) Nov 12, 2024 9:13am

@dosubot dosubot bot added the auto:bug Related to a bug, vulnerability, unexpected error with an existing feature label Nov 12, 2024
@FilipZmijewski
Copy link
Contributor Author

@jacoblee93 This is very simple fix if you could have a look at it, please. Did not manage to see the issue until updating package in langgraph based project. And receiving and error that types on llm do not match. Thank you.
Screenshot 2024-11-12 at 10 19 36
Fixed in this PR.

@@ -86,6 +87,7 @@ export interface WatsonxCallOptionsChat
extends Omit<BaseLanguageModelCallOptions, "stop">,
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should extend BaseChatModelCallOptions to prevent this in the future

@jacoblee93
Copy link
Collaborator

jacoblee93 commented Nov 12, 2024

Thanks! See comment but happy to merge and cut for now

Are you sure this fixes it actually?

@FilipZmijewski
Copy link
Contributor Author

FilipZmijewski commented Nov 12, 2024

yes, checked locally with langgraph, will fix accordingly to your comment in the next PR then.

@jacoblee93 jacoblee93 merged commit 1a1b7a6 into langchain-ai:main Nov 12, 2024
32 checks passed
FilipZmijewski added a commit to FilipZmijewski/langchainjs that referenced this pull request Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto:bug Related to a bug, vulnerability, unexpected error with an existing feature size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants