Spaces:
Paused
Paused
Download src/utils.py from 22333Misaka/gcli2api: direct link, hf CLI and curl.
- Browser
- Download file 302 Bytes
-
https://huggingface.co/spaces/22333Misaka/gcli2api/resolve/main/src/utils.py
- Command line
-
hf download hf://spaces/22333Misaka/gcli2api/src/utils.py
-
curl -L -o utils.py https://huggingface.co/spaces/22333Misaka/gcli2api/resolve/main/src/utils.py
302 Bytes
| import platform | |
| CLI_VERSION = "0.1.5" # Match current gemini-cli version | |
| def get_user_agent(): | |
| """Generate User-Agent string matching gemini-cli format.""" | |
| version = CLI_VERSION | |
| system = platform.system() | |
| arch = platform.machine() | |
| return f"GeminiCLI/{version} ({system}; {arch})" |