Skip to content

Commit e1dd9a8

Browse files
zknillGregHolmes
authored andcommitted
fix nav and typos
1 parent 1beda02 commit e1dd9a8

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/data/nav/aitransport.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ export default {
1616
link: '/docs/ai-transport',
1717
index: true,
1818
},
19+
],
20+
},
21+
{
22+
name: 'Token streaming',
23+
pages: [
1924
{
20-
name: 'Token streaming',
21-
pages: [
22-
{
23-
name: 'Message per response',
24-
link: '/docs/ai-transport/features/token-streaming/message-per-response',
25-
},
26-
],
25+
name: 'Message per response',
26+
link: '/docs/ai-transport/features/token-streaming/message-per-response',
2727
},
2828
],
2929
},

src/pages/docs/ai-transport/features/token-streaming/message-per-response.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ This approach is ideal when:
2929
action to the Ably channel with an empty or the first token as content.
3030
2. **Token streaming**: Append subsequent tokens to the original message by publishing those tokens
3131
with the `message.append` action.
32-
3. **Live Delivery**: Clients subscribed to the channel receive each appended token in real-time, allowing
32+
3. **Live Delivery**: Clients subscribed to the channel receive each appended token in realtime, allowing
3333
them to progressively render the response.
3434
4. **Compacted history**: The channel history contains only one message per AI response,
3535
which includes all tokens appended to it concatenated together.
@@ -39,12 +39,12 @@ automatically have the full response with all tokens appended to it.
3939

4040
## Publishing tokens
4141

42-
You should publish tokens from a [Realtime](/docs/api/realtime-sdk) client, which maintains a
42+
Publish tokens from a [Realtime](/docs/api/realtime-sdk) client, which maintains a
4343
persistent connection to the Ably service. This allows you to publish at very high message rates
4444
with the lowest possible latencies, while preserving guarantees around message delivery order.
4545
For more information, see [Realtime and REST](/docs/basics#realtime-and-rest).
4646

47-
[Channels](/docs/channels) are used to separate message traffic into different topics.
47+
[Channels](/docs/channels) separate message traffic into different topics.
4848
For token streaming, each conversation or session typically has its own channel.
4949

5050
Use the [`get()`](/docs/api/realtime-sdk/channels#get) method to create or retrieve a channel instance:
@@ -129,7 +129,7 @@ Subscribers receive different message actions depending on when they join and ho
129129
messages.
130130

131131
When subscribed to a channel, clients receive the initial message with the `message.create` action,
132-
followed by each token as a `message.append` action in real-time.
132+
followed by each token as a `message.append` action in realtime.
133133

134134
<Code>
135135
```javascript

0 commit comments

Comments
 (0)