Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

chore: remove file

Marc Seitz06931e57b3c0
diff --git a/ee/features/ai/lib/vector-stores/get-vector-store-files.ts b/ee/features/ai/lib/vector-stores/get-vector-store-files.ts
deleted file mode 100644
index aec55e5f..00000000
--- a/ee/features/ai/lib/vector-stores/get-vector-store-files.ts
+++ /dev/null
@@ -1,26 +0,0 @@
-import { openai } from "@/ee/features/ai/lib/models/openai";
-
-interface VectorStoreFile {
- id: string;
- object: string;
- created_at: number;
- vector_store_id: string;
- status: string;
-}
-
-/**
- * Get all files in a vector store
- * @param vectorStoreId - The vector store ID
- * @returns Array of vector store files
- */
-export async function getVectorStoreFiles(
- vectorStoreId: string,
-): Promise<VectorStoreFile[]> {
- try {
- const files = await openai.vectorStores.files.list(vectorStoreId);
- return files.data as VectorStoreFile[];
- } catch (error) {
- console.error("Error getting vector store files:", error);
- throw new Error("Failed to get vector store files");
- }
-}