We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 151416d commit 68c00d2Copy full SHA for 68c00d2
frontend/app/agui/copilotkit/route.ts
@@ -1,9 +1,9 @@
1
import { HttpAgent } from "@ag-ui/client";
2
import { CopilotRuntime, copilotRuntimeNextJSAppRouterEndpoint, ExperimentalEmptyAdapter } from "@copilotkit/runtime";
3
import { NextRequest } from "next/server";
4
+import { API_ROUTE_AGENT_CHAT } from "@/lib/routes";
5
-
6
-const BACKEND_URL = "http://127.0.0.1:8000/api/v1/agent/chat"
+const BACKEND_URL = `${process.env.NEXT_PUBLIC_API_BASE_URL}${API_ROUTE_AGENT_CHAT}`
7
8
export const POST = async (req: NextRequest) => {
9
// 不需要手动设置 Authorization header
0 commit comments