Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
hassiebp committed Dec 13, 2024
1 parent f9af27e commit 7ec9bc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integration-test/langfuse-integration-langchain.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand Down

0 comments on commit 7ec9bc7

Please sign in to comment.