Skip to content

Commit cc43795

Browse files
committed
Fix default logic
1 parent cfd0df0 commit cc43795

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/content/changelog/ai-gateway/2025-02-26-guardrails.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@ description: Keep AI interactions secure and risk-free with Guardrails in AI Gat
44
products:
55
- ai-gateway
66
date: 2025-02-26T6:00:00Z
7+
cover: ~/assets/images/ai-gateway/Guardrails.png
78
---
89

9-
[AI Gateway](/ai-gateway/) now includes [Guardrails](/ai-gateway/guardrails/), to help you monitor your AI apps for harmful or inappropriate content and deploy safely.
10+
[AI Gateway](/ai-gateway/) now includes [Guardrails](/ai-gateway/guardrails/), to help you monitor your AI apps for harmful or inappropriate content and deploy safely.
1011

1112
Within the AI Gateway settings, you can configure:
13+
1214
- **Guardrails**: Enable or disable content moderation as needed.
1315
- **Evaluation scope**: Select whether to moderate user prompts, model responses, or both.
1416
- **Hazard categories**: Specify which categories to monitor and determine whether detected inappropriate content should be blocked or flagged.

src/util/props.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ const PRODUCT_AREA_OG_IMAGES: Record<string, string> = {
105105
};
106106

107107
export async function getOgImage(entry: CollectionEntry<"docs" | "changelog">) {
108+
console.log(entry.data);
108109
if (entry.data.cover) {
109110
if (!entry.data.cover.src) {
110111
throw new Error(
@@ -124,9 +125,7 @@ export async function getOgImage(entry: CollectionEntry<"docs" | "changelog">) {
124125

125126
if (!section) {
126127
return DEFAULT_OG_IMAGE;
127-
}
128-
129-
if (section === "changelog") {
128+
} else if (section === "changelog") {
130129
return CHANGELOG_OG_IMAGE;
131130
}
132131

0 commit comments

Comments
 (0)