We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7084240 commit ea9abb7Copy full SHA for ea9abb7
src/pages/workers-ai/models/[name].astro
@@ -227,7 +227,18 @@ const starlightPageProps = {
227
<SchemaViewer schema={model.schema.input} />
228
229
<h3 id="Output">Output</h3>
230
- <SchemaViewer schema={model.schema.output} />
+ {
231
+ model.schema.output.format === "binary" ? (
232
+ <>
233
+ <p>
234
+ The binding returns a <code>ReadableStream</code> with the image in
235
+ PNG format.
236
+ </p>
237
+ </>
238
+ ) : (
239
+ <SchemaViewer schema={model.schema.output} />
240
+ )
241
+ }
242
243
<h2 id="API Schemas">API Schemas</h2>
244
<p>The following schemas are based on JSON Schema</p>
0 commit comments