Download test_cli_parity.py from lhc-lab/AI-Colab: direct link, hf CLI and curl.
- Browser
- Download file 455 Bytes
-
https://huggingface.co/datasets/lhc-lab/AI-Colab/resolve/main/test_cli_parity.py
- Command line
-
hf download hf://datasets/lhc-lab/AI-Colab/test_cli_parity.py
-
curl -L -o test_cli_parity.py https://huggingface.co/datasets/lhc-lab/AI-Colab/resolve/main/test_cli_parity.py
455 Bytes
| import asyncio | |
| import logging | |
| from core.gemini_cli_executor import execute | |
| logging.basicConfig(level=logging.DEBUG) | |
| async def test(): | |
| # Тестовый промпт | |
| resp = await execute(mode="console", message="Say hi", prompt_text="You are a helpful assistant", timeout=10) | |
| assert isinstance(resp, str) and len(resp) > 0, f"Пустой ответ: {resp}" | |
| print(f"✅ PROMPT PARITY OK: {resp[:50]}") | |
| return True | |
| asyncio.run(test()) | |