fix web errors
Some checks failed
Build and Push Web Docker Image / build (push) Failing after 2m59s
Some checks failed
Build and Push Web Docker Image / build (push) Failing after 2m59s
This commit is contained in:
@@ -2,6 +2,7 @@ import {
|
|||||||
CopilotRuntime,
|
CopilotRuntime,
|
||||||
ExperimentalEmptyAdapter,
|
ExperimentalEmptyAdapter,
|
||||||
copilotRuntimeNextJSAppRouterEndpoint,
|
copilotRuntimeNextJSAppRouterEndpoint,
|
||||||
|
LangGraphHttpAgent,
|
||||||
} from "@copilotkit/runtime";
|
} from "@copilotkit/runtime";
|
||||||
|
|
||||||
import { NextRequest } from "next/server";
|
import { NextRequest } from "next/server";
|
||||||
@@ -9,11 +10,11 @@ import { NextRequest } from "next/server";
|
|||||||
const serviceAdapter = new ExperimentalEmptyAdapter();
|
const serviceAdapter = new ExperimentalEmptyAdapter();
|
||||||
|
|
||||||
const runtime = new CopilotRuntime({
|
const runtime = new CopilotRuntime({
|
||||||
remoteEndpoints: [
|
agents: {
|
||||||
{
|
vpi_1000: new LangGraphHttpAgent({
|
||||||
url: `${process.env.LANGGRAPH_DEPLOYMENT_URL || "http://localhost:8000"}/copilotkit`,
|
url: `${process.env.LANGGRAPH_DEPLOYMENT_URL || "http://localhost:8000"}/copilotkit`,
|
||||||
|
}),
|
||||||
},
|
},
|
||||||
],
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export const POST = async (req: NextRequest) => {
|
export const POST = async (req: NextRequest) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user