Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

smaller fixes

Max Deichmann247bebda4806
diff --git a/src/components/layouts/layout.tsx b/src/components/layouts/layout.tsx
index 8219fe4d0c..d85d3b7c8f 100644
--- a/src/components/layouts/layout.tsx
+++ b/src/components/layouts/layout.tsx
@@ -43,8 +43,6 @@ export default function Layout(props: PropsWithChildren) {
current: router.pathname === staticAttributes.href,
}));
- console.log(router.pathname);
-
return (
<>
<div>
diff --git a/src/pages/api/cors.ts b/src/pages/api/cors.ts
deleted file mode 100644
index 9db5f2913b..0000000000
--- a/src/pages/api/cors.ts
+++ /dev/null
@@ -1,21 +0,0 @@
-import Cors from "cors";
-import { type NextApiRequest, type NextApiResponse } from "next";
-
-// Initializing the cors middleware
-// You can read more about the available options here: https://github.com/expressjs/cors#configuration-options
-
-function runMiddleware(
- req: NextApiRequest,
- res: NextApiResponse,
- fn: Function
-) {
- return new Promise((resolve, reject) => {
- fn(req, res, (result: any) => {
- if (result instanceof Error) {
- return reject(result);
- }
-
- return resolve(result);
- });
- });
-}
diff --git a/src/pages/api/traces.ts b/src/pages/api/traces.ts
index fc601e1265..1041f73072 100644
--- a/src/pages/api/traces.ts
+++ b/src/pages/api/traces.ts
@@ -17,7 +17,6 @@ function runMiddleware(
res: NextApiResponse,
fn: Function
) {
- console.log("runMiddleware", req, res, fn);
return new Promise((resolve, reject) => {
fn(req, res, (result: any) => {
if (result instanceof Error) {
diff --git a/src/server/api/routers/llmCalls.ts b/src/server/api/routers/llmCalls.ts
index b9b0f4a97c..e6f408e808 100644
--- a/src/server/api/routers/llmCalls.ts
+++ b/src/server/api/routers/llmCalls.ts
@@ -15,8 +15,6 @@ export const llmCallRouter = createTRPCRouter({
},
})) as LlmCall[];
- console.log(llmCalls);
-
return llmCalls;
}),