(core) Show tweaked formula in AI responses

Summary:
The formula that's used when the Apply button is clicked, and the formula that's
shown in responses from the Formula Assistant should now be the same. Previously, they
would differ slightly.

Test Plan: Server tests.

Reviewers: alexmojaki

Reviewed By: alexmojaki

Subscribers: alexmojaki

Differential Revision: https://phab.getgrist.com/D3977
This commit is contained in:
George Gevoian
2023-07-31 00:21:24 -07:00
parent 4cfa033078
commit 05c15e4ec3
3 changed files with 32 additions and 12 deletions

View File

@@ -50,6 +50,7 @@ export interface AssistanceRequest {
*/
export interface AssistanceResponse {
suggestedActions: DocAction[];
suggestedFormula?: string;
state?: AssistanceState;
// If the model can be trusted to issue a self-contained
// markdown-friendly string, it can be included here.