From 754a65e1d71cefe03c2cf9cccf7b379fbb1e0041 Mon Sep 17 00:00:00 2001 From: Paul Walko Date: Sat, 13 Dec 2025 00:26:37 +0100 Subject: [PATCH] fix web errors --- web/src/app/api/copilotkit/route.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/web/src/app/api/copilotkit/route.ts b/web/src/app/api/copilotkit/route.ts index 9fe666d..4b05cd1 100644 --- a/web/src/app/api/copilotkit/route.ts +++ b/web/src/app/api/copilotkit/route.ts @@ -2,6 +2,7 @@ import { CopilotRuntime, ExperimentalEmptyAdapter, copilotRuntimeNextJSAppRouterEndpoint, + LangGraphHttpAgent, } from "@copilotkit/runtime"; import { NextRequest } from "next/server"; @@ -9,11 +10,11 @@ import { NextRequest } from "next/server"; const serviceAdapter = new ExperimentalEmptyAdapter(); const runtime = new CopilotRuntime({ - remoteEndpoints: [ - { + agents: { + vpi_1000: new LangGraphHttpAgent({ url: `${process.env.LANGGRAPH_DEPLOYMENT_URL || "http://localhost:8000"}/copilotkit`, - }, - ], + }), + }, }); export const POST = async (req: NextRequest) => {