File tree Expand file tree Collapse file tree
templates/openui-cloud/overlays Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33import { usePersistedModel } from "@/hooks/use-persisted-model" ;
44import { MODEL_OPTIONS } from "@/lib/models" ;
5- import { OPENUI_LOGOS , PROMPT_TEMPLATES , STARTERS } from "@/lib/starters" ;
5+ import { OPENUI_LOGOS , STARTERS } from "@/lib/starters" ;
66import {
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 = ""
Original file line number Diff line number Diff line change 11export 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+ ] ;
Original file line number Diff line number Diff line change 11"use client" ;
22
3- import { OPENUI_LOGOS , PROMPT_TEMPLATES , STARTERS } from "@/lib/starters" ;
3+ import { OPENUI_LOGOS , STARTERS } from "@/lib/starters" ;
44import { AgentInterface , useSystemThemeMode } from "@openuidev/react-ui" ;
55import { chatLibrary , useOpenuiCloudStorage } from "@openuidev/thesys" ;
66import { 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 >
Original file line number Diff line number Diff line change 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+ ] ;
You can’t perform that action at this time.
0 commit comments