Skip to content

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

fix(agent): Remove explicit `LANGFUSE_AWS_BEDROCK_REGION` precondition (#13991)

Ben Bachem3bc8c6293e23
diff --git a/web/src/features/in-app-agent/server/handler.ts b/web/src/features/in-app-agent/server/handler.ts
index a6d3eaa9f7..7948e37a86 100644
--- a/web/src/features/in-app-agent/server/handler.ts
+++ b/web/src/features/in-app-agent/server/handler.ts
@@ -50,15 +50,6 @@ export default async function handler(request: Request) {
);
}
- if (!env.LANGFUSE_AWS_BEDROCK_REGION) {
- throw new BaseError(
- "PreconditionFailedError",
- 412,
- "Assistant is not configured",
- true,
- );
- }
-
const bodyResult = await readBoundedJsonBody(
request,
MAX_IN_APP_AGENT_INPUT_BYTES,