Skip to content

Commit 75a29e0

Browse files
committed
llm: update default provider models to latest stable
1 parent 7a0639b commit 75a29e0

12 files changed

Lines changed: 60 additions & 60 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,11 @@ RENDERIFY_LLM_USE_STRUCTURED_OUTPUT=false pnpm playground
200200

201201
# Optional LLM provider env
202202
RENDERIFY_LLM_PROVIDER=openai RENDERIFY_LLM_API_KEY=<your_key> pnpm playground
203-
RENDERIFY_LLM_PROVIDER=openai RENDERIFY_LLM_MODEL=gpt-4.1-mini RENDERIFY_LLM_BASE_URL=https://api.openai.com/v1 pnpm playground
203+
RENDERIFY_LLM_PROVIDER=openai RENDERIFY_LLM_MODEL=gpt-5-mini RENDERIFY_LLM_BASE_URL=https://api.openai.com/v1 pnpm playground
204204
RENDERIFY_LLM_PROVIDER=anthropic RENDERIFY_LLM_API_KEY=<your_key> pnpm playground
205-
RENDERIFY_LLM_PROVIDER=anthropic RENDERIFY_LLM_MODEL=claude-3-5-sonnet-latest RENDERIFY_LLM_BASE_URL=https://api.anthropic.com/v1 pnpm playground
205+
RENDERIFY_LLM_PROVIDER=anthropic RENDERIFY_LLM_MODEL=claude-sonnet-4-5 RENDERIFY_LLM_BASE_URL=https://api.anthropic.com/v1 pnpm playground
206206
RENDERIFY_LLM_PROVIDER=google RENDERIFY_LLM_API_KEY=<your_key> pnpm playground
207-
RENDERIFY_LLM_PROVIDER=google RENDERIFY_LLM_MODEL=gemini-2.0-flash RENDERIFY_LLM_BASE_URL=https://generativelanguage.googleapis.com/v1beta pnpm playground
207+
RENDERIFY_LLM_PROVIDER=google RENDERIFY_LLM_MODEL=gemini-2.5-flash RENDERIFY_LLM_BASE_URL=https://generativelanguage.googleapis.com/v1beta pnpm playground
208208

209209
# Runtime protocol/runtime safety env
210210
RENDERIFY_RUNTIME_ENFORCE_MANIFEST=true pnpm playground

docs/cli-playground.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ All CLI and playground behavior can be configured via environment:
279279
# LLM Configuration
280280
RENDERIFY_LLM_PROVIDER=openai|anthropic|google
281281
RENDERIFY_LLM_API_KEY=...
282-
RENDERIFY_LLM_MODEL=gpt-4.1-mini
282+
RENDERIFY_LLM_MODEL=gpt-5-mini
283283
RENDERIFY_LLM_BASE_URL=https://api.openai.com/v1
284284
RENDERIFY_LLM_USE_STRUCTURED_OUTPUT=true|false
285285

docs/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ You can also customize the model and base URL:
153153

154154
```bash
155155
RENDERIFY_LLM_PROVIDER=openai \
156-
RENDERIFY_LLM_MODEL=gpt-4.1-mini \
156+
RENDERIFY_LLM_MODEL=gpt-5-mini \
157157
RENDERIFY_LLM_BASE_URL=https://api.openai.com/v1 \
158158
RENDERIFY_LLM_API_KEY=sk-... \
159159
pnpm playground

docs/llm-integration.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ Renderify supports multiple LLM providers for generating UI from natural languag
66

77
| Provider | Default Model | Package |
88
| --------------- | -------------------------- | ---------------- |
9-
| OpenAI | `gpt-4.1-mini` | `@renderify/llm` |
10-
| Anthropic | `claude-3-5-sonnet-latest` | `@renderify/llm` |
11-
| Google (Gemini) | `gemini-2.0-flash` | `@renderify/llm` |
9+
| OpenAI | `gpt-5-mini` | `@renderify/llm` |
10+
| Anthropic | `claude-sonnet-4-5` | `@renderify/llm` |
11+
| Google (Gemini) | `gemini-2.5-flash` | `@renderify/llm` |
1212

1313
## Configuration
1414

@@ -22,7 +22,7 @@ RENDERIFY_LLM_PROVIDER=openai|anthropic|google
2222
RENDERIFY_LLM_API_KEY=your-api-key
2323

2424
# Optional: custom model
25-
RENDERIFY_LLM_MODEL=gpt-4.1-mini
25+
RENDERIFY_LLM_MODEL=gpt-5-mini
2626

2727
# Optional: custom base URL (for proxies or self-hosted)
2828
RENDERIFY_LLM_BASE_URL=https://api.openai.com/v1
@@ -44,7 +44,7 @@ const openai = createLLMInterpreter({
4444
provider: "openai",
4545
providerOptions: {
4646
apiKey: "sk-...",
47-
model: "gpt-4.1-mini",
47+
model: "gpt-5-mini",
4848
baseUrl: "https://api.openai.com/v1",
4949
timeoutMs: 30000,
5050
},
@@ -55,7 +55,7 @@ const anthropic = createLLMInterpreter({
5555
provider: "anthropic",
5656
providerOptions: {
5757
apiKey: "sk-ant-...",
58-
model: "claude-3-5-sonnet-latest",
58+
model: "claude-sonnet-4-5",
5959
maxTokens: 4096,
6060
},
6161
});
@@ -65,7 +65,7 @@ const google = createLLMInterpreter({
6565
provider: "google",
6666
providerOptions: {
6767
apiKey: "...",
68-
model: "gemini-2.0-flash",
68+
model: "gemini-2.5-flash",
6969
baseUrl: "https://generativelanguage.googleapis.com/v1beta",
7070
},
7171
});

docs/runtime-plan-ir.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ isSafePath("__proto__.hack"); // => false
352352
},
353353
"metadata": {
354354
"sourcePrompt": "Build an analytics dashboard",
355-
"sourceModel": "gpt-4.1-mini",
355+
"sourceModel": "gpt-5-mini",
356356
"tags": ["dashboard", "analytics"]
357357
}
358358
}

packages/core/src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export class DefaultRenderifyConfig implements RenderifyConfig {
7979
const env = getEnvironmentValues();
8080
const defaultValues: RenderifyConfigValues = {
8181
llmProvider: "openai",
82-
llmModel: "gpt-4.1-mini",
82+
llmModel: "gpt-5-mini",
8383
llmBaseUrl: "https://api.openai.com/v1",
8484
llmRequestTimeoutMs: 30000,
8585
jspmCdnUrl: "https://ga.jspm.io/npm",

packages/llm/src/providers/anthropic.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ interface AnthropicStreamPayload {
7979
}
8080

8181
const DEFAULT_BASE_URL = "https://api.anthropic.com/v1";
82-
const DEFAULT_MODEL = "claude-3-5-sonnet-latest";
82+
const DEFAULT_MODEL = "claude-sonnet-4-5";
8383
const DEFAULT_TIMEOUT_MS = 30000;
8484
const DEFAULT_MAX_TOKENS = 2048;
8585
const DEFAULT_ANTHROPIC_VERSION = "2023-06-01";

packages/llm/src/providers/google.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ interface GoogleGenerateContentPayload {
6464
}
6565

6666
const DEFAULT_BASE_URL = "https://generativelanguage.googleapis.com/v1beta";
67-
const DEFAULT_MODEL = "gemini-2.0-flash";
67+
const DEFAULT_MODEL = "gemini-2.5-flash";
6868
const DEFAULT_TIMEOUT_MS = 30000;
6969

7070
export class GoogleLLMInterpreter implements LLMInterpreter {

packages/llm/src/providers/openai.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ interface OpenAIExtractedOutput {
8686
}
8787

8888
const DEFAULT_BASE_URL = "https://api.openai.com/v1";
89-
const DEFAULT_MODEL = "gpt-4.1-mini";
89+
const DEFAULT_MODEL = "gpt-5-mini";
9090
const DEFAULT_TIMEOUT_MS = 30000;
9191

9292
const RUNTIME_PLAN_JSON_SCHEMA = {

tests/config.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ test("config loads default security profile and runtime defaults", async () => {
1111

1212
assert.equal(config.get("securityProfile"), "balanced");
1313
assert.equal(config.get("llmProvider"), "openai");
14-
assert.equal(config.get("llmModel"), "gpt-4.1-mini");
14+
assert.equal(config.get("llmModel"), "gpt-5-mini");
1515
assert.equal(config.get("llmBaseUrl"), "https://api.openai.com/v1");
1616
assert.equal(config.get("llmRequestTimeoutMs"), 30000);
1717
assert.equal(config.get("runtimeJspmOnlyStrictMode"), false);

0 commit comments

Comments
 (0)