Skip to content

Commit fb451eb

Browse files
committed
[Browser Rendering] Fix messages format
1 parent b72948d commit fb451eb

File tree

1 file changed

+2
-4
lines changed
  • src/content/docs/browser-rendering/how-to

1 file changed

+2
-4
lines changed

src/content/docs/browser-rendering/how-to/ai.mdx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,7 @@ async function getLLMResult(env, prompt: string, schema?: any) {
131131
messages: [{
132132
role: "user",
133133
content: prompt
134-
}
135-
],
134+
}],
136135
};
137136
const aiUrl = `https://api.cloudflare.com/client/v4/accounts/${env.ACCOUNT_ID}/ai/run/${model}`
138137

@@ -229,8 +228,7 @@ async function getLLMResult(env, prompt: string, schema?: any) {
229228
messages: [{
230229
role: "user",
231230
content: prompt
232-
}
233-
],
231+
}],
234232
};
235233
const aiUrl = `https://api.cloudflare.com/client/v4/accounts/${env.ACCOUNT_ID}/ai/run/${model}`
236234

0 commit comments

Comments
 (0)