Skip to main content


This notebook shows how to use LangChain with GigaChat. To use you need to install gigachat python package.

# !pip install gigachat

To get GigaChat credentials you need to create account and get access to API ## Example

import os
from getpass import getpass

os.environ["GIGACHAT_CREDENTIALS"] = getpass()
from langchain.chat_models import GigaChat

chat = GigaChat(verify_ssl_certs=False)
from langchain.schema import HumanMessage, SystemMessage

messages = [
content="You are a helpful AI that shares everything you know. Talk in English."
HumanMessage(content="Tell me a joke"),

What do you get when you cross a goat and a skunk? A smelly goat!