Skip to content

Commit d4dd136

Browse files
authored
release(openai): 0.3.17 (#7508)
1 parent c90f2e3 commit d4dd136

File tree

3 files changed

+3
-18
lines changed

3 files changed

+3
-18
lines changed

libs/langchain-openai/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@langchain/openai",
3-
"version": "0.3.16",
3+
"version": "0.3.17",
44
"description": "OpenAI integrations for LangChain.js",
55
"type": "module",
66
"engines": {
@@ -41,7 +41,7 @@
4141
"zod-to-json-schema": "^3.22.3"
4242
},
4343
"peerDependencies": {
44-
"@langchain/core": ">=0.2.26 <0.4.0"
44+
"@langchain/core": ">=0.3.29 <0.4.0"
4545
},
4646
"devDependencies": {
4747
"@azure/identity": "^4.2.1",

libs/langchain-openai/src/tests/chat_models.int.test.ts

-15
Original file line numberDiff line numberDiff line change
@@ -977,17 +977,6 @@ test("populates ID field on AIMessage", async () => {
977977
expect(finalChunk?.id?.startsWith("chatcmpl-")).toBe(true);
978978
});
979979

980-
test("Test ChatOpenAI stream method", async () => {
981-
const model = new ChatOpenAI({ model: "o1-mini" });
982-
const stream = await model.stream("Print hello world.");
983-
const chunks = [];
984-
for await (const chunk of stream) {
985-
console.log(chunk);
986-
chunks.push(chunk);
987-
}
988-
expect(chunks.length).toEqual(1);
989-
});
990-
991980
describe("Audio output", () => {
992981
test("Audio output", async () => {
993982
const model = new ChatOpenAI({
@@ -1006,10 +995,6 @@ describe("Audio output", () => {
1006995
if (!response.additional_kwargs.audio) {
1007996
throw new Error("Not in additional kwargs");
1008997
}
1009-
// console.log(
1010-
// "response.additional_kwargs.audio",
1011-
// response.additional_kwargs.audio
1012-
// );
1013998
expect(Object.keys(response.additional_kwargs.audio).sort()).toEqual([
1014999
"data",
10151000
"expires_at",

yarn.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -12999,7 +12999,7 @@ __metadata:
1299912999
zod: ^3.22.4
1300013000
zod-to-json-schema: ^3.22.3
1300113001
peerDependencies:
13002-
"@langchain/core": ">=0.2.26 <0.4.0"
13002+
"@langchain/core": ">=0.3.29 <0.4.0"
1300313003
languageName: unknown
1300413004
linkType: soft
1300513005

0 commit comments

Comments
 (0)