Skip to content

Commit edd8f45

Browse files
committed
fix: stale type information
1 parent abfe1f1 commit edd8f45

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • demo/vercel/react/use-client-transport-tools/src/app/api/chat

demo/vercel/react/use-client-transport-tools/src/app/api/chat/route.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import type { UIMessage, UIMessageChunk } from 'ai';
1212
import { anthropic } from '@ai-sdk/anthropic';
1313
import Ably from 'ably';
1414
import { createServerTransport } from '@ably/ai-transport/vercel';
15-
import type { MessageWithHeaders } from '@ably/ai-transport';
15+
import type { ConversationNode } from '@ably/ai-transport';
1616

1717
// ---------------------------------------------------------------------------
1818
// Types
@@ -21,8 +21,8 @@ import type { MessageWithHeaders } from '@ably/ai-transport';
2121
interface ChatRequestBody {
2222
turnId: string;
2323
clientId: string;
24-
messages: MessageWithHeaders<UIMessage>[];
25-
history?: MessageWithHeaders<UIMessage>[];
24+
messages: ConversationNode<UIMessage>[];
25+
history?: ConversationNode<UIMessage>[];
2626
id: string;
2727
forkOf?: string;
2828
parent?: string | null;

0 commit comments

Comments
 (0)