Files
supabase/apps/studio/lib
Ali Waseem aa12ae790a fix: flatten AI generation schema for filters (#44092)
## I have read the
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
file.

YES

## What kind of change does this PR introduce?

OpenAI claims to support recursive schemas with $defs/$ref, but in
practice it's unreliable. When Zod's z.lazy() is converted to JSON
Schema, it produces recursive $ref entries that OpenAI's structured
output frequently rejects with errors like "Recursive reference
detected" or "Invalid schema for response_format".

Simplify the AI generation schema since we only support AND and don't
need the recursion because we don't support nesting of groups.
2026-03-24 07:38:40 -06:00
..
2026-02-11 09:50:11 +01:00
2026-02-11 09:50:11 +01:00
2025-04-08 11:32:29 +08:00
2025-05-09 15:26:08 +08:00
2026-02-11 09:50:11 +01:00
2025-05-09 15:26:08 +08:00
2025-05-10 09:08:20 -02:30
2025-05-26 15:43:14 +02:00
2025-05-10 09:08:20 -02:30
2025-05-10 09:08:20 -02:30
2026-02-11 09:50:11 +01:00