Skip to content

Commit

Permalink
cr
Browse files Browse the repository at this point in the history
  • Loading branch information
bracesproul committed Jan 29, 2025
1 parent 3733572 commit a24c963
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion libs/langchain-openai/src/chat_models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1451,7 +1451,6 @@ export class ChatOpenAI<
const messagesMapped: OpenAICompletionParam[] =
_convertMessagesToOpenAIParams(messages, this.model);

console.log("GENERATING!!", params.stream, this.streaming);
if (params.stream) {
const stream = this._streamResponseChunks(messages, options, runManager);
const finalChunks: Record<number, ChatGenerationChunk> = {};
Expand Down
4 changes: 2 additions & 2 deletions libs/langchain-openai/src/tests/chat_models.int.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1286,7 +1286,7 @@ test.skip("Allow overriding", async () => {
}
});

test.only("Streaming with o1 will yield at least one chunk with content", async () => {
test("Streaming with o1 will yield at least one chunk with content", async () => {
const model = new ChatOpenAI({
model: "o1",
disableStreaming: false,
Expand All @@ -1307,5 +1307,5 @@ test.only("Streaming with o1 will yield at least one chunk with content", async
}

expect(content.length).toBeGreaterThan(10);
expect(numStreamChunks).toBe(1)
expect(numStreamChunks).toBe(1);
});

0 comments on commit a24c963

Please sign in to comment.