Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update expo guide response headers #3950

Merged
merged 2 commits into from
Dec 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions content/docs/02-getting-started/07-expo.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,13 @@ Let's take a look at what is happening in this code:

This API route creates a POST request endpoint at `/api/chat`.

<Note>
If you are experiencing issues with choppy/delayed streams on iOS, you can add
the `Content-Type`: `application/octet-stream` header to the response. For
more information, check out [this GitHub
issue](https://github.com/vercel/ai/issues/3946).
</Note>

## Wire up the UI

Now that you have an API route that can query an LLM, it's time to setup your frontend. The AI SDK's [ UI ](/docs/ai-sdk-ui) package abstracts the complexity of a chat interface into one hook, [`useChat`](/docs/reference/ai-sdk-ui/use-chat).
Expand Down
Loading