File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -50,12 +50,10 @@ import { createAIChatStreamRouteHandlers } from "next-ai-stream/server";
5050
5151export const dynamic = " force-dynamic" ;
5252
53- const { GET, POST } = createAIChatStreamRouteHandlers ({
53+ export const { GET, POST } = createAIChatStreamRouteHandlers ({
5454 client ,
5555 model: " grok-2-latest" , // use whatever model you want
5656});
57-
58- export { GET , POST };
5957```
6058
6159### 3. Start AI Chat Stream
Original file line number Diff line number Diff line change @@ -25,12 +25,10 @@ import {
2525 *
2626 * export const dynamic = "force-dynamic";
2727 *
28- * const { GET, POST } = createAIChatStreamRouteHandlers({
28+ * export const { GET, POST } = createAIChatStreamRouteHandlers({
2929 * client,
3030 * model: "grok-2-latest",
3131 * });
32- *
33- * export { GET, POST };
3432 * ```
3533 *
3634 * @param {AIChatStreamConfig } props - Configuration for the API handlers.
You can’t perform that action at this time.
0 commit comments