Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

Add strictJsonSchema on Branding Format LLM Call (#2567)

Abimael Martell91075501d03f
diff --git a/apps/api/src/lib/branding/llm.ts b/apps/api/src/lib/branding/llm.ts
index 1cc4b60ea..35d3f0dc3 100644
--- a/apps/api/src/lib/branding/llm.ts
+++ b/apps/api/src/lib/branding/llm.ts
@@ -57,6 +57,11 @@ export async function enhanceBrandingWithLLM(
const result = await generateObject({
model,
schema: brandingEnhancementSchema,
+ providerOptions: {
+ openai: {
+ strictJsonSchema: true,
+ },
+ },
messages: [
{
role: "system",