Go to file
litoq 2de2f499fd Add initial GigaChat CLI implementation with environment setup
- Created .env_example for environment variable configuration.
- Added .gitignore to exclude sensitive files and directories.
- Implemented gigachat_cli.py for command-line interaction with the GigaChat API.
- Updated README.md with setup instructions and usage examples.
- Included requirements.txt for necessary dependencies.
2025-11-20 22:32:27 +03:00
.env_example Add initial GigaChat CLI implementation with environment setup 2025-11-20 22:32:27 +03:00
.gitignore Add initial GigaChat CLI implementation with environment setup 2025-11-20 22:32:27 +03:00
gigachat_cli.py Add initial GigaChat CLI implementation with environment setup 2025-11-20 22:32:27 +03:00
README.md Add initial GigaChat CLI implementation with environment setup 2025-11-20 22:32:27 +03:00
requirements.txt Add initial GigaChat CLI implementation with environment setup 2025-11-20 22:32:27 +03:00

GigaChat CLI Tester

Simple command-line helper for sending prompts to the GigaChat API.

Prerequisites

  • Python 3.9+
  • GigaChat credentials (set GIGACHAT_CREDENTIALS). Get them from GigaChat Studio.

Setup

python -m venv .venv
.venv\Scripts\activate  # PowerShell: .venv\Scripts\Activate.ps1
pip install -r requirements.txt

Usage

Send a single prompt:

python gigachat_cli.py "Explain how AI works in a few words"

Interactive mode:

python gigachat_cli.py

Specify a different model:

python gigachat_cli.py --model GigaChat-Pro