Skip to content

Google's Gemini Pro does not accept system prompts. This repository helps create custom LLMChain for Gemini Pro text model with options for its own system prompt and memory.

Notifications You must be signed in to change notification settings

Xaisr/geminichain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

geminchain is a python class that creates a conversational chain for Google's Gemini Pro text model. It has 6 methods :

  1. add_user_message : helps add user message to chat history
  2. add_ai_message : helps add ai message chat history
  3. get_response : getter for llm response
  4. get_chat_history : chat history getter
  5. set_system_message : system message setter (default is blank)
  6. get_last_ai_msg : getter for last ai msg

About

Google's Gemini Pro does not accept system prompts. This repository helps create custom LLMChain for Gemini Pro text model with options for its own system prompt and memory.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages