fix(ai-orchestrator): upgrade @langchain/anthropic and openai to ^0.3.x#133
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
Pull request overview
Upgrades LangChain provider integrations used by the ai-orchestrator Nx project so the system can call newer Anthropic (Claude 3.5 Sonnet) models, and updates the pnpm lockfile accordingly.
Changes:
- Bumped
@langchain/anthropicand@langchain/openaito the0.3.xline in the rootpackage.json. - Aligned
libs/ai-orchestrator/package.jsonLangChain dependencies to match the root versions. - Regenerated
pnpm-lock.yaml, bringing in newer transitive deps (notably@anthropic-ai/sdk@0.65.0).
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
package.json |
Updates root LangChain dependency ranges for Anthropic/OpenAI. |
libs/ai-orchestrator/package.json |
Aligns orchestrator LangChain dependencies to the root versions. |
pnpm-lock.yaml |
Records the resolved dependency graph for the LangChain upgrades (and updated transitive deps). |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Resolves #129
Upgraded
@langchain/anthropicfrom 0.1.0 to ^0.3.34 and@langchain/openaifrom 0.2.0 to ^0.3.17 to support Claude 3.5 Sonnet API calls. The older anthropic 0.1.0 package sends the2023-06-01API header which blocks access to models released after June 2024. The 0.3.x versions use the current Anthropic API version header.Changes
package.json:@langchain/anthropic0.1.0 → ^0.3.x,@langchain/openai0.2.0 → ^0.3.xlibs/ai-orchestrator/package.jsondependencies to match root versionspnpm-lock.yamlwith updated dependency treeai-orchestratorunit tests pass with upgraded packagesCopilot Review Triage
Deferred follow-ups
None
Acceptance Criteria Met:
✓
package.jsonreflects v0.3.x for@langchain/anthropicand@langchain/openai✓ All
ai-orchestratorunit tests pass (275 passing)✓ Ready for Mac Mini integration test:
/querywitha11ypersona to verify Claude 3.5 Sonnet API communication