Drop-in Google Generative AI SDK shim for EvalOps llm-gateway routing
Project description
evalops-google-generativeai
Drop-in google-generativeai shim for stamping EvalOps organization scope,
principal attribution, trace IDs, and provider references onto Google
Generative AI calls.
This package is part of the G1 shim wedge from evalops/platform#1133. It
ships the Python package and conformance surface while llm-gateway grows
Google-native endpoint coverage.
Python
pip install evalops-google-generativeai
import evalops_google_generativeai as genai
genai.configure(
organization_id="org_123",
principal="user:ada@example.com",
)
model = genai.GenerativeModel("gemini-2.0-flash")
response = model.generate_content("hello")
Environment
EVALOPS_API_KEYorGOOGLE_API_KEY: Platform-issued bearer token.EVALOPS_ORGANIZATION_ID: organization scope stamped into requests.EVALOPS_PRINCIPAL: optional actor string for audit attribution.EVALOPS_TRACE_ID: optional trace correlation ID.EVALOPS_LLM_GATEWAY_GOOGLE_URL: Google-compatible gateway base URL.EVALOPS_LLM_GATEWAY_URL: fallback gateway base URL.EVALOPS_PROVIDER_ENVIRONMENT: defaults toprod.EVALOPS_PROVIDER_CREDENTIAL_NAME: optional provider ref credential name.EVALOPS_PROVIDER_TEAM_ID: optional provider ref team ID.
Gateway Status
llm-gateway currently exposes OpenAI-compatible /v1/chat/completions and
/v1/responses. This shim establishes the Google package contract and metadata
injection layer; full import-only parity depends on gateway-side Google adapter
support.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file evalops_google_generativeai-0.2.1.tar.gz.
File metadata
- Download URL: evalops_google_generativeai-0.2.1.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06a629993b077e04a262d1244150570f9c950e89a7ebdfd9b65fca1e2e4c01fe
|
|
| MD5 |
7ee2b315fe2bedc031bd6e81bc87df3e
|
|
| BLAKE2b-256 |
a03726c608b9a690adec1f9720dedd28bbc938899887bfd667e96c27bdb19db8
|
File details
Details for the file evalops_google_generativeai-0.2.1-py3-none-any.whl.
File metadata
- Download URL: evalops_google_generativeai-0.2.1-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
339e47620b3684a465ad8b39c5c2e4e81dbb81541b3c3656400a3067d123333c
|
|
| MD5 |
e2edfd820eed4deb4bddd5c70e7bf165
|
|
| BLAKE2b-256 |
531c6d27638c4ab9481248ec86c558b86449ab2d18bce862b78241c818be9424
|