Skip to content

Commit cabebd0

Browse files
AI Transport: Add a guide for token streaming using OpenAI SDK
This guide provides a concrete example of how to implement the message-per-token pattern that Mike documented (the one linked to in this guide). I initially got Claude to generate this but replaced a fair chunk of its output. I trusted that its prose is consistent with our tone of voice and AI Transport marketing position (whether mine is, I have no idea) and in general trusted its judgements about how to structure the document. I would definitely welcome opinions on all of the above, especially from those familiar with how we usually write docs. I have tried to avoid repeating too much content from the message-per-token page and have in particular not tried to give an example of hydration since it seems like a provider-agnostic concept.
1 parent e5ea672 commit cabebd0

File tree

2 files changed

+677
-0
lines changed

2 files changed

+677
-0
lines changed

src/data/nav/aitransport.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,15 @@ export default {
2727
},
2828
],
2929
},
30+
{
31+
name: 'Guides',
32+
pages: [
33+
{
34+
name: 'Using the OpenAI SDK',
35+
link: '/docs/guides/ai-transport/openai-sdk',
36+
},
37+
],
38+
},
3039
],
3140
api: [],
3241
} satisfies NavProduct;

0 commit comments

Comments
 (0)