B4A Library ?Gemini Lib! ?

fernando1987

Active Member
Licensed User
? Introducing Gemini Lib 4.0! ?

Step into the next era of programming with Gemini Lib 4.0! Designed for visionary developers, this cutting-edge library supercharges your B4X projects (B4J, B4A, and B4i) with the power of Google's advanced AI.

With Gemini Lib 4.0, you now have the ability to not only leverage text-based queries but also to upload images and PDF documents for analysis by Gemini! The possibilities are endless, and the integration is seamless—just a few lines of code are all it takes. ?

This version introduces a whole new dimension to your AI-driven applications, making it easier than ever to extract insights and generate content from a variety of formats. Plus, the codebase has been further refined for better performance and usability.

Don’t miss out on the revolution! Join the AI-powered development world with Gemini Lib 4.0 today! ??

Example Usage:
Example pdf:
#Region Project Attributes
    #MainFormWidth: 600
    #MainFormHeight: 600
#End Region

Sub Process_Globals
    Private fx As JFX
    Private MainForm As Form
    Private xui As XUI
    Private Button1 As B4XView
    Dim gemini As Gemini_IA
End Sub

Sub AppStart (Form1 As Form, Args() As String)
    MainForm = Form1
    MainForm.RootPane.LoadLayout("Layout1")
    MainForm.Show
End Sub

Sub Button1_Click
   
    gemini.Initialize(Me,"consult")
    gemini.ApiKey("AIzaxxxxxxxxxxxxxxxxxxxxxxxxx")
    gemini.temperature = 0
    gemini.HARM_CATEGORY_DANGEROUS_CONTENT = gemini.umbral.BLOCK_LOW_AND_ABOVE

    Dim s As String
    Dim f As FileChooser
    f.Initialize
    s = f.ShowOpen(MainForm)
    gemini.ConsultForPdf_IA("give me a summary of this document",s)

End Sub

Private Sub consult_success(x As String, success As Boolean)
Log(success)
    If success = True Then

        Log(x)

    Else

    End If
End Sub

Private Sub consult_error(error As String)
    Log(error)
End Sub

For existing users, log in to your user panel on our store using your credentials. In the "Recent Orders" section, find the option to download and access the latest Version 4.
 

fernando1987

Active Member
Licensed User
? Introducing Gemini Lib 4.1! ?

The next era of programming just got even better! We’re excited to announce the release of Gemini Lib 4.1—your go-to library for supercharging B4X projects (B4J, B4A, and B4i) with the power of Google's advanced AI.

In this update, we've squashed bugs and optimized the code, ensuring a smoother and more reliable experience. With Gemini Lib 4.1, you still have all the incredible features from 4.0—like the ability to analyze images and PDF documents alongside text-based queries—but now with enhanced stability and performance.

Don’t miss out on this upgrade! Elevate your AI-powered applications to new heights with Gemini Lib 4.1. ??

For existing users, log in to your user panel on our store using your credentials. In the "Recent Orders" section, find the option to download and access the latest Version 4.1
 

fernando1987

Active Member
Licensed User

Version 4.3 Now Available!

We’re excited to announce the release of Version 4.3 with significant code corrections and performance enhancements!

How to Download the Update:​

If you’ve already purchased a previous version, simply log in to your user panel on our store at b4xapp.com using your credentials.

  1. Navigate to the "Recent Orders" section.
  2. Locate your purchase of GeminiLib.
  3. Click the download option to get the latest version at no additional cost.
Enjoy the improvements and let us know what you think!


Limited-Time Offer!
Take advantage of 50% OFF on all codes and libraries in our store until January 5, 2025! Don't miss this opportunity to expand your toolkit at half the price.

Visit b4xapp.com now and save big!
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…