gristlabs_grist-core/app
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
..
client (core) Fix invalid selection bugs in GridView 2024-02-12 09:41:26 -05:00
common Make free coaching call url configurable and popup translatable (#823) 2024-02-07 11:53:48 -05:00
gen-server Optimize sql query for workspace acl (#824) 2024-01-31 14:04:22 -05:00
plugin (core) Forms improvements 2024-01-19 10:34:03 +01:00
server (core) Add AI Assistant retry with shorter prompt 2024-02-12 11:06:52 -05:00
tsconfig.json (core) move home server into core 2020-07-21 20:39:10 -04:00