Compare commits

..
4 Commits
Author SHA1 Message Date
Chris Tate 06859dee58 address feedback 2026-01-16 22:05:54 -06:00
Chris Tate 6852a93606 fix lint 2026-01-16 21:32:10 -06:00
Chris Tate 23b5d6b750 fixes 2026-01-16 21:25:02 -06:00
Chris Tate 41d437cce7 codegen 2026-01-16 21:21:34 -06:00
11 changed files with 12 additions and 26 deletions
+2 -7
View File
@@ -1,9 +1,4 @@
# Vercel AI Gateway
# Automatically authenticated when deployed on Vercel
# AI Gateway API Key (required for /api/generate endpoint)
# Uses Vercel AI Gateway - automatically authenticated when deployed on Vercel
# For local development, get your key from https://vercel.com/ai-gateway
AI_GATEWAY_API_KEY=
# AI Model Configuration
# Override the default model used for UI generation
# Default: anthropic/claude-haiku-4.5
AI_GATEWAY_MODEL=anthropic/claude-haiku-4.5
+1 -2
View File
@@ -78,7 +78,6 @@ EXAMPLE (Blog with responsive grid):
Generate JSONL:`;
const MAX_PROMPT_LENGTH = 140;
const DEFAULT_MODEL = "anthropic/claude-haiku-4.5";
export async function POST(req: Request) {
const { prompt } = await req.json();
@@ -86,7 +85,7 @@ export async function POST(req: Request) {
const sanitizedPrompt = String(prompt || "").slice(0, MAX_PROMPT_LENGTH);
const result = streamText({
model: process.env.AI_GATEWAY_MODEL || DEFAULT_MODEL,
model: "anthropic/claude-opus-4.5",
system: SYSTEM_PROMPT,
prompt: sanitizedPrompt,
temperature: 0.7,
+1 -1
View File
@@ -33,7 +33,7 @@ export async function POST(req: Request) {
: '';
const result = streamText({
model: 'anthropic/claude-haiku-4.5',
model: 'anthropic/claude-opus-4.5',
system: systemPrompt + contextPrompt,
prompt,
});
+1 -1
View File
@@ -100,7 +100,7 @@ export async function POST(req: Request) {
const systemPrompt = generateCatalogPrompt(catalog);
const result = streamText({
model: 'anthropic/claude-haiku-4.5',
model: 'anthropic/claude-opus-4.5',
system: systemPrompt,
prompt,
});
+1 -1
View File
@@ -79,7 +79,7 @@ function App() {
const { prompt } = await req.json();
const result = streamText({
model: 'anthropic/claude-haiku-4.5',
model: 'anthropic/claude-opus-4.5',
system: generateCatalogPrompt(catalog),
prompt,
});
+2 -7
View File
@@ -1,9 +1,4 @@
# Vercel AI Gateway
# Automatically authenticated when deployed on Vercel
# AI Gateway API Key (required for /api/generate endpoint)
# Uses Vercel AI Gateway - automatically authenticated when deployed on Vercel
# For local development, get your key from https://vercel.com/ai-gateway
AI_GATEWAY_API_KEY=
# AI Model Configuration
# Override the default model used for dashboard generation
# Default: anthropic/claude-haiku-4.5
AI_GATEWAY_MODEL=anthropic/claude-haiku-4.5
+1 -3
View File
@@ -58,8 +58,6 @@ EXAMPLE - Revenue Dashboard:
Generate JSONL patches now:`;
const DEFAULT_MODEL = "anthropic/claude-haiku-4.5";
export async function POST(req: Request) {
const { prompt, context } = await req.json();
@@ -71,7 +69,7 @@ export async function POST(req: Request) {
}
const result = streamText({
model: process.env.AI_GATEWAY_MODEL || DEFAULT_MODEL,
model: "anthropic/claude-opus-4.5",
system: SYSTEM_PROMPT,
prompt: fullPrompt,
temperature: 0.7,
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@json-render/codegen",
"version": "0.3.0",
"version": "0.1.0",
"license": "Apache-2.0",
"description": "Utilities for generating code from json-render UI trees",
"keywords": [
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@json-render/core",
"version": "0.3.0",
"version": "0.2.0",
"license": "Apache-2.0",
"description": "JSON becomes real things. Define your catalog, register your components, let AI generate.",
"keywords": [
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@json-render/react",
"version": "0.3.0",
"version": "0.2.0",
"license": "Apache-2.0",
"description": "React renderer for @json-render/core. JSON becomes React components.",
"keywords": [
-1
View File
@@ -1,7 +1,6 @@
{
"$schema": "https://turborepo.dev/schema.json",
"ui": "tui",
"globalEnv": ["AI_GATEWAY_MODEL"],
"tasks": {
"build": {
"dependsOn": ["^build"],