Skip to content

Commit 99b13b0

Browse files
committed
update readme
1 parent 3880d00 commit 99b13b0

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,10 @@ import { createAIChatStreamRouteHandlers } from "next-ai-stream/server";
5050

5151
export 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

src/server/public/createAIChatStreamRouteHandlers.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)