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

community[minor]: Update bedrock to accept openai formatted tools #5852

Merged
merged 3 commits into from
Jun 22, 2024

Conversation

bracesproul
Copy link
Member

No description provided.

Copy link

vercel bot commented Jun 21, 2024

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

Name Status Preview Comments Updated (UTC)
langchainjs-api-refs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 21, 2024 11:59pm
langchainjs-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 21, 2024 11:59pm

@bracesproul bracesproul marked this pull request as ready for review June 21, 2024 22:17
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. auto:improvement Medium size change to existing code to handle new use-cases labels Jun 21, 2024
@@ -35,7 +35,7 @@
"author": "LangChain",
Copy link

Choose a reason for hiding this comment

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

Hey there! I noticed the update to the "@langchain/core" dependency from "~0.2.6" to "~0.2.9" in the package.json. This seems to be a change in the hard dependency, and I'm flagging this for your review. Keep up the great work!

@@ -383,3 +385,103 @@ test.skip.each([
Copy link

Choose a reason for hiding this comment

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

Hey team, I've flagged this PR for review because the added code explicitly accesses environment variables using process.env. Please review this change to ensure proper handling of environment variables.

@@ -12,9 +12,11 @@ class BedrockChatStandardUnitTests extends ChatModelUnitTests<
constructor() {
Copy link

Choose a reason for hiding this comment

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

Hey there! I noticed that this PR includes changes that explicitly add environment variables via process.env. I've flagged this for your review to ensure it aligns with our best practices. Keep up the great work!

@@ -11,8 +11,8 @@ class ChatTogetherAIStandardUnitTests extends ChatModelUnitTests<
constructor() {
Copy link

Choose a reason for hiding this comment

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

Hey team, just wanted to flag this PR for your review as it includes a change that explicitly accesses and sets an environment variable using process.env. Please take a look and ensure it aligns with our best practices. Thanks!

@bracesproul bracesproul merged commit 91aacde into main Jun 22, 2024
33 checks passed
@bracesproul bracesproul deleted the brace/bedrock-accept-oai-tools branch June 22, 2024 00:14
@@ -383,3 +385,103 @@ test.skip.each([

expect(res.content.length).toBeGreaterThan(1);
});

test.skip("withStructuredOutput", async () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

@bracesproul Do you plan to add withStructuredOutput as well, since you added this skipped tests? I was just poking around trying to understand why it's not currently supported, given that tool calling in general appears to work well with Claude on Bedrock.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto:improvement Medium size change to existing code to handle new use-cases size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants