Skip to content
Merged
Show file tree
Hide file tree
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
8 changes: 0 additions & 8 deletions docs/content/docs/ai-sdk-v6/core/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,6 @@ npm i @browser-ai/core
For AI SDK v5, please refer to the [v5 documentation](/docs/ai-sdk-v5/core/installation).
</Callout>

### Chrome Setup

1. Use Chrome version **128 or higher**
2. Set the following flags to `Enabled`:
- `chrome://flags/#optimization-guide-on-device-model`
- `chrome://flags/#prompt-api-for-gemini-nano-multimodal-input`
3. Click `Relaunch` or restart Chrome.

### Edge Setup

1. Use Edge Dev/Canary version **138.0.3309.2 or higher**
Expand Down
4 changes: 2 additions & 2 deletions docs/content/docs/ai-sdk-v6/web-llm/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ npm i @browser-ai/web-llm

| @browser-ai/web-llm | AI SDK | Notes |
|----------------------|--------|-------|
| v1.0.0 and above | v6.x | Current stable for AI SDK v6 |
| v0.3.2 and below | v5.x | Use for AI SDK v5 |
| v2.0.0 and above | v6.x | Current stable for AI SDK v6 |
| v1.0.0 and below | v5.x | Use for AI SDK v5 |

<Callout type="info">
For AI SDK v5, please refer to the [v5 documentation](/docs/ai-sdk-v5/web-llm/installation).
Expand Down
15 changes: 13 additions & 2 deletions docs/src/components/tweet-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,21 @@ import { getTweet } from "react-tweet/api";
import { enrichTweet } from "react-tweet";

async function TweetContent({ id }: { id: string }) {
const tweet = await getTweet(id);
let tweet;
try {
tweet = await getTweet(id);
} catch {
return null;
}
if (!tweet) return null;

const { user, entities, url } = enrichTweet(tweet);
let enriched;
try {
enriched = enrichTweet(tweet);
} catch {
return null;
}
const { user, entities, url } = enriched;

return (
<Link
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading