Closed ahmad2b closed 3 weeks ago
@ahmad2b is attempting to deploy a commit to the LangChain Team on Vercel.
A member of the Team first needs to authorize it.
Thank you @bracesproul for the detailed review! I appreciate the clear guidance. I’ll revise the PR to:
No worries about the spec; I’m excited to implement these changes and will push the updates soon. Thanks again!
Great! Very excited to review again once ready. Please just dismiss my change request review & re-request. Thanks!
Hi @bracesproul! I’ve created a new PR (#136 ) for the requested changes to avoid conflicts with the main branch, as the main branch had substantial updates that would make merging challenging. All changes and improvements are now reflected there. Closing this PR to keep everything organized. Thank you for the guidance!
This PR implements flexible model selection system, allowing users to switch between OpenAI and Anthropic models while maintaining a consistent user experience.
Key technical aspects:
lib.ts
that provides uniform interface for different AI modelshttps://github.com/user-attachments/assets/5d7653f3-e0ff-462b-a914-24bcd0f54329
Changes Made
New Files
src/agent/lib.ts
- Core model abstraction and selection implementationModified Files
Core Changes
src/open-canvas/index.ts
,src/agent/open-canvas/state.ts
Updated model implementation across agent nodes in
src/agent/open-canvas/nodes/*
UI/UX Updates
ModelSelector.tsx
componentuseGraph.tsx
,useThread.tsx
) with model state supportTesting
Tested with:
Please let me know if any changes or additional information is needed.
Fixes #63