Skip to content

Commit 18287c5

Browse files
committed
Return whole response in JS grounding SUT
1 parent 8687e54 commit 18287c5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

javascript/grounding.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export async function groundingWithMaps() {
6767
}
6868
}
6969

70-
return response.text;
70+
return response;
7171
// [END grounding_maps]
7272
}
7373

javascript/grounding.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe("grounding", { timeout: 300000 }, () => {
2626
test("groundingWithMaps", async () => {
2727
const result = await groundingWithMaps();
2828
assert.ok(
29-
result && result.length > 0,
29+
result?.text?.length > 0,
3030
"Test failed: No result or empty result"
3131
);
3232
// TODO: test for grounding data in response

0 commit comments

Comments
 (0)