gristlabs_grist-core/test/server
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
..
lib (core) Add AI Assistant retry with shorter prompt 2024-02-12 11:06:52 -05:00
utils (core) sanitizing redis errors 2023-06-06 10:51:17 +02:00
Comm.ts Fix server crash when client passes malformed JSON (#826) 2024-01-23 12:07:39 -05:00
customUtil.ts (core) Update dependencies 2023-10-11 17:36:58 -04:00
docTools.ts (core) Porting the AI evaluation script 2023-03-15 14:54:28 +01:00
generateInitialDocSql.ts update comment 2023-01-17 15:59:09 -05:00
gristClient.ts (core) control the distribution of attachment metadata 2022-12-22 09:10:30 -05:00
tcpForwarder.ts (core) Add options to /status health-check endpoints to check DB and Redis liveness. 2023-10-02 14:41:04 -04:00
testUtils.ts Fix server crash when client passes malformed JSON (#826) 2024-01-23 12:07:39 -05:00
wait.ts (core) Add timeouts to prevent ActiveDoc bad state during shutdown. 2023-09-26 15:32:49 -04:00