AI API Explorer outputs a wrong code snippet for structured output

Created on 12 September 2025, 6 days ago

Problem/Motivation

When I use the API Explorer with a schema for structure output, there is a code snippet being provided to see how such a call can be made in my own module, which I've done for the ai_integration_eca module.

That code snippet has a small issue, that calls setChatStructuredJsonSchema on the provider instead the input.

🐛 Bug report
Status

Active

Version

2.0

Component

AI API Explorer

Created by

🇩🇪Germany jurgenhaas Gottmadingen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024