Skip to main content

О autogen-gigachat

autogen-gigachat — это Python-библиотека для подключения модели Gigachat в autogen

Установка

Для установки библиотеки можно использовать менеджер пакетов pip:

pip install autogen-gigachat

Настройка

В autogen-studio добавить новую модель c 'provider = autogen_gigachat.GigachatChatCompletionClient'

Пример конфигурации:

{
  "provider": "autogen_gigachat.GigachatChatCompletionClient",
  "component_type": "model",
  "version": 1,
  "component_version": 1,
  "description": "Gigachat Lite",
  "label": "Gigachat Lite",
  "config": {
    "model": "GigaChat-2",
    "verify_ssl_certs": false,
    "verbose": true
  }
}

Необходимо указать данные для авторизации.

Можно записать в переменную окружения GIGACHAT_API_KEY или в параметр api_key в json-конфигурации один из вариантов значения:

  • giga-cred-<credentials>:<scope> — для авторизации credentials + scope
  • giga-user-<user>:<password> — для авторизации через имя пользователя и пароль
  • giga-auth-<access_token> — для передачи access_token (который получается одним из первых двух способов)

Также можно использовать переменные, которые поддерживает библиотека GigaChat:

  • GIGACHAT_USER и GIGACHAT_PASSWORD — для авторизации с помощью с помощью логина и пароля.
  • GIGACHAT_CREDENTIALS — для авторизации с помощью ключа авторизации.
  • GIGACHAT_ACCESS_TOKEN — для авторизации с помощью токен доступа, полученного в обмен на ключ.
  • GIGACHAT_VERIFY_SSL_CERTS — для того, что бы проверять SSL сертификаты, по умолчанию False.

Разработка

Для сборки применяется пакетный менеджер uv. Установка описана тут: https://docs.astral.sh/uv/getting-started/installation/.

Установка зависимостей:

uv sync

Лицензия

Проект распространяется под лицензией MIT. Подробная информация — в файле LICENSE.

Metadata

Release files for autogen-gigachat 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for autogen-gigachat 0.1.1
File Size Uploaded Provenance Actions
autogen_gigachat-0.1.1.tar.gz 14.1 kB With provenance Details for autogen_gigachat-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for autogen-gigachat 0.1.1
File Interpreter ABI Platform Actions
autogen_gigachat-0.1.1-py3-none-any.whl Python 3 none any Details for autogen_gigachat-0.1.1-py3-none-any.whl

Total release size: 27.6 kB

Release files / autogen_gigachat-0.1.1.tar.gz

Download URL autogen_gigachat-0.1.1.tar.gz
Size 14.1 kB
Tags Source
SHA-256 checksum
How to use checksums
72265dc7c0ede2d3ab0d248ec510f49f81e9168f14a24c6de77561019ac1a8c2
BLAKE2b-256 checksum
How to use checksums
fb569ccbf7c36a59845e9edfd9f72e9adfb08b054c9c3e974bc1552e2b924fed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 18, 2025.

Transparency log

Release files / autogen_gigachat-0.1.1-py3-none-any.whl

Download URL autogen_gigachat-0.1.1-py3-none-any.whl
Size 13.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
33b72221d881a1e3e65bfd5efde7970b030ee514e7d8b5b019f3afb28e5b6675
BLAKE2b-256 checksum
How to use checksums
2f6b36c1b428552a36d430203d24ea17da335ad1227d16399d7d42879b9d78b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 18, 2025.

Transparency log

Security for autogen-gigachat 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for autogen_gigachat-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 18, 2025.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page