From 14fe940c486739ba6123e84b13a420e2066b083f Mon Sep 17 00:00:00 2001 From: bracesproul Date: Fri, 16 Aug 2024 12:03:01 -0700 Subject: [PATCH] format and lint --- .../src/tests/chat_models.int.test.ts | 3 +-- .../src/tests/chat_models.int.test.ts | 10 ++++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/libs/langchain-google-genai/src/tests/chat_models.int.test.ts b/libs/langchain-google-genai/src/tests/chat_models.int.test.ts index a42ba46529c1..765240a73ffa 100644 --- a/libs/langchain-google-genai/src/tests/chat_models.int.test.ts +++ b/libs/langchain-google-genai/src/tests/chat_models.int.test.ts @@ -182,8 +182,7 @@ async function fileToBase64(filePath: string): Promise { test("Gemini can understand audio", async () => { // Update this with the correct path to an audio file on your machine. - const audioPath = - "./src/tests/data/gettysburg10.wav"; + const audioPath = "./src/tests/data/gettysburg10.wav"; const audioMimeType = "audio/wav"; const model = new ChatGoogleGenerativeAI({ diff --git a/libs/langchain-google-vertexai/src/tests/chat_models.int.test.ts b/libs/langchain-google-vertexai/src/tests/chat_models.int.test.ts index c95868c4032e..a5b9b1001218 100644 --- a/libs/langchain-google-vertexai/src/tests/chat_models.int.test.ts +++ b/libs/langchain-google-vertexai/src/tests/chat_models.int.test.ts @@ -15,9 +15,12 @@ import { import { tool } from "@langchain/core/tools"; import { z } from "zod"; import { concat } from "@langchain/core/utils/stream"; +import { + ChatPromptTemplate, + MessagesPlaceholder, +} from "@langchain/core/prompts"; import { GeminiTool } from "../types.js"; import { ChatVertexAI } from "../chat_models.js"; -import { ChatPromptTemplate, MessagesPlaceholder } from "@langchain/core/prompts"; describe("GAuth Chat", () => { test("invoke", async () => { @@ -363,8 +366,7 @@ async function fileToBase64(filePath: string): Promise { test("Gemini can understand audio", async () => { // Update this with the correct path to an audio file on your machine. - const audioPath = - "../langchain-google-genai/src/tests/data/gettysburg10.wav"; + const audioPath = "../langchain-google-genai/src/tests/data/gettysburg10.wav"; const audioMimeType = "audio/wav"; const model = new ChatVertexAI({ @@ -398,4 +400,4 @@ test("Gemini can understand audio", async () => { expect(typeof response.content).toBe("string"); expect((response.content as string).length).toBeGreaterThan(15); -}); \ No newline at end of file +});