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
2 changes: 1 addition & 1 deletion packages/openui-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openuidev/cli",
"version": "0.1.1",
"version": "0.1.2",
"description": "CLI for OpenUI — scaffold generative UI chat apps and generate LLM system prompts from component libraries",
"bin": {
"openui": "dist/index.js"
Expand Down
28 changes: 28 additions & 0 deletions packages/openui-cli/src/templates/openui-cloud/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,34 @@ Open [http://localhost:3000](http://localhost:3000) with your browser to see the
You can start editing the page by modifying `src/app/api/route.ts` and improving your agent
by adding system prompts or tools.

## Switching Models

To switch the chat model used for the app, add an `OPENUI_MODEL` env var in your .env file. Thesys Server accepts a value in the `provider/model` format compliant with [models.dev](models.dev). Some of the models supported include:

| Provider | Model | Model String |
|----------|-----------|--------------|
| Google | Gemini 3.1 Flash Lite | google/gemini-3.1-flash-lite-free |
| Google | Gemini 3.1 Pro | google/gemini-3.1-pro-free |
| Google | Gemini 3.5 Flash | google/gemini-3.5-flash-free |
| OpenAI | GPT 5.2 | openai/gpt-5.2 |
| OpenAI | GPT 5.5 | openai/gpt-5.5 |
| OpenAI | GPT 5 | openai/gpt-5.4|
| OpenAI | GPT 5 | openai/gpt-5.4-mini|
| OpenAI | GPT 5 | openai/gpt-5.1|
| OpenAI | GPT 5 | openai/gpt-5|
| OpenAI | GPT 5 | openai/gpt-5-mini|
| OpenAI | GPT 5 | openai/gpt-5-nano|
| OpenAI | GPT 5 | openai/gpt-4.1|
| OpenAI | GPT 5 | openai/gpt-4.1-mini|
| OpenAI | GPT 5 | openai/gpt-4o|
| Anthropic | Claude Sonnet | anthropic/claude-sonnet-5|
| Anthropic | Claude Opus | anthropic/claude-opus-4.7|
| Anthropic | Claude Sonnet | anthropic/claude-sonnet-4.6|
| Anthropic | Claude Sonnet | anthropic/claude-sonnet-4|
| Anthropic | Claude Haiku | anthropic/claude-haiku-4.5|



## SDK packages

- `@openuidev/thesys-server` — the server SDK (`artifactTool`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export async function POST(req: Request) {
try {
stream = (await client.responses.create(
{
model: envOr("OPENUI_MODEL", "google/gemini-3.1-pro"),
model: envOr("OPENUI_MODEL", "google/gemini-3.1-pro-free"),
conversation: threadId, // store:true persists to the conversation
input,
stream: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { ThemeProvider } from "@/hooks/use-system-theme";
import "./globals.css";

export const metadata: Metadata = {
title: "OpenUI Chat",
description: "Generative UI Chat with OpenAI SDK",
title: "OpenUI Cloud",
description: "Managed OpenUI Cloud Chat with web, image & artifact tools",
};

export default function RootLayout({
Expand Down
Loading