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: clarify route handler caching #58541

Merged
merged 1 commit into from
Nov 17, 2023
Merged

docs: clarify route handler caching #58541

merged 1 commit into from
Nov 17, 2023

Conversation

leerob
Copy link
Member

@leerob leerob commented Nov 16, 2023

We've heard confusion around Route Handlers being cached by default for GETs. While we do have a section on this in the docs, I've made this more explicit by making the examples default to dynamic, while mentioning the defaults.

@leerob leerob requested review from a team as code owners November 16, 2023 14:45
@leerob leerob requested review from jh3y and molebox and removed request for a team November 16, 2023 14:45
@@ -397,73 +399,49 @@ export function GET(request) {
Streaming is commonly used in combination with Large Language Models (LLMs), such as OpenAI, for AI-generated content. Learn more about the [AI SDK](https://sdk.vercel.ai/docs).

```ts filename="app/api/chat/route.ts" switcher
import { Configuration, OpenAIApi } from 'openai-edge'
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While here, updating to latest ai recommendations

@leerob leerob merged commit 9d14be0 into canary Nov 17, 2023
68 checks passed
@leerob leerob deleted the route-handlerz branch November 17, 2023 03:43
@github-actions github-actions bot added the locked label Dec 1, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants