diff --git a/attached_assets/image_1772355696308.png b/attached_assets/image_1772355696308.png new file mode 100644 index 0000000..33a7c82 Binary files /dev/null and b/attached_assets/image_1772355696308.png differ diff --git a/client/src/pages/home.tsx b/client/src/pages/home.tsx index 6d8fb9e..318c4a5 100644 --- a/client/src/pages/home.tsx +++ b/client/src/pages/home.tsx @@ -257,24 +257,28 @@ function SideCard({ article, focalPoints }: { article: Article; focalPoints?: Re return (
-
+
{article.title}
{isVideo && (
-
+
)}
-
-
- {article.author} - {timeAgo(new Date(article.publishedAt))} +
+
+ {article.author} + {timeAgo(new Date(article.publishedAt))} +
+

{article.title}

+
+ + {article.views.toLocaleString()}
-

{article.title}

@@ -334,11 +338,12 @@ function TopStoriesList({ articles }: { articles: Article[] }) { function FeaturedHeroCard({ article, focalPoints }: { article: Article; focalPoints?: Record }) { const isVideo = article.category === "Video"; + const objPos = getObjectPosition(article.coverImage, focalPoints); return ( -
-
- {article.title} +
+
+ {article.title} {isVideo && (
@@ -346,13 +351,17 @@ function FeaturedHeroCard({ article, focalPoints }: { article: Article; focalPoi
)} -
-
-
- {article.author} - {timeAgo(new Date(article.publishedAt))} -
-

{article.title}

+
+
+
+ {article.category} + {timeAgo(new Date(article.publishedAt))} +
+

{article.title}

+

{article.excerpt}

+
+ + {article.views.toLocaleString()}
@@ -378,23 +387,18 @@ function FeaturedCarousel({ articles, popular, galleryImages, focalPoints }: { a const start = page * pageSize; const hero = articles[start]; - const bottom = articles.slice(start + 1, start + 3); + const sideCards = articles.slice(start + 1, start + 3); return (
setPaused(true)} onMouseLeave={() => setPaused(false)}> -
-
-
- {hero && } -
- {bottom.map((a) => ( - - ))} -
-
+
+
+ {hero && }
-
- {popular && popular.length > 0 && } +
+ {sideCards.map((a) => ( + + ))}
{totalPages > 1 && ( diff --git a/server/focal-point.ts b/server/focal-point.ts index 26d3f73..044cc49 100644 --- a/server/focal-point.ts +++ b/server/focal-point.ts @@ -69,7 +69,7 @@ export async function analyzeFocalPoint(imagePath: string): Promise<{ x: number; ] } ], - max_tokens: 60, + max_completion_tokens: 60, }); const text = response.choices[0]?.message?.content?.trim() || ""; diff --git a/server/horoscope-generator.ts b/server/horoscope-generator.ts index e96781b..8eee5d1 100644 --- a/server/horoscope-generator.ts +++ b/server/horoscope-generator.ts @@ -66,8 +66,7 @@ Antworte NUR mit einem JSON-Objekt in diesem exakten Format (kein Markdown, kein }` } ], - temperature: 0.9, - max_tokens: 2000, + max_completion_tokens: 2000, }); const content = response.choices[0]?.message?.content || "";