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

Add ChatModels wrapper for Cloudflare Workers AI #27645

Merged

Conversation

AkshataDM
Copy link
Contributor

@AkshataDM AkshataDM commented Oct 25, 2024

Thank you for contributing to LangChain!

  • PR title: "community: chat models wrapper for Cloudflare Workers AI"

  • PR message:

    • Description: Add chat models wrapper for Cloudflare Workers AI. Enables Langgraph intergration via ChatModel for tool usage, agentic usage.
  • Add tests and docs: If you're adding a new integration, please include

    1. a test for the integration, preferably unit tests that do not rely on network access,
    2. an example notebook showing its use. It lives in docs/docs/integrations directory.
  • Lint and test: Run make format, make lint and make test from the root of the package(s) you've modified. See contribution guidelines for more: https://python.langchain.com/docs/contributing/

Additional guidelines:

  • Make sure optional dependencies are imported within a function.
  • Please do not add dependencies to pyproject.toml files (even optional ones) unless they are required for unit tests.
  • Most PRs should not touch more than one package.
  • Changes should be backwards compatible.
  • If you are adding something to community, do not re-import it in langchain.

If no one reviews your PR within a few days, please @-mention one of baskaryan, efriis, eyurtsev, ccurme, vbarda, hwchase17.

Copy link

vercel bot commented Oct 25, 2024

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

Name Status Preview Comments Updated (UTC)
langchain ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 7, 2024 7:45pm

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. community Related to langchain-community labels Oct 25, 2024
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Oct 29, 2024
@AkshataDM
Copy link
Contributor Author

AkshataDM commented Oct 31, 2024

hello, @eyurtsev/ @ccurme could i get some reviews on this? it would accelerate building AI Agents with Langgraph and Cloudflare workers AI. thanks!

@AkshataDM AkshataDM force-pushed the akshata/cloudflare-workersai-chatmodel branch from dfd0c5c to e9b366a Compare October 31, 2024 19:56
@AkshataDM AkshataDM force-pushed the akshata/cloudflare-workersai-chatmodel branch from e9b366a to 9c74b66 Compare October 31, 2024 22:17
@dosubot dosubot bot added size:XL This PR changes 500-999 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Oct 31, 2024
@Talador12
Copy link

Awesome work on this one, thank you for contributing this!

@AkshataDM
Copy link
Contributor Author

AkshataDM commented Nov 1, 2024

@vbarda could I get a review on this when you get a chance please?

PR has passed all lint and formatting tests. It has also community support of at least 5 upvotes on the PR.

@efriis efriis self-assigned this Nov 7, 2024
@dosubot dosubot bot added the lgtm PR looks good. Use to confirm that a PR is ready for merging. label Nov 7, 2024
@efriis efriis enabled auto-merge (squash) November 7, 2024 03:16
@AkshataDM
Copy link
Contributor Author

@efriis thanks for looking into this PR! Looks like a few linting checks failed on the documentation notebook. I will be looking into this but in the meantime if you have any other suggestions please let me know

auto-merge was automatically disabled November 7, 2024 14:42

Head branch was pushed to by a user without write access

@AkshataDM AkshataDM force-pushed the akshata/cloudflare-workersai-chatmodel branch from 237ff8f to b37d2ef Compare November 7, 2024 17:13
@ccurme ccurme merged commit 05fd6a1 into langchain-ai:master Nov 7, 2024
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Related to langchain-community lgtm PR looks good. Use to confirm that a PR is ready for merging. size:XL This PR changes 500-999 lines, ignoring generated files.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants