Gemini
Last updated
Last updated
Google currently provides free API access to the Gemini 1.5 Pro model, one of the most powerful models available for free. This model offers code editing capabilities comparable to GPT-3.5, making it an excellent choice for use with PapertLab. To get started, you’ll need to obtain a Gemini API key.
Adding API Keys via PapertLab Settings
In addition to setting the API key via environment variables, you can also add your Gemini API key directly through PapertLab’s settings page for easier management:
Open PapertLab and Go to Settings: Start PapertLab and navigate to the settings page.
Locate the API Section: Find the section dedicated to API key management.
Enter Your API Key: Input your Gemini API key in the provided field.
Save Your Changes: After entering the key, save your settings. PapertLab will now use the Gemini models with the provided API key.
By following these steps, you can seamlessly integrate the Gemini 1.5 Pro model with PapertLab and take full advantage of its powerful code editing capabilities. Whether you prefer setting up via the command line or using the convenient settings page, PapertLab offers flexibility in how you connect and use Gemini’s AI models.
Steps to Use Gemini 1.5 Pro with PapertLab
Install PapertLab: First, ensure that PapertLab is installed on your system. If it’s not, you can install it easily using pip:
Set Your Gemini API Key:
Mac/Linux:
Windows:
(Note: After using setx
, restart your shell for the changes to take effect.)
Using PapertLab with the Gemini 1.5 Pro Model:
To utilize the Gemini 1.5 Pro model, specify it when running PapertLab:
Listing Available Gemini Models: To explore other models offered by Gemini, list them with the following command: