You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

generativellm

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generativellm

A lightweight Gemini chat wrapper using HTTP requests

0.1.2
pipPyPI
Maintainers
1

generativellm

generativellm is a simple wrapper around the Gemini REST API using pure HTTP requests. It lets you create chat sessions and generate responses.

Installation

pip install generativellm

Usage

from generativellm import AIChat

chatbot = AIChat(token="your-gemini-api-key", model="gemini-pro")

conversation = [
    "Hello!",
    "Hi there! How can I help?",
    "Can you summarize general relativity?",
]

response = chatbot.get_response(conversation)
print(response)

Keywords

gemini

FAQs

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