Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

chore(api): fix knip complaints (#3778)

Gergő Móriczd9853280766c
diff --git a/apps/api/knip.config.ts b/apps/api/knip.config.ts
index 9e9b4eee4..6c8f8de9c 100644
--- a/apps/api/knip.config.ts
+++ b/apps/api/knip.config.ts
@@ -15,8 +15,6 @@ const config: KnipConfig = {
ignore: [
"native/**",
"src/scraper/scrapeURL/engines/fire-engine/branding-script/**",
- // Superseded by the integration proxy added in #3520; kept for now.
- "src/controllers/v0/admin/rotate-api-key.ts",
],
ignoreDependencies: ["undici-types", "stripe"],
};
diff --git a/apps/api/package.json b/apps/api/package.json
index 8118851e0..8dd539c93 100644
--- a/apps/api/package.json
+++ b/apps/api/package.json
@@ -133,7 +133,6 @@
"marked": "^14.1.2",
"multer": "^2.1.1",
"ollama-ai-provider": "^1.2.0",
- "openai": "^5.20.2",
"parse-diff": "^0.11.1",
"pdf-parse": "^1.1.1",
"pg": "^8.16.3",
diff --git a/apps/api/pnpm-lock.yaml b/apps/api/pnpm-lock.yaml
index c41f6554d..322840798 100644
--- a/apps/api/pnpm-lock.yaml
+++ b/apps/api/pnpm-lock.yaml
@@ -208,9 +208,6 @@ importers:
ollama-ai-provider:
specifier: ^1.2.0
version: 1.2.0([email protected])
- openai:
- specifier: ^5.20.2
parse-diff:
specifier: ^0.11.1
version: 0.11.1
@@ -10711,6 +10708,7 @@ snapshots:
optionalDependencies:
zod: 4.1.12
+ optional: true
dependencies:
diff --git a/apps/api/src/__tests__/snips/lib.ts b/apps/api/src/__tests__/snips/lib.ts
index 4d0e461d0..b92b4be94 100644
--- a/apps/api/src/__tests__/snips/lib.ts
+++ b/apps/api/src/__tests__/snips/lib.ts
@@ -9,7 +9,6 @@ import { TeamFlags } from "../../controllers/v1/types";
// =========================================
export const TEST_API_URL = config.TEST_API_URL;
-export const TEST_URL = TEST_API_URL; // backwards compat temp
const stripTrailingSlash = (url: string) => {
if (url.length < 1) throw new Error("Invalid URL supplied");