Skip to content

Commit 22c64cd

Browse files
committed
docs(ai-chat): correct the X-Part-Id entropy note
The built-in clients generate a high-entropy id per send (UUID in the browser, full-length nanoid server-side), not a short id.
1 parent 5d114d0 commit 22c64cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/ai-chat/client-protocol.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1048,7 +1048,7 @@ Yes. `.in` records are processed in arrival order — the agent's stop handler a
10481048
</Expandable>
10491049
10501050
<Expandable title="What's the format of the optional `X-Part-Id` header?">
1051-
Any opaque ASCII string up to ~64 characters. The built-in clients generate one per logical send (the browser transport uses a UUID; the server-side clients use a short `nanoid`) and reuse it across auth retries of that send. The server uses it as a per-record idempotency key — re-POSTing the same body with the same `X-Part-Id` produces a single S2 record. If you don't send the header, the server generates one for you and idempotency is per-request only.
1051+
Any opaque ASCII string up to ~64 characters. The built-in clients generate a high-entropy id per logical send (a UUID in the browser, a `nanoid` server-side) and reuse it across auth retries of that send. The server uses it as a per-record idempotency key — re-POSTing the same body with the same `X-Part-Id` produces a single S2 record. If you don't send the header, the server generates one for you and idempotency is per-request only.
10521052
</Expandable>
10531053
10541054
<Expandable title="What happens on rate-limit (429)?">

0 commit comments

Comments
 (0)