Skip to main content

An integration package connecting GigaChat and LangChain

Project description

langchain-gigachat

This is a library integration with GigaChat.

GitHub Release GitHub Actions Workflow Status GitHub License GitHub Downloads (all assets, all releases) GitHub Repo stars GitHub Open Issues

Installation

pip install -U langchain-gigachat

Quickstart

Follow these simple steps to get up and running quickly.

Installation

To install the package use following command:

pip install -U langchain-gigachat

Initialization

To initialize chat model:

from langchain_gigachat.chat_models import GigaChat

giga = GigaChat(credentials="YOUR_AUTHORIZATION_KEY", verify_ssl_certs=False)

To initialize embeddings:

from langchain_gigachat.embeddings import GigaChatEmbeddings

embedding = GigaChatEmbeddings(
    credentials="YOUR_AUTHORIZATION_KEY",
    verify_ssl_certs=False
)

Usage

Use the GigaChat object to generate responses:

print(giga.invoke("Hello, world!"))

Now you can use the GigaChat object with LangChain's standard primitives to create LLM-applications.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

langchain_gigachat-0.3.9.tar.gz (21.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

langchain_gigachat-0.3.9-py3-none-any.whl (26.6 kB view details)

Uploaded Python 3

File details

Details for the file langchain_gigachat-0.3.9.tar.gz.

File metadata

  • Download URL: langchain_gigachat-0.3.9.tar.gz
  • Upload date:
  • Size: 21.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.2 Darwin/24.3.0

File hashes

Hashes for langchain_gigachat-0.3.9.tar.gz
Algorithm Hash digest
SHA256 ee5602c43c05beecb992f4351a839d1be600ee57debcfb6c0a7985fe748886c4
MD5 f3f3ab6c5d94eab56e5ebb7fa2936996
BLAKE2b-256 1de677b6d78809874d05476e46049eecc9bced016e031ddfaad7aab06bde1807

See more details on using hashes here.

File details

Details for the file langchain_gigachat-0.3.9-py3-none-any.whl.

File metadata

  • Download URL: langchain_gigachat-0.3.9-py3-none-any.whl
  • Upload date:
  • Size: 26.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.2 Darwin/24.3.0

File hashes

Hashes for langchain_gigachat-0.3.9-py3-none-any.whl
Algorithm Hash digest
SHA256 d5605300aae68621e1c9871be71c94e801f127a61c18abf91701f2fadb8ce42f
MD5 6e50d631231c7bad6273998e6805af92
BLAKE2b-256 500122174185b7cec28869204bb0aaf8913258466582cae8fc597fef60df7f59

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page