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

refactor: Bump LangChain to 0.1 & update other LangChain imports #13622

Merged
merged 1 commit into from
Feb 10, 2024

Conversation

bracesproul
Copy link
Contributor

@bracesproul bracesproul commented Feb 9, 2024

What does this PR do?

  • Bumps langchain to latest (0.1!)
  • Adds @langchain/core for DynamicStructuredTool imports
  • Adds @langchain/openai for ChatOpenAI imports

Type of change

  • Chore (refactoring code, technical debt, workflow improvements)

Mandatory Tasks

  • Make sure you have self-reviewed the code. A decent size PR without self-review might be rejected.

Copy link

vercel bot commented Feb 9, 2024

@bracesproul is attempting to deploy a commit to the cal Team on Vercel.

A member of the Team first needs to authorize it.

@CLAassistant
Copy link

CLAassistant commented Feb 9, 2024

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

github-actions bot commented Feb 9, 2024

Thank you for following the naming conventions! 🙏 Feel free to join our discord and post your PR link.

@bracesproul bracesproul changed the title [patch]: Bump LangChain to 0.1 & update other LangChain imports refactor: Bump LangChain to 0.1 & update other LangChain imports Feb 9, 2024
Copy link
Contributor

github-actions bot commented Feb 9, 2024

📦 Next.js Bundle Analysis for @calcom/web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@keithwillcode keithwillcode requested a review from a team February 9, 2024 22:05
@keithwillcode keithwillcode added Low priority Created by Linear-GitHub Sync community Created by Linear-GitHub Sync foundation labels Feb 9, 2024
@keithwillcode keithwillcode added this to the v3.9 milestone Feb 9, 2024
Copy link

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@anthropic-ai/sdk@0.9.1 environment, network Transitive: filesystem +30 16.1 MB zak-anthropic
npm/@babel/compat-data@7.22.9 None 0 64.1 kB nicolo-ribaudo
npm/@babel/helper-create-class-features-plugin@7.23.5 Transitive: environment, filesystem, shell, unsafe +56 10.9 MB nicolo-ribaudo
npm/@babel/plugin-syntax-import-assertions@7.22.5 Transitive: environment, filesystem, shell, unsafe +52 10.6 MB nicolo-ribaudo
npm/@babel/plugin-syntax-jsx@7.22.5 Transitive: environment, filesystem, shell, unsafe +52 10.6 MB nicolo-ribaudo
npm/@babel/plugin-transform-classes@7.23.5 Transitive: environment, filesystem, shell, unsafe +57 10.8 MB nicolo-ribaudo
npm/@babel/plugin-transform-for-of@7.23.3 Transitive: environment, filesystem, shell, unsafe +52 10.6 MB nicolo-ribaudo
npm/@langchain/community@0.0.26 Transitive: environment, eval, filesystem, network, shell, unsafe +453 655 MB basproul, hwchase17, jacoblee93, ...2 more
npm/@langchain/core@0.1.26 Transitive: environment, filesystem, shell +24 9.71 MB basproul, hwchase17, jacoblee93, ...2 more
npm/@langchain/openai@0.0.14 Transitive: environment, filesystem, network, shell +55 23.4 MB jacoblee93
npm/@panva/hkdf@1.1.1 None 0 12.6 kB panva
npm/@tanstack/query-core@5.17.19 environment 0 1.81 MB tannerlinsley
npm/@tanstack/react-query@5.17.19 environment +4 4.07 MB tannerlinsley
npm/copy-anything@3.0.2 None +1 57.1 kB mesqueeb
npm/graphql@16.5.0 environment 0 1.34 MB i1g
npm/js-tiktoken@1.0.10 None +1 6.59 MB davidduong
npm/langchain@0.1.17 Transitive: environment, eval, filesystem, network, shell, unsafe +471 669 MB basproul
npm/langchainhub@0.0.6 network 0 32.8 kB jacoblee93
npm/openai@4.27.0 environment, network Transitive: filesystem +29 13.4 MB dschnurr-openai
npm/preact-render-to-string@5.2.6 None +2 398 kB marvinhagemeister
npm/preact@10.19.4 None 0 0 B

🚮 Removed packages: npm/@0no-co/graphql.web@1.0.4, npm/@47ng/cloak@1.1.0, npm/@47ng/codec@1.1.0, npm/@algora/sdk@0.1.3, npm/@anthropic-ai/sdk@0.5.10, npm/@ardatan/sync-fetch@0.0.1, npm/@auth/core@0.1.4, npm/@babel/helper-create-class-features-plugin@7.23.10, npm/@babel/plugin-proposal-class-properties@7.18.6, npm/@babel/plugin-proposal-object-rest-spread@7.20.7, npm/@babel/plugin-transform-classes@7.23.8, npm/@babel/plugin-transform-for-of@7.23.6, npm/@datocms/cma-client-node@2.2.6, npm/@datocms/cma-client@2.2.6, npm/@datocms/rest-client-utils@1.3.3, npm/@fastify/busboy@2.1.0, npm/@flodlc/nebula@1.0.56, npm/@graphql-codegen/add@5.0.1, npm/@graphql-codegen/cli@5.0.1, npm/@graphql-codegen/client-preset@4.2.2, npm/@graphql-codegen/core@4.0.2, npm/@graphql-codegen/gql-tag-operations@4.0.4, npm/@graphql-codegen/plugin-helpers@5.0.3, npm/@graphql-codegen/schema-ast@4.0.2, npm/@graphql-codegen/typed-document-node@5.0.4, npm/@graphql-codegen/typescript-operations@4.1.2, npm/@graphql-codegen/typescript@4.0.4, npm/@graphql-codegen/visitor-plugin-common@4.1.2, npm/@graphql-tools/apollo-engine-loader@8.0.0, npm/@graphql-tools/batch-execute@9.0.2, npm/@graphql-tools/code-file-loader@8.1.0, npm/@graphql-tools/delegate@10.0.3, npm/@graphql-tools/documents@1.0.0, npm/@graphql-tools/executor-graphql-ws@1.1.1, npm/@graphql-tools/executor-http@1.0.7, npm/@graphql-tools/executor-legacy-ws@1.0.5, npm/@graphql-tools/executor@1.2.0, npm/@graphql-tools/git-loader@8.0.4, npm/@graphql-tools/github-loader@8.0.0, npm/@graphql-tools/graphql-file-loader@8.0.0, npm/@graphql-tools/graphql-tag-pluck@8.2.0, npm/@graphql-tools/import@7.0.0, npm/@graphql-tools/json-file-loader@8.0.0, npm/@graphql-tools/load@8.0.1, npm/@graphql-tools/merge@9.0.1, npm/@graphql-tools/optimize@2.0.0, npm/@graphql-tools/prisma-loader@8.0.2, npm/@graphql-tools/relay-operation-optimizer@7.0.0, npm/@graphql-tools/schema@10.0.2, npm/@graphql-tools/url-loader@8.0.1, npm/@graphql-tools/utils@10.0.13, npm/@graphql-tools/wrap@10.0.1, npm/@graphql-typed-document-node/core@3.2.0, npm/@hapi/hoek@9.3.0, npm/@hapi/topo@5.1.0, npm/@headlessui/react@1.7.18, npm/@heroicons/react@1.0.6, npm/@kamilkisiela/fast-url-parser@1.1.4, npm/@panva/hkdf@1.0.2, npm/@peculiar/asn1-schema@2.3.8, npm/@peculiar/json-schema@1.1.12, npm/@peculiar/webcrypto@1.4.5, npm/@radix-ui/react-accordion@1.1.2, npm/@radix-ui/react-navigation-menu@1.1.4, npm/@radix-ui/react-tabs@1.0.4, npm/@repeaterjs/repeater@3.0.5, npm/@sideway/address@4.1.5, npm/@sideway/formula@3.0.1, npm/@sideway/pinpoint@2.0.0, npm/@sindresorhus/is@4.6.0, npm/@stablelib/hex@1.0.1, npm/@stablelib/utf8@1.0.2, npm/@szmarczak/http-timer@4.0.6, npm/@tanstack/query-core@4.36.1, npm/@tanstack/react-query@4.36.1, npm/@tanstack/react-virtual@3.0.4, npm/@tanstack/virtual-core@3.0.0, npm/@trpc/client@10.45.1, npm/@trpc/server@10.45.1, npm/@typeform/embed-react@1.21.0, npm/@typeform/embed@1.38.0, npm/@types/cacheable-request@6.0.3, npm/@types/debounce@1.2.4, npm/@types/estree-jsx@1.0.4, npm/@types/gtag.js@0.0.10, npm/@types/http-cache-semantics@4.0.4, npm/@types/js-yaml@4.0.9, npm/@types/json-stable-stringify@1.0.36, npm/@types/keyv@3.1.4, npm/@types/mdast@3.0.15, npm/@types/parse5@6.0.3, npm/@types/react-gtm-module@2.0.3, npm/@types/responselike@1.0.3, npm/@types/ws@8.5.10, npm/@types/xml2js@0.4.14, npm/@vercel/analytics@0.1.11, npm/@whatwg-node/events@0.1.1, npm/@whatwg-node/fetch@0.5.4, npm/@whatwg-node/node-fetch@0.3.6, npm/asn1js@3.0.5, npm/async-scheduler@1.4.4, npm/babel-plugin-syntax-trailing-function-commas@7.0.0-beta.0, npm/babel-preset-fbjs@3.4.0, npm/bail@2.0.2, npm/cacheable-lookup@5.0.4, npm/cacheable-request@7.0.4, npm/capital-case@1.0.4, npm/ccount@2.0.1, npm/change-case-all@1.0.15, npm/change-case@4.1.2, npm/character-entities-html4@2.1.0, npm/chart.js@3.9.1, npm/clone-response@1.0.3, npm/cobe@0.4.2, npm/common-tags@1.8.2, npm/concurrently@7.6.0, npm/constant-case@3.0.4, npm/copy-anything@3.0.5, npm/cross-env@7.0.3, npm/cross-inspect@1.0.0, npm/dataloader@2.2.2, npm/datocms-listen@0.1.15, npm/datocms-structured-text-generic-html-renderer@2.1.12, npm/datocms-structured-text-to-plain-text@2.1.12, npm/datocms-structured-text-utils@2.1.12, npm/debounce@1.2.1, npm/decode-named-character-reference@1.0.2, npm/defer-to-connect@2.0.1, npm/dependency-graph@0.11.0, npm/devlop@1.1.0, npm/dset@3.1.3, npm/estree-util-is-identifier-name@3.0.0, npm/extract-files@11.0.0, npm/fast-decode-uri-component@1.0.1, npm/fast-querystring@1.1.2, npm/fast-url-parser@1.1.3, npm/fathom-client@3.6.0, npm/fbjs@3.0.5, npm/github-buttons@2.27.0, npm/got@11.8.6, npm/graphql-config@5.0.3, npm/graphql-request@6.1.0, npm/graphql-tag@2.12.6, npm/graphql-ws@5.14.3, npm/graphql@16.8.1, npm/gsap@3.12.5, npm/hast-util-from-parse5@7.1.2, npm/hast-util-parse-selector@3.1.1, npm/hast-util-raw@7.2.3, npm/hast-util-sanitize@4.1.0, npm/hast-util-to-html@8.0.4, npm/hast-util-to-jsx-runtime@2.3.0, npm/hast-util-to-parse5@7.1.0, npm/hast-util-whitespace@2.0.1, npm/hastscript@7.2.0, npm/header-case@2.0.4, npm/html-url-attributes@3.0.0, npm/html-void-elements@2.0.1, npm/http2-wrapper@1.0.3, npm/iframe-resizer-react@1.1.0, npm/iframe-resizer@4.3.9, npm/immer@10.0.3, npm/import-from@4.0.0, npm/inline-style-parser@0.2.2, npm/is-absolute@1.0.0, npm/is-alphabetical@2.0.1, npm/is-alphanumerical@2.0.1, npm/is-decimal@2.0.1, npm/is-hexadecimal@2.0.1, npm/is-lower-case@2.0.2, npm/is-relative@1.0.0, npm/is-unc-path@1.0.0, npm/is-upper-case@2.0.2, npm/isomorphic-ws@5.0.0, npm/joi@17.12.1, npm/jose@4.11.1, npm/js-tiktoken@1.0.7, npm/json-stable-stringify@1.1.1, npm/json-to-pretty-yaml@1.2.2, npm/jsonify@0.0.1, npm/keen-slider@6.8.6, npm/langchain@0.0.131, npm/lodash.sortby@4.7.0, npm/longest-streak@3.1.0, npm/lower-case-first@2.0.2, npm/lowercase-keys@2.0.0, npm/map-cache@0.2.2, npm/mdast-util-from-markdown@2.0.0, npm/mdast-util-mdx-expression@2.0.0, npm/mdast-util-mdx-jsx@3.0.0, npm/mdast-util-mdxjs-esm@2.0.1, npm/mdast-util-phrasing@4.1.0, npm/mdast-util-to-hast@11.3.0, npm/mdast-util-to-markdown@2.1.0, npm/meros@1.3.0, npm/micromark-core-commonmark@2.0.0, npm/micromark-factory-destination@2.0.0, npm/micromark-factory-label@2.0.0, npm/micromark-factory-space@2.0.0, npm/micromark-factory-title@2.0.0, npm/micromark-factory-whitespace@2.0.0, npm/micromark-util-character@2.1.0, npm/micromark-util-chunked@2.0.0, npm/micromark-util-classify-character@2.0.0, npm/micromark-util-combine-extensions@2.0.0, npm/micromark-util-decode-numeric-character-reference@2.0.1, npm/micromark-util-decode-string@2.0.0, npm/micromark-util-encode@2.0.0, npm/micromark-util-html-tag-name@2.0.0, npm/micromark-util-normalize-identifier@2.0.0, npm/micromark-util-resolve-all@2.0.0, npm/micromark-util-sanitize-uri@2.0.0, npm/micromark-util-subtokenize@2.0.0, npm/micromark-util-symbol@2.0.0, npm/micromark-util-types@2.0.0, npm/micromark@4.0.0, npm/mimic-response@1.0.1, npm/normalize-url@6.1.0, npm/nullthrows@1.1.1, npm/oauth4webapi@2.0.5, npm/object-path@0.11.8, npm/openai@3.3.0, npm/p-cancelable@2.1.1, npm/parse-entities@4.0.1, npm/parse-filepath@1.0.2, npm/path-case@3.0.4, npm/path-root-regex@0.1.2, npm/path-root@0.1.1, npm/phenomenon@1.6.0, npm/preact-render-to-string@5.2.3, npm/preact@10.11.3, npm/prism-react-renderer@1.3.5, npm/prisma-field-encryption@1.5.1, npm/property-information@6.4.1, npm/pvtsutils@1.3.5, npm/pvutils@1.1.3, npm/react-chartjs-2@4.3.1, npm/react-confetti@6.1.0, npm/react-datocms@3.1.4, npm/react-device-detect@2.2.3, npm/react-fast-marquee@1.6.3, npm/react-github-btn@1.4.0, npm/react-intersection-observer@8.34.0, npm/react-markdown@9.0.1, npm/react-merge-refs@1.1.0, npm/react-string-replace@1.1.1, npm/react-twemoji@0.3.0, npm/react-use-measure@2.1.1, npm/react-wrap-balancer@1.1.0, npm/relay-runtime@12.0.0, npm/remark-html@14.0.1, npm/remark-parse@11.0.0, npm/remark-rehype@11.1.0, npm/remark-stringify@10.0.3, npm/remark@14.0.3, npm/remeda@1.40.0, npm/remedial@1.0.8, npm/remove-trailing-separator@1.1.0, npm/remove-trailing-spaces@1.0.8, npm/resolve-alpn@1.2.1, npm/responselike@2.0.1, npm/s-ago@2.2.0, npm/sade@1.8.1, npm/scuid@1.1.0, npm/sentence-case@3.0.4, npm/signedsource@1.0.0, npm/snake-case@3.0.4, npm/spawn-command@0.0.2, npm/sponge-case@1.0.1, npm/string-env-interpolation@1.0.1, npm/stringify-entities@4.0.3, npm/style-to-object@1.0.5, npm/superjson@1.13.3, npm/swap-case@2.0.2, npm/swr@1.3.0, npm/title-case@3.0.3, npm/tmp-promise@3.0.3, npm/tree-kill@1.2.2, npm/trim-lines@3.0.1, npm/trough@2.2.0, npm/ts-log@2.2.5, npm/tween-functions@1.2.0, npm/twemoji-parser@13.1.0, npm/twemoji@13.1.1, npm/ua-parser-js@1.0.37, npm/unc-path-regex@0.1.2, npm/undici@5.28.3, npm/unified@11.0.4, npm/unist-builder@3.0.1, npm/unist-util-generated@2.0.1, npm/unist-util-position@4.0.4, npm/unist-util-remove-position@5.0.0, npm/unist-util-stringify-position@3.0.3, npm/universal-base64@2.1.0, npm/unixify@1.0.0, npm/upper-case-first@2.0.2, npm/upper-case@2.0.2, npm/urlpattern-polyfill@8.0.2, npm/use-deep-compare-effect@1.8.1, npm/uvu@0.5.6, npm/value-or-promise@1.0.12, npm/vfile-location@4.1.0, npm/vfile-message@3.1.4, npm/vfile@5.3.7, npm/wait-on@7.2.0, npm/warning@4.0.3, npm/web-namespaces@2.0.1, npm/webcrypto-core@1.7.8, npm/yaml-ast-parser@0.0.43, npm/zwitch@2.0.4

View full report↗︎

@PeerRich
Copy link
Member

thank you!

@PeerRich PeerRich merged commit 994e602 into calcom:main Feb 10, 2024
30 of 40 checks passed
@keithwillcode
Copy link
Contributor

Screenshot 2024-02-13 at 11 06 29 AM

Turns out this PR broke the AI build. Any ideas @bracesproul?

@keithwillcode
Copy link
Contributor

keithwillcode commented Feb 13, 2024

Looks like it's an issue with compatibility with zod version 3.22.2. No error thrown when using 3.21.4

@keithwillcode keithwillcode mentioned this pull request Feb 13, 2024
@bracesproul
Copy link
Contributor Author

Looks like it's an issue with compatibility with zod version 3.22.2. No error thrown when using 3.21.4

Hmm weird, I can see if there's something we can fix on the LangChain side about this.

@keithwillcode
Copy link
Contributor

@bracesproul Upgrading to zod 3.22.4 fixes it too. #13657

@keithwillcode keithwillcode modified the milestones: v3.9, v3.8 Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Created by Linear-GitHub Sync foundation Low priority Created by Linear-GitHub Sync
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants