Files
gristlabs_grist-core/app/server/lib
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
..
2022-02-19 09:46:49 +00:00
2024-01-12 11:58:12 -08:00
2022-02-19 09:46:49 +00:00
2023-10-11 17:36:58 -04:00
2022-06-17 21:53:20 +02:00
2023-02-20 22:46:36 -05:00
2022-07-04 10:42:40 -04:00
2023-04-03 13:29:35 -04:00
2022-07-04 10:42:40 -04:00
2023-05-23 15:50:15 -04:00
2022-04-01 15:24:19 -07:00
2023-07-30 15:13:43 -04:00
2023-10-11 17:36:58 -04:00
2024-02-12 08:15:38 -05:00
2024-01-08 09:19:50 -05:00
2020-07-21 20:39:10 -04:00
2023-12-11 11:16:23 -05:00
2022-08-25 12:38:36 -07:00