New TeeBI demo, one line of code calls the Google Gemini api and imports the results into normal TeeBI structures.
These data then can be simple visualized or queried.
The idea is to add more AI agents (ChatGPT etc) transparently in the near future.
https://github.com/Steema/TeeBI/tree/master/demos/3rd_party/AI
uses
BI.AI, BI.DataItem;
procedure TForm_AI_Demo.Button1Click(Sender: TObject);
var Data1 : TDataItem;
begin
// One line of code, call Gemini and get a data structure:
Data1:=TBIAI.From('your key',
'Give me the list of the highest 10 mountains by elevation in csv format, just the list',
TBIAI.GoogleGemini);
// Visualize it:
BIGrid1.Data:=Data1; // in the grid
BIChart1.Data:=Data1; // in the chart
end;