diff --git a/libs/langchain-community/.gitignore b/libs/langchain-community/.gitignore index 4eb6145b3b32..b1cef6d2c9fb 100644 --- a/libs/langchain-community/.gitignore +++ b/libs/langchain-community/.gitignore @@ -714,6 +714,10 @@ caches/upstash_redis.cjs caches/upstash_redis.js caches/upstash_redis.d.ts caches/upstash_redis.d.cts +caches/vercel_kv.cjs +caches/vercel_kv.js +caches/vercel_kv.d.ts +caches/vercel_kv.d.cts graphs/neo4j_graph.cjs graphs/neo4j_graph.js graphs/neo4j_graph.d.ts diff --git a/libs/langchain-community/package.json b/libs/langchain-community/package.json index d5a1f6b953e8..b320d31f4768 100644 --- a/libs/langchain-community/package.json +++ b/libs/langchain-community/package.json @@ -2334,6 +2334,15 @@ "import": "./caches/upstash_redis.js", "require": "./caches/upstash_redis.cjs" }, + "./caches/vercel_kv": { + "types": { + "import": "./caches/vercel_kv.d.ts", + "require": "./caches/vercel_kv.d.cts", + "default": "./caches/vercel_kv.d.ts" + }, + "import": "./caches/vercel_kv.js", + "require": "./caches/vercel_kv.cjs" + }, "./graphs/neo4j_graph": { "types": { "import": "./graphs/neo4j_graph.d.ts", @@ -3900,6 +3909,10 @@ "caches/upstash_redis.js", "caches/upstash_redis.d.ts", "caches/upstash_redis.d.cts", + "caches/vercel_kv.cjs", + "caches/vercel_kv.js", + "caches/vercel_kv.d.ts", + "caches/vercel_kv.d.cts", "graphs/neo4j_graph.cjs", "graphs/neo4j_graph.js", "graphs/neo4j_graph.d.ts", diff --git a/libs/langchain-community/src/caches/tests/vercel_kv.int.test.ts b/libs/langchain-community/src/caches/tests/vercel_kv.int.test.ts index b6fd5d52a520..ec9176730813 100644 --- a/libs/langchain-community/src/caches/tests/vercel_kv.int.test.ts +++ b/libs/langchain-community/src/caches/tests/vercel_kv.int.test.ts @@ -3,7 +3,7 @@ import { ChatOpenAI } from "@langchain/openai"; import { createClient } from "@vercel/kv"; import { VercelKVCache } from "../vercel_kv.js"; -test.skip("VercelKVCache works with ChatOpenAI", async () => { +test("VercelKVCache works with ChatOpenAI", async () => { if ( !process.env.VERCEL_KV_API_URL || !process.env.VERCEL_KV_API_TOKEN || diff --git a/libs/langchain-community/src/load/import_map.ts b/libs/langchain-community/src/load/import_map.ts index defd3600a68b..daafa8c76bfa 100644 --- a/libs/langchain-community/src/load/import_map.ts +++ b/libs/langchain-community/src/load/import_map.ts @@ -67,6 +67,7 @@ export * as caches__cloudflare_kv from "../caches/cloudflare_kv.js"; export * as caches__ioredis from "../caches/ioredis.js"; export * as caches__momento from "../caches/momento.js"; export * as caches__upstash_redis from "../caches/upstash_redis.js"; +export * as caches__vercel_kv from "../caches/vercel_kv.js"; export * as stores__doc__base from "../stores/doc/base.js"; export * as stores__doc__gcs from "../stores/doc/gcs.js"; export * as stores__doc__in_memory from "../stores/doc/in_memory.js";