diff --git a/libs/langchain-openai/package.json b/libs/langchain-openai/package.json index 2d0766a6a4d0..79903f4ef25f 100644 --- a/libs/langchain-openai/package.json +++ b/libs/langchain-openai/package.json @@ -1,6 +1,6 @@ { "name": "@langchain/openai", - "version": "0.3.16", + "version": "0.3.17", "description": "OpenAI integrations for LangChain.js", "type": "module", "engines": { @@ -41,7 +41,7 @@ "zod-to-json-schema": "^3.22.3" }, "peerDependencies": { - "@langchain/core": ">=0.2.26 <0.4.0" + "@langchain/core": ">=0.3.29 <0.4.0" }, "devDependencies": { "@azure/identity": "^4.2.1", diff --git a/libs/langchain-openai/src/tests/chat_models.int.test.ts b/libs/langchain-openai/src/tests/chat_models.int.test.ts index 2fbc484789db..a49c014d5d8a 100644 --- a/libs/langchain-openai/src/tests/chat_models.int.test.ts +++ b/libs/langchain-openai/src/tests/chat_models.int.test.ts @@ -977,17 +977,6 @@ test("populates ID field on AIMessage", async () => { expect(finalChunk?.id?.startsWith("chatcmpl-")).toBe(true); }); -test("Test ChatOpenAI stream method", async () => { - const model = new ChatOpenAI({ model: "o1-mini" }); - const stream = await model.stream("Print hello world."); - const chunks = []; - for await (const chunk of stream) { - console.log(chunk); - chunks.push(chunk); - } - expect(chunks.length).toEqual(1); -}); - describe("Audio output", () => { test("Audio output", async () => { const model = new ChatOpenAI({ @@ -1006,10 +995,6 @@ describe("Audio output", () => { if (!response.additional_kwargs.audio) { throw new Error("Not in additional kwargs"); } - // console.log( - // "response.additional_kwargs.audio", - // response.additional_kwargs.audio - // ); expect(Object.keys(response.additional_kwargs.audio).sort()).toEqual([ "data", "expires_at", diff --git a/yarn.lock b/yarn.lock index 6fffd3dac526..555b99d840c7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -12999,7 +12999,7 @@ __metadata: zod: ^3.22.4 zod-to-json-schema: ^3.22.3 peerDependencies: - "@langchain/core": ">=0.2.26 <0.4.0" + "@langchain/core": ">=0.3.29 <0.4.0" languageName: unknown linkType: soft