File tree Expand file tree Collapse file tree
demo/vercel/react/use-client-transport-tools/src/app/api/chat Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import type { UIMessage, UIMessageChunk } from 'ai';
1212import { anthropic } from '@ai-sdk/anthropic' ;
1313import Ably from 'ably' ;
1414import { 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';
2121interface 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 ;
You can’t perform that action at this time.
0 commit comments