Skip to content

Commit 68c00d2

Browse files
author
gaozhe
committed
feat: deploy
1 parent 151416d commit 68c00d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/app/agui/copilotkit/route.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { HttpAgent } from "@ag-ui/client";
22
import { CopilotRuntime, copilotRuntimeNextJSAppRouterEndpoint, ExperimentalEmptyAdapter } from "@copilotkit/runtime";
33
import { NextRequest } from "next/server";
4+
import { API_ROUTE_AGENT_CHAT } from "@/lib/routes";
45

5-
6-
const BACKEND_URL = "http://127.0.0.1:8000/api/v1/agent/chat"
6+
const BACKEND_URL = `${process.env.NEXT_PUBLIC_API_BASE_URL}${API_ROUTE_AGENT_CHAT}`
77

88
export const POST = async (req: NextRequest) => {
99
// 不需要手动设置 Authorization header

0 commit comments

Comments
 (0)