From 3807445a3b6c440ce71f7a01f29ae422fc691cc2 Mon Sep 17 00:00:00 2001 From: Jacob Lee Date: Wed, 11 Sep 2024 14:40:19 -0700 Subject: [PATCH] fix(ci): Fix cf-workers export test (#6738) --- environment_tests/test-exports-cf/package.json | 1 - environment_tests/test-exports-cf/src/index.ts | 4 ---- 2 files changed, 5 deletions(-) diff --git a/environment_tests/test-exports-cf/package.json b/environment_tests/test-exports-cf/package.json index 15cd274bde84..86264ea5ee3e 100644 --- a/environment_tests/test-exports-cf/package.json +++ b/environment_tests/test-exports-cf/package.json @@ -9,7 +9,6 @@ }, "dependencies": { "@langchain/anthropic": "workspace:*", - "@langchain/community": "workspace:*", "@langchain/core": "workspace:*", "@langchain/openai": "workspace:*", "@tsconfig/recommended": "^1.0.2", diff --git a/environment_tests/test-exports-cf/src/index.ts b/environment_tests/test-exports-cf/src/index.ts index a19b5dde5e58..b89be67fcc5a 100644 --- a/environment_tests/test-exports-cf/src/index.ts +++ b/environment_tests/test-exports-cf/src/index.ts @@ -20,7 +20,6 @@ import { } from "@langchain/core/prompts"; import { OpenAI } from "@langchain/openai"; import { OpenAIEmbeddings } from "@langchain/openai"; -import { CSVLoader } from "@langchain/community/document_loaders/fs/csv"; export interface Env { OPENAI_API_KEY?: string; @@ -51,9 +50,6 @@ export default { new OpenAI(constructorParameters); const emb = new OpenAIEmbeddings(constructorParameters); - // Test a document loader - new CSVLoader(new Blob(["a,b,c\n1,2,3\n4,5,6"])); - // Test a chain + prompt + model const chain = new LLMChain({ llm: new ChatOpenAI(constructorParameters),