Registry / ai-ml / grazie-api-gateway-client

grazie-api-gateway-client

JSON →
library0.3.3pypypiunverified

Python client for Grazie services, enabling access to Grazie's AI-powered API gateway. Current version 0.3.3, requires Python >=3.8, under active development with monthly releases.

pip install grazie-api-gateway-client
INSTALL
IMPORT
SIG · GRAZIE-API-GATEWAY
G
grazie-api-gateway-client
ai-mlpythonv0.3.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

GrazieClient
from grazie import GrazieClient
from grazie_api_gateway_client import GrazieClient

Initialize the client with your API key and send a chat request.

from grazie_api_gateway_client import GrazieClient import os client = GrazieClient(api_key=os.environ.get('GRAZIE_API_KEY', '')) response = client.chat(model="gpt-4", messages=[{"role": "user", "content": "Hello"}]) print(response)
Debug
Known issues
breakingThe client initialization signature changed in v0.3.0: `GrazieClient()` now requires `api_key` instead of `auth_token`. Old code using `auth_token` will raise TypeError.
fix
Replace `auth_token='your_key'` with `api_key='your_key'`.
affects: >=0.3.0, <0.3.0
deprecatedThe `.chat` method's `model` parameter string format changed: model names now require prefix (e.g., 'openai/gpt-4' instead of 'gpt-4'). Old format still works but logs a deprecation warning.
fix
Use fully qualified model names like 'openai/gpt-4' or 'anthropic/claude-3'.
affects: <0.4.0
gotchaThe client does not automatically retry on rate limits (HTTP 429). Users frequently assume automatic retry and get confused.
fix
Implement manual retry logic using the error response's Retry-After header.
affects: all
Upgrade
Version history
0.3.3latest on PyPI · released Jul 28, 2025
Audit
Dependencies
httpxrequiredHTTP client for API requests
pydanticrequiredData validation and settings management
Agent activity
12 hits · last 30 days
node
10
OpenAI (training)
2
Resources

No resource links recorded.

grazie-api-gateway-client — pip install grazie-api-gateway-client · libregistry