Skip to content

Commit f9c8d6f

Browse files
add logs to code execution
1 parent 29ec07c commit f9c8d6f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

code_execution.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ async function main() {
4949

5050
if (userQuestion1 !== '' && userQuestion2 !== '') {
5151
const result = await model.generateContent(userQuestion1 + userQuestion2);
52-
console.log('Response:', result.response);
52+
const response = result.response;
53+
console.log('Response:', response.candidates[0].content);
5354
}
5455
} catch (error) {
5556
console.error('An error occurred:', error);

0 commit comments

Comments
 (0)