fix web errors
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user