New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

gemini-g4f

Package Overview
Dependencies
Maintainers
0
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gemini-g4f

The simpler JavaScript Gemini SDK - optimised for raycast-g4f

latest
Source
npmnpm
Version
13.0.0-alpha.15
Version published
Maintainers
0
Created
Source

Gemini AI

Welcome to the Gemini era. Supercharged with raycast-g4f.

Docs | GitHub | FAQ

Installation

Install with the following command, or the command for your favorite package manager.

npm install gemini-g4f

Quickstart

Make a text request:

import Gemini from "gemini-g4f";

const gemini = new Gemini(API_KEY);

console.log(await gemini.ask("Hi!"));

Make a streaming text request:

import Gemini from "gemini-g4f";

const gemini = new Gemini(API_KEY);

gemini.ask("Hi!", {
  stream: console.log,
});

Chat with Gemini:

import Gemini from "gemini-g4f";

const gemini = new Gemini(API_KEY);
const chat = gemini.createChat();

console.log(await chat.ask("Hi!"));

Read the full docs at https://github.com/XInTheDark/gemini-ai.

Table of Contents

Keywords

google

FAQs

Package last updated on 18 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts