Skip to content

Commit

Permalink
release(openai): 0.3.17 (#7508)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoblee93 authored Jan 11, 2025
1 parent c90f2e3 commit d4dd136
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 18 deletions.
4 changes: 2 additions & 2 deletions libs/langchain-openai/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@langchain/openai",
"version": "0.3.16",
"version": "0.3.17",
"description": "OpenAI integrations for LangChain.js",
"type": "module",
"engines": {
Expand Down Expand Up @@ -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",
Expand Down
15 changes: 0 additions & 15 deletions libs/langchain-openai/src/tests/chat_models.int.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d4dd136

Please sign in to comment.