Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion src/pages/workers-ai/models/[name].astro
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,18 @@ const starlightPageProps = {
<SchemaViewer schema={model.schema.input} />

<h3 id="Output">Output</h3>
<SchemaViewer schema={model.schema.output} />
{
model.schema.output.format === "binary" ? (
<>
<p>
The binding returns a <code>ReadableStream</code> with the image in
PNG format.
</p>
</>
) : (
<SchemaViewer schema={model.schema.output} />
)
}

<h2 id="API Schemas">API Schemas</h2>
<p>The following schemas are based on JSON Schema</p>
Expand Down