Skip to content

Commit

Permalink
fix: added json data to LLM first prompt (#339)
Browse files Browse the repository at this point in the history
fixed #334 by adding json schema data to initial LLM default prompt
  • Loading branch information
ellvix authored Jan 8, 2024
1 parent ee5491c commit 176adc8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/js/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -1128,7 +1128,12 @@ class ChatLLM {
//let img = await this.ConvertSVGtoImg(singleMaidr.id);
let img = await this.ConvertSVGtoJPG(singleMaidr.id);
//this.downloadJPEG(img, 'test.jpg'); // test download
let text = 'Describe this chart';
let text = 'Describe this chart. Here is chart in png format';
if (singleMaidr) {
text += ' and raw data in json format: \n';
text += JSON.stringify(singleMaidr);
}

chatLLM.Submit(text, img);
}
}
Expand Down

0 comments on commit 176adc8

Please sign in to comment.