Files
gbrain/test
692556236f fix(ai/gateway): structured-output opt-in + capability-aware expansion fallback (#2372)
Takeover of #2373 (mechanical rebase onto master; drift from #2857/#2981).

- expand() no longer calls generateObject unconditionally: openai-compatible
  backends without declared structured-output support go through
  generateText + tolerant JSON parse (prompt now pins the 'queries' key),
  so expansion stops silently degrading to [query].
- New opt-in ChatTouchpoint.supports_structured_outputs threads
  supportsStructuredOutputs into createOpenAICompatible at the chat +
  expansion build sites; opted-in recipes get strict json_schema with a
  call-time text fallback.
- parseLlmJson extracted to leaf src/core/llm-json.ts; re-export preserved
  in conversation-parser/llm-base.ts for existing importers.

Co-authored-by: brettdavies <brettdavies@users.noreply.github.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-21 14:44:46 -07:00
..