@langchain/openai 0.0.6-rc.0 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +29 -1
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @langchain/openai
2
2
 
3
- This package contains the LangChainJS integrations for OpenAI through their SDK.
3
+ This package contains the LangChain.js integrations for OpenAI through their SDK.
4
4
 
5
5
  ## Installation
6
6
 
@@ -8,6 +8,34 @@ This package contains the LangChainJS integrations for OpenAI through their SDK.
8
8
  npm install @langchain/openai
9
9
  ```
10
10
 
11
+ This package, along with the main LangChain package, depends on [`@langchain/core`](https://npmjs.com/package/@langchain/core/).
12
+ If you are using this package with other LangChain packages, you should make sure that all of the packages depend on the same instance of @langchain/core.
13
+ You can do so by adding appropriate fields to your project's `package.json` like this:
14
+
15
+ ```json
16
+ {
17
+ "name": "your-project",
18
+ "version": "0.0.0",
19
+ "dependencies": {
20
+ "@langchain/openai": "^0.0.0",
21
+ "langchain": "0.0.207"
22
+ },
23
+ "resolutions": {
24
+ "@langchain/core": "0.1.1"
25
+ },
26
+ "overrides": {
27
+ "@langchain/core": "0.1.1"
28
+ },
29
+ "pnpm": {
30
+ "overrides": {
31
+ "@langchain/core": "0.1.1"
32
+ }
33
+ }
34
+ }
35
+ ```
36
+
37
+ The field you need depends on the package manager you're using, but we recommend adding a field for the common `yarn`, `npm`, and `pnpm` to maximize compatibility.
38
+
11
39
  ## Chat Models
12
40
 
13
41
  This package contains the `ChatOpenAI` class, which is the recommended way to interface with the OpenAI series of models.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/openai",
3
- "version": "0.0.6-rc.0",
3
+ "version": "0.0.6",
4
4
  "description": "OpenAI integrations for LangChain.js",
5
5
  "type": "module",
6
6
  "engines": {
@@ -35,7 +35,7 @@
35
35
  "author": "LangChain",
36
36
  "license": "MIT",
37
37
  "dependencies": {
38
- "@langchain/core": "~0.1.2-rc.0",
38
+ "@langchain/core": "~0.1.2",
39
39
  "js-tiktoken": "^1.0.7",
40
40
  "openai": "^4.19.0",
41
41
  "zod": "^3.22.3",