George Gevoian
94eec5e906
(core) Add AI Assistant retry with shorter prompt
...
Summary:
If the longer OpenAI model exceeds the OpenAPI context length, we now perform another retry with a
shorter variant of the formula prompt. The shorter prompt excludes non-referenced tables and lookup
method definitions, which should help reduce token usage in documents with larger schemas.
Test Plan: Server test.
Reviewers: JakubSerafin
Reviewed By: JakubSerafin
Subscribers: JakubSerafin
Differential Revision: https://phab.getgrist.com/D4184
2024-02-12 11:06:52 -05:00
..
2024-01-31 13:58:50 -05:00
2023-08-24 09:50:52 -04:00
2023-07-18 11:21:25 -04:00
2023-07-24 21:59:00 +02:00
2023-07-28 16:37:38 +02:00
2023-09-11 14:41:30 +02:00
2024-02-05 12:22:14 -05:00
2023-07-18 11:21:25 -04:00
2023-11-19 20:12:37 -05:00
2023-11-03 13:24:05 +02:00
2024-02-12 11:06:52 -05:00
2023-07-18 11:21:25 -04:00
2023-07-18 11:21:25 -04:00
2023-07-18 11:21:25 -04:00
2023-07-18 11:21:25 -04:00
2024-02-12 11:06:52 -05:00
2024-01-04 05:57:38 -05:00
2024-01-08 10:50:50 +02:00
2023-07-18 11:21:25 -04:00
2023-07-18 11:21:25 -04:00
2024-01-04 05:57:38 -05:00
2023-11-19 20:12:37 -05:00
2023-07-18 11:21:25 -04:00
2023-07-18 11:21:25 -04:00
2023-09-11 18:49:30 +02:00
2023-11-19 20:12:37 -05:00
2024-01-04 05:57:38 -05:00
2023-07-18 11:21:25 -04:00
2023-07-18 11:21:25 -04:00
2023-11-19 20:12:37 -05:00
2023-11-19 20:12:37 -05:00
2023-11-03 13:24:05 +02:00
2022-02-19 09:46:49 +00:00
2023-09-11 18:49:30 +02:00
2023-07-28 16:37:38 +02:00
2023-11-19 20:12:37 -05:00
2023-07-18 11:21:25 -04:00
2023-07-18 11:21:25 -04:00
2023-07-18 11:21:25 -04:00
2023-07-18 11:21:25 -04:00
2023-07-18 11:21:25 -04:00
2024-01-04 05:57:38 -05:00
2024-02-05 12:22:14 -05:00
2023-08-02 16:49:37 -04:00
2023-07-18 11:21:25 -04:00
2023-07-18 11:21:25 -04:00
2023-07-18 11:21:25 -04:00
2023-09-27 16:23:49 +02:00
2023-11-19 20:12:37 -05:00
2024-01-04 05:57:38 -05:00
2023-07-18 11:21:25 -04:00
2024-01-04 05:57:38 -05:00
2024-01-30 13:25:50 -05:00
2024-01-30 13:25:50 -05:00
2023-07-18 11:21:25 -04:00
2024-01-04 05:57:38 -05:00
2024-01-30 13:25:50 -05:00
2023-07-28 16:37:38 +02:00
2023-07-18 11:21:25 -04:00