fix(blog): optimize component share logic, typography, and modal layouts
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 5s
Build & Deploy / 🏗️ Build (push) Failing after 14s
Build & Deploy / 🧪 QA (push) Failing after 1m48s
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🩺 Health Check (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 2s
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 5s
Build & Deploy / 🏗️ Build (push) Failing after 14s
Build & Deploy / 🧪 QA (push) Failing after 1m48s
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🩺 Health Check (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 2s
This commit is contained in:
@@ -208,7 +208,7 @@ async function main() {
|
||||
if (usage.prompt > 0) {
|
||||
console.log("--------------------------------------------------");
|
||||
console.log("📊 ACCUMULATED API USAGE (SUM OF 6 PASSES)");
|
||||
console.log(` Model: google/gemini-3-flash-preview`);
|
||||
console.log(` Model: google/gemini-2.5-flash`);
|
||||
console.log(` Total Prompt: ${usage.prompt.toLocaleString()}`);
|
||||
console.log(` Total Completion: ${usage.completion.toLocaleString()}`);
|
||||
console.log(
|
||||
@@ -244,7 +244,7 @@ Return ONLY the bullet points. No intro/outro.
|
||||
const resp = await axios.post(
|
||||
"https://openrouter.ai/api/v1/chat/completions",
|
||||
{
|
||||
model: "google/gemini-3-flash-preview",
|
||||
model: "google/gemini-2.5-flash",
|
||||
messages: [
|
||||
{ role: "system", content: systemPrompt },
|
||||
{
|
||||
@@ -440,17 +440,16 @@ Focus 100% on the BRIEFING text provided by the user. Use the DISTILLED_CRAWL on
|
||||
- API Integrations: 800 € / stk
|
||||
- Inhalts-Verwaltung (CMS-Modul): 1.500 € (optional)
|
||||
|
||||
${
|
||||
budget
|
||||
? `### BUDGET LOGIC (ULTRA-STRICT):
|
||||
${budget
|
||||
? `### BUDGET LOGIC (ULTRA-STRICT):
|
||||
1. **Mental Calculation**: Start with 7.000 €. Add items based on the reference above.
|
||||
2. **Hard Ceiling**: If total > ${budget}, you MUST discard lower priority items.
|
||||
3. **Priority**: High-End Design and Core Pages > Features.
|
||||
4. **Restriction**: For ${budget}, do NOT exceed 2 features and 4 extra pages.
|
||||
5. THE TOTAL COST CALCULATED BY THESE RULES MUST BE <= ${budget}.
|
||||
6. Do NOT mention the budget in any string fields.`
|
||||
: ""
|
||||
}
|
||||
: ""
|
||||
}
|
||||
|
||||
- ** features **: Items from the FEATURE_REFERENCE.
|
||||
- ** ABSOLUTE CONSERVATIVE RULE **: Only use features if the briefing implies *dynamic complexity* (CMS, filtering, search, database).
|
||||
@@ -500,7 +499,7 @@ ${
|
||||
const p1Resp = await axios.post(
|
||||
"https://openrouter.ai/api/v1/chat/completions",
|
||||
{
|
||||
model: "google/gemini-3-flash-preview",
|
||||
model: "google/gemini-2.5-flash",
|
||||
messages: [
|
||||
{ role: "system", content: pass1SystemPrompt },
|
||||
{ role: "user", content: pass1UserPrompt },
|
||||
@@ -547,7 +546,7 @@ Return only the corrected 'features' and 'otherPages' arrays.
|
||||
const p15Resp = await axios.post(
|
||||
"https://openrouter.ai/api/v1/chat/completions",
|
||||
{
|
||||
model: "google/gemini-3-flash-preview",
|
||||
model: "google/gemini-2.5-flash",
|
||||
messages: [
|
||||
{ role: "system", content: pass15SystemPrompt },
|
||||
{
|
||||
@@ -603,7 +602,7 @@ ${JSON.stringify(facts, null, 2)}
|
||||
const p2Resp = await axios.post(
|
||||
"https://openrouter.ai/api/v1/chat/completions",
|
||||
{
|
||||
model: "google/gemini-3-flash-preview",
|
||||
model: "google/gemini-2.5-flash",
|
||||
messages: [
|
||||
{ role: "system", content: pass2SystemPrompt },
|
||||
{ role: "user", content: briefing },
|
||||
@@ -658,7 +657,7 @@ ${tone}
|
||||
const p3Resp = await axios.post(
|
||||
"https://openrouter.ai/api/v1/chat/completions",
|
||||
{
|
||||
model: "google/gemini-3-flash-preview",
|
||||
model: "google/gemini-2.5-flash",
|
||||
messages: [
|
||||
{ role: "system", content: pass3SystemPrompt },
|
||||
{
|
||||
@@ -712,7 +711,7 @@ ${JSON.stringify({ facts, strategy }, null, 2)}
|
||||
const p4Resp = await axios.post(
|
||||
"https://openrouter.ai/api/v1/chat/completions",
|
||||
{
|
||||
model: "google/gemini-3-flash-preview",
|
||||
model: "google/gemini-2.5-flash",
|
||||
messages: [
|
||||
{ role: "system", content: pass4SystemPrompt },
|
||||
{
|
||||
@@ -808,7 +807,7 @@ ${JSON.stringify({ facts, details, strategy, ia }, null, 2)}
|
||||
const p5Resp = await axios.post(
|
||||
"https://openrouter.ai/api/v1/chat/completions",
|
||||
{
|
||||
model: "google/gemini-3-flash-preview",
|
||||
model: "google/gemini-2.5-flash",
|
||||
messages: [
|
||||
{ role: "system", content: pass5SystemPrompt },
|
||||
{ role: "user", content: briefing },
|
||||
@@ -862,7 +861,7 @@ ${JSON.stringify({ facts, strategy, ia, positionsData }, null, 2)}
|
||||
const p6Resp = await axios.post(
|
||||
"https://openrouter.ai/api/v1/chat/completions",
|
||||
{
|
||||
model: "google/gemini-3-flash-preview",
|
||||
model: "google/gemini-2.5-flash",
|
||||
messages: [
|
||||
{ role: "system", content: pass6SystemPrompt },
|
||||
{ role: "user", content: `BRIEFING_TRUTH: \n${briefing} ` },
|
||||
@@ -1004,8 +1003,8 @@ ${JSON.stringify({ facts, strategy, ia, positionsData }, null, 2)}
|
||||
const normalizedValue =
|
||||
typeof value === "object"
|
||||
? (value as any).beschreibung ||
|
||||
(value as any).description ||
|
||||
JSON.stringify(value)
|
||||
(value as any).description ||
|
||||
JSON.stringify(value)
|
||||
: value;
|
||||
normalized[key] = normalizedValue as string;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user