gristlabs_grist-core/test/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
..
helpers (core) Exit more cleanly on unhandled errors, and handle errors writing to Clients. 2023-12-01 09:42:00 -05:00
ACLFormula.ts (core) Decode cell values to prevent working around rule using 'in' on lists 2023-12-04 23:34:08 +02:00
Assistance.ts (core) Add AI Assistant retry with shorter prompt 2024-02-12 11:06:52 -05:00
Authorizer.ts Allow URLs with only a docID #768 (#771) 2023-11-29 15:13:29 -05:00
DocApi2.ts getHostType: consider APP_DOC_INTERNAL_URL as native (#715) 2023-11-06 09:24:59 +01:00
DocApi.ts (core) updates from grist-core 2024-01-08 09:19:50 -05:00
HostedStorageManager.ts (core) updates from grist-core 2023-05-30 08:32:34 -04:00
ManyFetches.ts (core) Exit more cleanly on unhandled errors, and handle errors writing to Clients. 2023-12-01 09:42:00 -05:00
MemoryPool.ts (core) Manage memory used for websocket responses to reduce the risk of server crashes. 2023-08-07 11:28:31 -04:00
MinIOExternalStorage.ts Issue 359 support scaleway (#577) 2023-07-20 06:16:58 -04:00
ProxyAgent.ts (core) Add logging of errors whenever ProxyAgent is used, and a test for it. 2023-05-17 10:21:53 -04:00
Telemetry.ts (core) Add new telemetry events 2023-11-01 10:49:33 -04:00
UnhandledErrors.ts set TEST_CLEAN_DATABASE when running server tests (#806) 2023-12-27 09:56:59 -05:00
Webhooks-Proxy.ts set TEST_CLEAN_DATABASE when running server tests (#806) 2023-12-27 09:56:59 -05:00