SDK for accessing GridwayAI endpoints
Project description
GridwayAI Python SDK
Official Python SDK for accessing GridwayAI's generative AI services — focused on technical document automation and compliance in the specific technical jargon of nuclear licensing.
🚀 Features
- Generate vector embeddings from plain text
- Designed to match the familiar feel of the OpenAI Python SDK
- Lightweight and simple to integrate
📦 Installation
pip install gridwayai
Usage
from gridwayai import GridwayAI
# Initialize the client
client = GridwayAI(api_key="your-api-key")
# Embed a single string or a list of strings
texts = ["What is nuclear fission?", "Reactor designs vary by fuel type."]
embeddings = client.embeddings(input=texts)
print(embeddings[0]) # First embedding vector
Testing
pip install pytest
pytest
Reference
Create a new client.
GridwayAI(api_key: str, base_url: Optional[str] = None)
api_key: Your GridwayAI API key
base_url: Optional override for API URL (defaults to https://api.gridwayai.com)
Get vector embeddings for a list of input strings.
embeddings(input: List[str]) -> List[List[float]]
🤝 License
MIT License. See LICENSE file for details.
📫 Contact GridwayAI www.gridwayai.com Contact: support@gridwayai.com
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 gridwayai-0.1.11.tar.gz.
File metadata
- Download URL: gridwayai-0.1.11.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
402b79ce72047929c0a09b58c4632ad3a51f31b949c27acfb9c6991b24da9ebf
|
|
| MD5 |
3c38a8f45ca8abf9e8dc332ac6e5583c
|
|
| BLAKE2b-256 |
72792c0375a01f45f1e066b9bb8b5dc30baf7a74252ee199edb68e6efa21cdd3
|
File details
Details for the file gridwayai-0.1.11-py3-none-any.whl.
File metadata
- Download URL: gridwayai-0.1.11-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e61cd3a94ec6cc5b0c5602379d1adb8212c48de39109a03f4fb8a7145d2091c2
|
|
| MD5 |
58627599c261999ee2334fd6bbe4c3e0
|
|
| BLAKE2b-256 |
86401c3a319f8e6518d501b0e031998a588a1f708085a02fb66311925101d815
|