Skip to content

Commit 7e796f7

Browse files
committed
fix widget
1 parent f909d4f commit 7e796f7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

widget/app.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ document.addEventListener('DOMContentLoaded', () => {
6363
});
6464

6565
const data = await response.json();
66-
return data.choices[0].message.content;
66+
return data.answer;
67+
//return data.choices[0].message.content;
6768
} catch (error) {
6869
console.error('Error fetching API:', error);
6970
return "Sorry, I couldn't connect to the server.";

0 commit comments

Comments
 (0)