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-03-19 09:07:33 -04:00
2026-03-24 07:38:40 -06:00
2026-02-11 09:50:11 +01:00
2025-10-24 18:25:26 +00:00
2026-03-19 11:43:02 +11:00
2025-11-06 15:51:56 -08:00
2025-07-03 12:41:11 +02:00
2026-02-11 09:50:11 +01:00
2025-10-22 08:57:49 -04:00
2025-05-08 12:23:37 +02:00
2023-11-15 12:38:55 +01:00
2026-03-12 09:38:03 +00:00
2026-03-23 21:20:47 +00:00
2026-02-27 17:26:23 +01:00
2026-03-16 11:22:30 +01:00
2025-05-15 18:24:57 +08:00
2025-01-27 13:04:31 +01:00
2025-12-15 20:39:09 +01:00
2025-12-15 20:39:09 +01:00
2025-05-08 12:23:37 +02:00
2025-11-21 14:24:44 +01:00
2025-04-08 11:32:29 +08:00
2025-10-31 00:30:42 +08:00
2026-02-05 19:10:08 +08:00
2026-01-30 09:53:21 -05:00
2025-06-27 11:10:25 +02:00
2025-06-27 11:10:25 +02:00
2025-05-15 18:24:57 +08:00
2026-03-24 16:23:13 +08:00
2025-08-14 21:23:08 +02:00
2025-08-14 21:23:08 +02:00
2025-12-02 13:18:33 +08:00
2025-12-02 13:18:33 +08:00
2025-05-09 15:26:08 +08:00
2024-07-17 13:27:00 +08:00
2026-02-11 09:50:11 +01:00
2025-12-18 08:33:38 -07:00
2026-03-09 15:25:05 +07:00
2026-03-09 15:25:05 +07:00
2025-10-28 23:24:35 +08:00
2025-12-24 16:18:29 +01:00
2026-03-11 13:55:20 +01:00
2025-05-09 15:26:08 +08:00
2023-11-15 12:38:55 +01:00
2025-07-21 16:59:17 +08:00
2025-07-21 16:59:17 +08:00
2025-05-10 09:08:20 -02:30
2025-05-26 15:43:14 +02:00
2025-12-10 10:10:29 +01:00
2026-02-11 09:50:11 +01:00
2025-11-26 15:15:51 -07:00
2024-11-22 16:42:12 +08:00
2025-10-22 08:57:49 -04:00
2025-10-22 08:57:49 -04:00
2025-05-15 18:24:57 +08:00
2026-03-24 16:23:13 +08:00
2025-10-22 08:57:49 -04:00
2025-10-22 08:57:49 -04:00
2026-01-22 11:17:49 -05:00
2026-01-22 11:17:49 -05:00
2025-10-01 14:54:51 -07:00
2025-10-01 14:54:51 -07:00
2026-01-27 09:28:56 -05:00
2026-01-27 09:28:56 -05:00
2025-05-10 09:08:20 -02:30
2025-01-15 13:08:26 +08:00
2025-10-10 16:44:53 +02:00
2026-01-06 17:16:31 +00:00
2026-01-07 12:12:15 -05:00
2025-05-10 09:08:20 -02:30
2023-11-15 12:38:55 +01:00
2026-02-11 09:50:11 +01:00
2023-11-15 12:38:55 +01:00