Skip to content

Commit 624635e

Browse files
committed
fix: update templates
1 parent 26ecc05 commit 624635e

4 files changed

Lines changed: 44 additions & 5 deletions

File tree

templates/openui-cloud/overlays/vercel-ai-sdk/src/components/cloud-chat.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import { usePersistedModel } from "@/hooks/use-persisted-model";
44
import { MODEL_OPTIONS } from "@/lib/models";
5-
import { OPENUI_LOGOS, PROMPT_TEMPLATES, STARTERS } from "@/lib/starters";
5+
import { OPENUI_LOGOS, STARTERS } from "@/lib/starters";
66
import {
77
AgentInterface,
88
ModelSwitcher,
@@ -40,6 +40,7 @@ export default function CloudChat() {
4040
componentLibrary={chatLibrary}
4141
logoUrl={logoPath}
4242
theme={{ mode }}
43+
starters={STARTERS}
4344
>
4445
<AgentInterface.MobileHeader
4546
agentName=""
Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,22 @@
11
export const OPENUI_LOGOS = {
22
LIGHT: "/openui-cloud-logo-light.svg",
33
DARK: "/openui-cloud-logo-dark.svg",
4-
};
4+
};
5+
6+
export const STARTERS = [
7+
{
8+
displayText: "What's the weather in Berlin?",
9+
prompt: "What's the weather in Berlin?",
10+
icon: <></>,
11+
},
12+
{
13+
displayText: "Relive the FIFA World Cup 2026",
14+
prompt: "Relive the FIFA World Cup 2026.",
15+
icon: <></>,
16+
},
17+
{
18+
displayText: "Help me plan my next vacation",
19+
prompt: "Help me plan my next vacation.",
20+
icon: <></>,
21+
},
22+
];

templates/openui-cloud/overlays/vercel-eve/src/components/cloud-chat.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use client";
22

3-
import { OPENUI_LOGOS, PROMPT_TEMPLATES, STARTERS } from "@/lib/starters";
3+
import { OPENUI_LOGOS, STARTERS } from "@/lib/starters";
44
import { AgentInterface, useSystemThemeMode } from "@openuidev/react-ui";
55
import { chatLibrary, useOpenuiCloudStorage } from "@openuidev/thesys";
66
import { useMemo } from "react";
@@ -13,7 +13,6 @@ export default function CloudChat() {
1313
const storage = useOpenuiCloudStorage({
1414
token: "/api/frontend-token",
1515
apiBaseUrl: "https://api.thesys.dev",
16-
features: { artifact: true },
1716
});
1817

1918
const logoPath = mode === "dark" ? OPENUI_LOGOS.DARK : OPENUI_LOGOS.LIGHT;
@@ -31,7 +30,6 @@ export default function CloudChat() {
3130
<AgentInterface.Welcome
3231
title="Good to see you"
3332
description="What's on your mind today?"
34-
promptTemplates={PROMPT_TEMPLATES}
3533
glowAnimation
3634
/>
3735
</AgentInterface>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
export const OPENUI_LOGOS = {
2+
LIGHT: "/openui-cloud-logo-light.svg",
3+
DARK: "/openui-cloud-logo-dark.svg",
4+
};
5+
6+
export const STARTERS = [
7+
{
8+
displayText: "What's the weather in Berlin?",
9+
prompt: "What's the weather in Berlin?",
10+
icon: <></>,
11+
},
12+
{
13+
displayText: "Relive the FIFA World Cup 2026",
14+
prompt: "Relive the FIFA World Cup 2026.",
15+
icon: <></>,
16+
},
17+
{
18+
displayText: "Help me plan my next vacation",
19+
prompt: "Help me plan my next vacation.",
20+
icon: <></>,
21+
},
22+
];

0 commit comments

Comments
 (0)