fix web errors
All checks were successful
Build and Push Agent Docker Image / build (push) Successful in 52s
Build and Push Web Docker Image / build (push) Successful in 3m28s

This commit is contained in:
2025-12-13 00:35:38 +01:00
parent 754a65e1d7
commit 74e63a6b9a
3 changed files with 18 additions and 33 deletions

View File

@@ -2,7 +2,6 @@ import {
CopilotRuntime,
ExperimentalEmptyAdapter,
copilotRuntimeNextJSAppRouterEndpoint,
LangGraphHttpAgent,
} from "@copilotkit/runtime";
import { NextRequest } from "next/server";
@@ -10,11 +9,11 @@ import { NextRequest } from "next/server";
const serviceAdapter = new ExperimentalEmptyAdapter();
const runtime = new CopilotRuntime({
agents: {
vpi_1000: new LangGraphHttpAgent({
url: `${process.env.LANGGRAPH_DEPLOYMENT_URL || "http://localhost:8000"}/copilotkit`,
}),
},
remoteEndpoints: [
{
url: process.env.LANGGRAPH_DEPLOYMENT_URL || "http://localhost:8000",
},
],
});
export const POST = async (req: NextRequest) => {