Skip to content

Commit 00b30e5

Browse files
committed
breaking-changes
Signed-off-by: Arya Pratap Singh <notaryasingh@gmail.com>
1 parent 1c9e3c7 commit 00b30e5

File tree

13 files changed

+1324
-325
lines changed

13 files changed

+1324
-325
lines changed

agent/run_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
app = FastAPI()
1414
app.add_middleware(
1515
CORSMiddleware,
16-
allow_origins=["http://localhost:3000"], # Your frontend URL
16+
allow_origins=["http://localhost:3000"],
1717
allow_credentials=True,
1818
allow_methods=["*"],
1919
allow_headers=["*"],

frontend-interface/app/api/copilot/route.ts renamed to frontend-interface/app/api/copilotkit/route.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,27 @@ import {
55
copilotRuntimeNextJSAppRouterEndpoint,
66
} from "@copilotkit/runtime";
77

8+
89
const serviceAdapter = new GroqAdapter({ model: "llama-3.3-70b-versatile" });
910

10-
const runtime = new CopilotRuntime({
11+
const runtime = new CopilotRuntime(
12+
{
1113
remoteEndpoints: [
1214
{
1315
url: process.env.REMOTE_ACTION_URL || "http://localhost:8000/copilotkit",
1416
},
1517
],
16-
});
18+
}
19+
20+
);
1721

1822
export const POST = async (req: NextRequest) => {
1923
const { handleRequest } = copilotRuntimeNextJSAppRouterEndpoint({
2024
runtime,
2125
serviceAdapter,
2226
endpoint: "/api/copilotkit",
27+
2328
});
24-
2529
return handleRequest(req);
2630
};
2731

frontend-interface/app/layout.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ export default function RootLayout({
2323

2424
<body className={comfortaa.className}>
2525
<CopilotKit runtimeUrl="/api/copilotkit" agent="dsa_agent">
26-
2726
{children}
2827
</CopilotKit>
2928
</body>

0 commit comments

Comments
 (0)