Skip to content

Commit

Permalink
format and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
bracesproul committed Aug 16, 2024
1 parent 6494718 commit 14fe940
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,7 @@ async function fileToBase64(filePath: string): Promise<string> {

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({
Expand Down
10 changes: 6 additions & 4 deletions libs/langchain-google-vertexai/src/tests/chat_models.int.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down Expand Up @@ -363,8 +366,7 @@ async function fileToBase64(filePath: string): Promise<string> {

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({
Expand Down Expand Up @@ -398,4 +400,4 @@ test("Gemini can understand audio", async () => {

expect(typeof response.content).toBe("string");
expect((response.content as string).length).toBeGreaterThan(15);
});
});

0 comments on commit 14fe940

Please sign in to comment.