Skip to content

Commit

Permalink
fix(ci): Fix cf exports test (#6737)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoblee93 authored Sep 11, 2024
1 parent a0fad77 commit 1010d1c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions environment_tests/test-exports-cf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
"@langchain/community": "workspace:*",
"@langchain/core": "workspace:*",
"@langchain/openai": "workspace:*",
"@tsconfig/recommended": "^1.0.2",
"d3-dsv": "2",
"langchain": "workspace:*",
"wrangler": "^3.19.0",
"vitest": "0.34.3",
Expand Down
4 changes: 2 additions & 2 deletions environment_tests/test-exports-cf/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
} from "@langchain/core/prompts";
import { OpenAI } from "@langchain/openai";
import { OpenAIEmbeddings } from "@langchain/openai";
import { HNLoader } from "@langchain/community/document_loaders/web/hn";
import { CSVLoader } from "@langchain/community/document_loaders/fs/csv";

export interface Env {
OPENAI_API_KEY?: string;
Expand Down Expand Up @@ -52,7 +52,7 @@ export default {
const emb = new OpenAIEmbeddings(constructorParameters);

// Test a document loader
new HNLoader("https://news.ycombinator.com/item?id=28275939");
new CSVLoader(new Blob(["a,b,c\n1,2,3\n4,5,6"]));

// Test a chain + prompt + model
const chain = new LLMChain({
Expand Down

0 comments on commit 1010d1c

Please sign in to comment.