This Python library provides convenient access to the Groq REST API for developers building applications with LLMs. It offers both synchronous and asynchronous clients, type-hinted requests and responses for improved developer experience, and robust error handling.
How It Works
The library leverages httpx
for both synchronous and asynchronous HTTP requests, ensuring efficient and modern network communication. It's generated using Stainless
, which likely contributes to its comprehensive type definitions (using TypedDict
for requests and Pydantic models for responses). This approach enhances code maintainability, enables editor autocompletion, and aids in early bug detection through type checking.
Quick Start & Requirements
pip install groq
GROQ_API_KEY
) or .env
files.Highlighted Details
to_json
, to_dict
).PathLike
, or (filename, contents, media type)
tuples.GROQ_LOG
environment variable.Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The README does not specify the license, which is crucial for commercial use or closed-source integration. While it mentions SemVer, it notes that some backward-incompatible changes might be released as minor versions, requiring user vigilance.
1 day ago
Inactive