Skip to content

Commit 2e9fe7f

Browse files
committed
Update planner requests with correct payload
1 parent f83a2c6 commit 2e9fe7f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

web/src/helpers/LLM/remote.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { getApp } from '../app'
66
import { getState } from '../../state/store'
77
import { unset } from 'lodash'
88
import { processAllMetadata } from '../metadataProcessor'
9+
import { getParsedIframeInfo } from '../origin'
910

1011

1112
export async function planActionsRemote({
@@ -42,6 +43,7 @@ export async function planActionsRemote({
4243
// Check if analyst mode is enabled
4344
if (currentState.settings.drMode && currentState.settings.analystMode) {
4445
try {
46+
const parsedInfo = getParsedIframeInfo()
4547
const { cardsHash, dbSchemaHash, fieldsHash, selectedDbId } = await getAllMetadataPromise;
4648
// @ts-ignore
4749
payload.cardsHash = cardsHash;
@@ -51,6 +53,8 @@ export async function planActionsRemote({
5153
payload.fieldsHash = fieldsHash;
5254
// @ts-ignore
5355
payload.selectedDbId = `${selectedDbId}`;
56+
// @ts-ignore
57+
payload.r = parsedInfo.r;
5458
console.log('[minusx] Added metadata hashes to request for analyst mode');
5559
} catch (error) {
5660
console.warn('[minusx] Failed to fetch metadata for analyst mode:', error);

0 commit comments

Comments
 (0)