Skip to content

Commit

Permalink
Revert dependencies for now (#3402)
Browse files Browse the repository at this point in the history
* Revert dependencies for now

* Readd missing file

* Delegate to core

* Import map
  • Loading branch information
jacoblee93 authored Nov 24, 2023
1 parent 9626625 commit 6c05d6c
Show file tree
Hide file tree
Showing 27 changed files with 2,978 additions and 160 deletions.
4 changes: 4 additions & 0 deletions langchain-core/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# πŸ¦œοΈπŸ”— @langchain/core

:::note
This package is experimental at the moment and may change.
:::

`@langchain/core` contains the core abstractions and schemas of LangChain.js, including base classes for language models,
chat models, vectorstores, retrievers, and runnables.

Expand Down
6 changes: 2 additions & 4 deletions langchain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -865,9 +865,7 @@
"@google-cloud/storage": "^6.10.1",
"@huggingface/inference": "^2.6.4",
"@jest/globals": "^29.5.0",
"@langchain/anthropic": "workspace:*",
"@langchain/core": "workspace:*",
"@langchain/openai": "workspace:*",
"@mozilla/readability": "^0.4.4",
"@notionhq/client": "^2.2.10",
"@opensearch-project/opensearch": "^2.2.0",
Expand Down Expand Up @@ -1380,9 +1378,8 @@
}
},
"dependencies": {
"@langchain/anthropic": "^0.0.3",
"@anthropic-ai/sdk": "^0.9.1",
"@langchain/core": "^0.0.1",
"@langchain/openai": "^0.0.1",
"binary-extensions": "^2.2.0",
"expr-eval": "^2.0.2",
"flat": "^5.0.2",
Expand All @@ -1392,6 +1389,7 @@
"langchainhub": "~0.0.6",
"langsmith": "~0.0.48",
"ml-distance": "^4.0.0",
"openai": "^4.19.0",
"openapi-types": "^12.1.3",
"p-retry": "4",
"uuid": "^9.0.0",
Expand Down
2 changes: 1 addition & 1 deletion langchain/src/agents/openai/output_parser.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { OpenAIClient } from "@langchain/openai";
import type { OpenAI as OpenAIClient } from "openai";
import {
AgentAction,
AgentFinish,
Expand Down
2 changes: 1 addition & 1 deletion langchain/src/chains/openai_functions/openapi.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { OpenAIClient } from "@langchain/openai";
import type { OpenAI as OpenAIClient } from "openai";
import { JsonSchema7ObjectType } from "zod-to-json-schema/src/parsers/object.js";
import { JsonSchema7ArrayType } from "zod-to-json-schema/src/parsers/array.js";
import { JsonSchema7Type } from "zod-to-json-schema/src/parseDef.js";
Expand Down
2 changes: 1 addition & 1 deletion langchain/src/chains/openai_moderation.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type ClientOptions, OpenAIClient } from "@langchain/openai";
import { type ClientOptions, OpenAI as OpenAIClient } from "openai";
import { BaseChain, ChainInputs } from "./base.js";
import { ChainValues } from "../schema/index.js";
import { AsyncCaller, AsyncCallerParams } from "../util/async_caller.js";
Expand Down
Loading

2 comments on commit 6c05d6c

@vercel
Copy link

@vercel vercel bot commented on 6c05d6c Nov 24, 2023

Choose a reason for hiding this comment

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

@vercel
Copy link

@vercel vercel bot commented on 6c05d6c Nov 24, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

langchainjs-docs – ./docs/core_docs/

langchainjs-docs-ruddy.vercel.app
langchainjs-docs-git-main-langchain.vercel.app
js.langchain.com
langchainjs-docs-langchain.vercel.app

Please sign in to comment.