Initial public Python SDK release for the ai& API.
Added
- Generated `aiand` Python package from the public ai& OpenAPI spec.
- OpenAI-compatible API coverage for models, chat completions, legacy completions,
responses, files, and chunked uploads.
- Pydantic model exports for generated request and response types.
- API-key authentication through `aiand.Configuration(access_token=...)`.
- Default API server support for `https://api.aiand.com`.
- Package metadata for Python 3.10 through Python 3.13.
- Comprehensive README with installation, usage, cassette recording, testing, and SDK
regeneration instructions.
- `scripts/update-sdk` for downloading the latest spec and regenerating the client with
OpenAPI Generator.
- `scripts/patch_generated_client.py` for small generated-client compatibility patches.
- vcrpy test coverage for every generated public endpoint:
- `GET /v1/models`
- `POST /v1/chat/completions`
- `POST /v1/completions`
- `POST /v1/responses`
- `GET /v1/files`
- `POST /v1/files`
- `GET /v1/files/{id}`
- `GET /v1/files/{id}/content`
- `DELETE /v1/files/{id}`
- `POST /v1/uploads`
- `POST /v1/uploads/{id}/parts`
- `POST /v1/uploads/{id}/complete`
- `POST /v1/uploads/{id}/cancel`
- Sanitized VCR cassette fixtures with API-key and request-header redaction.
- Apache License 2.0.
Implementation Notes
- Generates directly from the public OpenAPI spec, which provides the API server, upload
purpose enums, string pricing fields, binary upload fields, and model metadata fields.
- Normalizes VCR/urllib3 response headers before generated `ApiResponse` validation.
- Keeps low-level HTTP debug output disabled so raw request headers are not printed.
- Allows nullable `logprobs` values returned by completion and chat completion choices.