From 7ec9bc772f008f719d23d6acd5c6dac6a28897a7 Mon Sep 17 00:00:00 2001 From: Hassieb Pakzad <68423100+hassiebp@users.noreply.github.com> Date: Fri, 13 Dec 2024 16:28:03 +0100 Subject: [PATCH] fix test --- integration-test/langfuse-integration-langchain.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integration-test/langfuse-integration-langchain.spec.ts b/integration-test/langfuse-integration-langchain.spec.ts index d8b8b4d8..fbf4891d 100644 --- a/integration-test/langfuse-integration-langchain.spec.ts +++ b/integration-test/langfuse-integration-langchain.spec.ts @@ -146,7 +146,7 @@ describe("Langchain", () => { it("should execute simple non chat llm call", async () => { const handler = new CallbackHandler({}); - const llm = new OpenAI({ modelName: "gpt-4-1106-preview", maxTokens: 20 }); + const llm = new OpenAI({ modelName: "gpt-3.5-turbo-instruct", maxTokens: 20 }); const res = await llm.invoke("Tell me a joke on a non chat api", { callbacks: [handler] }); const traceId = handler.traceId; await handler.flushAsync(); @@ -169,7 +169,7 @@ describe("Langchain", () => { // eslint-disable-next-line @typescript-eslint/no-non-null-assertion const singleGeneration = generation![0]; - expect(singleGeneration.name).toBe("OpenAIChat"); + expect(singleGeneration.name).toBe("OpenAI"); expect(singleGeneration.input).toMatchObject(["Tell me a joke on a non chat api"]); expect(singleGeneration.usage?.input).toBeDefined(); expect(singleGeneration.usage?.output).toBeDefined();