Merge pull request #2 from hanzoai/release-please--branches--main--changes--next

release: 0.1.0-alpha.1
This commit is contained in:
2025-03-14 23:08:38 -05:00
committed by GitHub
351 changed files with 2513 additions and 2359 deletions
+31
View File
@@ -0,0 +1,31 @@
# This workflow is triggered when a GitHub release is created.
# It can also be run manually to re-publish to PyPI in case it failed for some reason.
# You can run this workflow by navigating to https://www.github.com/hanzoai/python-sdk/actions/workflows/publish-pypi.yml
name: Publish PyPI
on:
workflow_dispatch:
release:
types: [published]
jobs:
publish:
name: publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rye
run: |
curl -sSf https://rye.astral.sh/get | bash
echo "$HOME/.rye/shims" >> $GITHUB_PATH
env:
RYE_VERSION: '0.44.0'
RYE_INSTALL_OPTION: '--yes'
- name: Publish to PyPI
run: |
bash ./bin/publish-pypi
env:
PYPI_TOKEN: ${{ secrets.HANZO_PYPI_TOKEN || secrets.PYPI_TOKEN }}
+21
View File
@@ -0,0 +1,21 @@
name: Release Doctor
on:
pull_request:
branches:
- main
workflow_dispatch:
jobs:
release_doctor:
name: release doctor
runs-on: ubuntu-latest
if: github.repository == 'hanzoai/python-sdk' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')
steps:
- uses: actions/checkout@v4
- name: Check release environment
run: |
bash ./bin/check-release-environment
env:
PYPI_TOKEN: ${{ secrets.HANZO_PYPI_TOKEN || secrets.PYPI_TOKEN }}
+3
View File
@@ -0,0 +1,3 @@
{
".": "0.1.0-alpha.1"
}
+15
View File
@@ -0,0 +1,15 @@
# Changelog
## 0.1.0-alpha.1 (2025-03-15)
Full Changelog: [v0.0.1-alpha.0...v0.1.0-alpha.1](https://github.com/hanzoai/python-sdk/compare/v0.0.1-alpha.0...v0.1.0-alpha.1)
### Features
* **api:** update via SDK Studio ([#4](https://github.com/hanzoai/python-sdk/issues/4)) ([e5137ed](https://github.com/hanzoai/python-sdk/commit/e5137ed411811a52ff9b7cc0e44a678ef3f3065e))
### Chores
* go live ([#1](https://github.com/hanzoai/python-sdk/issues/1)) ([c1f495e](https://github.com/hanzoai/python-sdk/commit/c1f495ea0e560ada8c76c571b42928bf8e1b5ee5))
* update SDK settings ([#3](https://github.com/hanzoai/python-sdk/issues/3)) ([beb5358](https://github.com/hanzoai/python-sdk/commit/beb53583fcdb15983f09a73be166dbbca30fb93f))
+3 -3
View File
@@ -37,7 +37,7 @@ $ pip install -r requirements-dev.lock
Most of the SDK is generated code. Modifications to code will be persisted between generations, but may
result in merge conflicts between manual patches and changes from the generator. The generator will never
modify the contents of the `src/Hanzo_AI/lib/` and `examples/` directories.
modify the contents of the `src/hanzoai/lib/` and `examples/` directories.
## Adding and running examples
@@ -63,7 +63,7 @@ If you’d like to use the repository from source, you can either install from g
To install via git:
```sh
$ pip install git+ssh://[email protected]/stainless-sdks/Hanzo-AI-python.git
$ pip install git+ssh://[email protected]/hanzoai/python-sdk.git
```
Alternatively, you can build from source and install the wheel file:
@@ -121,7 +121,7 @@ the changes aren't made through the automated pipeline, you may want to make rel
### Publish with a GitHub workflow
You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/stainless-sdks/Hanzo-AI-python/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up.
You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/hanzoai/python-sdk/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up.
### Publish manually
+1 -1
View File
@@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright 2025 Hanzo AI
Copyright 2025 Hanzo
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
+46 -49
View File
@@ -1,8 +1,8 @@
# Hanzo AI Python API library
# Hanzo Python API library
[![PyPI version](https://img.shields.io/pypi/v/Hanzo_AI.svg)](https://pypi.org/project/Hanzo_AI/)
[![PyPI version](https://img.shields.io/pypi/v/hanzoai.svg)](https://pypi.org/project/hanzoai/)
The Hanzo AI Python library provides convenient access to the Hanzo AI REST API from any Python 3.8+
The Hanzo Python library provides convenient access to the Hanzo REST API from any Python 3.8+
application. The library includes type definitions for all request params and response fields,
and offers both synchronous and asynchronous clients powered by [httpx](https://github.com/encode/httpx).
@@ -10,28 +10,25 @@ It is generated with [Stainless](https://www.stainless.com/).
## Documentation
The REST API documentation can be found on [docs.hanzo-ai.com](https://docs.Hanzo-AI.com). The full API of this library can be found in [api.md](api.md).
The REST API documentation can be found on [docs.hanzo.ai](https://docs.hanzo.ai). The full API of this library can be found in [api.md](api.md).
## Installation
```sh
# install from this staging repo
pip install git+ssh://[email protected]/stainless-sdks/Hanzo-AI-python.git
# install from PyPI
pip install --pre hanzoai
```
> [!NOTE]
> Once this package is [published to PyPI](https://app.stainless.com/docs/guides/publish), this will become: `pip install --pre Hanzo_AI`
## Usage
The full API of this library can be found in [api.md](api.md).
```python
import os
from Hanzo_AI import HanzoAI
from hanzoai import Hanzo
client = HanzoAI(
api_key=os.environ.get("HANZO_AI_API_KEY"), # This is the default and can be omitted
client = Hanzo(
api_key=os.environ.get("HANZO_API_KEY"), # This is the default and can be omitted
)
response = client.get_home()
@@ -39,20 +36,20 @@ response = client.get_home()
While you can provide an `api_key` keyword argument,
we recommend using [python-dotenv](https://pypi.org/project/python-dotenv/)
to add `HANZO_AI_API_KEY="My API Key"` to your `.env` file
to add `HANZO_API_KEY="My API Key"` to your `.env` file
so that your API Key is not stored in source control.
## Async usage
Simply import `AsyncHanzoAI` instead of `HanzoAI` and use `await` with each API call:
Simply import `AsyncHanzo` instead of `Hanzo` and use `await` with each API call:
```python
import os
import asyncio
from Hanzo_AI import AsyncHanzoAI
from hanzoai import AsyncHanzo
client = AsyncHanzoAI(
api_key=os.environ.get("HANZO_AI_API_KEY"), # This is the default and can be omitted
client = AsyncHanzo(
api_key=os.environ.get("HANZO_API_KEY"), # This is the default and can be omitted
)
@@ -79,9 +76,9 @@ Typed requests and responses provide autocomplete and documentation within your
Nested parameters are dictionaries, typed using `TypedDict`, for example:
```python
from Hanzo_AI import HanzoAI
from hanzoai import Hanzo
client = HanzoAI()
client = Hanzo()
model = client.model.create(
litellm_params={
@@ -129,9 +126,9 @@ Request parameters that correspond to file uploads can be passed as `bytes`, a [
```python
from pathlib import Path
from Hanzo_AI import HanzoAI
from hanzoai import Hanzo
client = HanzoAI()
client = Hanzo()
client.audio.transcriptions.create(
file=Path("/path/to/file"),
@@ -142,27 +139,27 @@ The async client uses the exact same interface. If you pass a [`PathLike`](https
## Handling errors
When the library is unable to connect to the API (for example, due to network connection problems or a timeout), a subclass of `Hanzo_AI.APIConnectionError` is raised.
When the library is unable to connect to the API (for example, due to network connection problems or a timeout), a subclass of `hanzoai.APIConnectionError` is raised.
When the API returns a non-success status code (that is, 4xx or 5xx
response), a subclass of `Hanzo_AI.APIStatusError` is raised, containing `status_code` and `response` properties.
response), a subclass of `hanzoai.APIStatusError` is raised, containing `status_code` and `response` properties.
All errors inherit from `Hanzo_AI.APIError`.
All errors inherit from `hanzoai.APIError`.
```python
import Hanzo_AI
from Hanzo_AI import HanzoAI
import hanzoai
from hanzoai import Hanzo
client = HanzoAI()
client = Hanzo()
try:
client.get_home()
except Hanzo_AI.APIConnectionError as e:
except hanzoai.APIConnectionError as e:
print("The server could not be reached")
print(e.__cause__) # an underlying Exception, likely raised within httpx.
except Hanzo_AI.RateLimitError as e:
except hanzoai.RateLimitError as e:
print("A 429 status code was received; we should back off a bit.")
except Hanzo_AI.APIStatusError as e:
except hanzoai.APIStatusError as e:
print("Another non-200-range status code was received")
print(e.status_code)
print(e.response)
@@ -190,10 +187,10 @@ Connection errors (for example, due to a network connectivity problem), 408 Requ
You can use the `max_retries` option to configure or disable retry settings:
```python
from Hanzo_AI import HanzoAI
from hanzoai import Hanzo
# Configure the default for all requests:
client = HanzoAI(
client = Hanzo(
# default is 2
max_retries=0,
)
@@ -208,16 +205,16 @@ By default requests time out after 1 minute. You can configure this with a `time
which accepts a float or an [`httpx.Timeout`](https://www.python-httpx.org/advanced/#fine-tuning-the-configuration) object:
```python
from Hanzo_AI import HanzoAI
from hanzoai import Hanzo
# Configure the default for all requests:
client = HanzoAI(
client = Hanzo(
# 20 seconds (default is 1 minute)
timeout=20.0,
)
# More granular control:
client = HanzoAI(
client = Hanzo(
timeout=httpx.Timeout(60.0, read=5.0, write=10.0, connect=2.0),
)
@@ -235,10 +232,10 @@ Note that requests that time out are [retried twice by default](#retries).
We use the standard library [`logging`](https://docs.python.org/3/library/logging.html) module.
You can enable logging by setting the environment variable `HANZO_AI_LOG` to `info`.
You can enable logging by setting the environment variable `HANZO_LOG` to `info`.
```shell
$ export HANZO_AI_LOG=info
$ export HANZO_LOG=info
```
Or to `debug` for more verbose logging.
@@ -260,9 +257,9 @@ if response.my_field is None:
The "raw" Response object can be accessed by prefixing `.with_raw_response.` to any HTTP method call, e.g.,
```py
from Hanzo_AI import HanzoAI
from hanzoai import Hanzo
client = HanzoAI()
client = Hanzo()
response = client.with_raw_response.get_home()
print(response.headers.get('X-My-Header'))
@@ -270,9 +267,9 @@ client = response.parse() # get the object that `get_home()` would have returne
print(client)
```
These methods return an [`APIResponse`](https://github.com/stainless-sdks/Hanzo-AI-python/tree/main/src/Hanzo_AI/_response.py) object.
These methods return an [`APIResponse`](https://github.com/hanzoai/python-sdk/tree/main/src/hanzoai/_response.py) object.
The async client returns an [`AsyncAPIResponse`](https://github.com/stainless-sdks/Hanzo-AI-python/tree/main/src/Hanzo_AI/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
The async client returns an [`AsyncAPIResponse`](https://github.com/hanzoai/python-sdk/tree/main/src/hanzoai/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
#### `.with_streaming_response`
@@ -334,10 +331,10 @@ You can directly override the [httpx client](https://www.python-httpx.org/api/#c
```python
import httpx
from Hanzo_AI import HanzoAI, DefaultHttpxClient
from hanzoai import Hanzo, DefaultHttpxClient
client = HanzoAI(
# Or use the `HANZO_AI_BASE_URL` env var
client = Hanzo(
# Or use the `HANZO_BASE_URL` env var
base_url="http://my.test.server.example.com:8083",
http_client=DefaultHttpxClient(
proxy="http://my.test.proxy.example.com",
@@ -357,9 +354,9 @@ client.with_options(http_client=DefaultHttpxClient(...))
By default the library closes underlying HTTP connections whenever the client is [garbage collected](https://docs.python.org/3/reference/datamodel.html#object.__del__). You can manually close the client using the `.close()` method if desired, or with a context manager that closes when exiting.
```py
from Hanzo_AI import HanzoAI
from hanzoai import Hanzo
with HanzoAI() as client:
with Hanzo() as client:
# make requests here
...
@@ -376,7 +373,7 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con
We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
We are keen for your feedback; please open an [issue](https://www.github.com/stainless-sdks/Hanzo-AI-python/issues) with questions, bugs, or suggestions.
We are keen for your feedback; please open an [issue](https://www.github.com/hanzoai/python-sdk/issues) with questions, bugs, or suggestions.
### Determining the installed version
@@ -385,8 +382,8 @@ If you've upgraded to the latest version but aren't seeing any new features you
You can determine the version that is being used at runtime with:
```py
import Hanzo_AI
print(Hanzo_AI.__version__)
import hanzoai
print(hanzoai.__version__)
```
## Requirements
+3 -3
View File
@@ -16,11 +16,11 @@ before making any information public.
## Reporting Non-SDK Related Security Issues
If you encounter security issues that are not directly related to SDKs but pertain to the services
or products provided by Hanzo AI please follow the respective company's security reporting guidelines.
or products provided by Hanzo please follow the respective company's security reporting guidelines.
### Hanzo AI Terms and Policies
### Hanzo Terms and Policies
Please contact dev-feedback@Hanzo-AI.com for any questions or concerns regarding security of our services.
Please contact dev-feedback@hanzo.ai for any questions or concerns regarding security of our services.
---
+257 -257
View File
File diff suppressed because it is too large Load Diff
+21
View File
@@ -0,0 +1,21 @@
#!/usr/bin/env bash
errors=()
if [ -z "${PYPI_TOKEN}" ]; then
errors+=("The HANZO_PYPI_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets.")
fi
lenErrors=${#errors[@]}
if [[ lenErrors -gt 0 ]]; then
echo -e "Found the following errors in the release environment:\n"
for error in "${errors[@]}"; do
echo -e "- $error\n"
done
exit 1
fi
echo "The environment is ready to push releases!"
+1 -1
View File
@@ -8,7 +8,7 @@ show_error_codes = True
#
# We also exclude our `tests` as mypy doesn't always infer
# types correctly and Pyright will still catch any type errors.
exclude = ^(src/Hanzo_AI/_files\.py|_dev/.*\.py|tests/.*)$
exclude = ^(src/hanzoai/_files\.py|_dev/.*\.py|tests/.*)$
strict_equality = True
implicit_reexport = True
+11 -11
View File
@@ -1,11 +1,11 @@
[project]
name = "Hanzo_AI"
version = "0.0.1-alpha.0"
description = "The official Python library for the Hanzo-AI API"
name = "hanzoai"
version = "0.1.0-alpha.1"
description = "The official Python library for the Hanzo API"
dynamic = ["readme"]
license = "Apache-2.0"
authors = [
{ name = "Hanzo AI", email = "dev-feedback@Hanzo-AI.com" },
{ name = "Hanzo", email = "dev-feedback@hanzo.ai" },
]
dependencies = [
"httpx>=0.23.0, <1",
@@ -34,8 +34,8 @@ classifiers = [
]
[project.urls]
Homepage = "https://github.com/stainless-sdks/Hanzo-AI-python"
Repository = "https://github.com/stainless-sdks/Hanzo-AI-python"
Homepage = "https://github.com/hanzoai/python-sdk"
Repository = "https://github.com/hanzoai/python-sdk"
[tool.rye]
@@ -75,14 +75,14 @@ format = { chain = [
"check:ruff" = "ruff check ."
"fix:ruff" = "ruff check --fix ."
"check:importable" = "python -c 'import Hanzo_AI'"
"check:importable" = "python -c 'import hanzoai'"
typecheck = { chain = [
"typecheck:pyright",
"typecheck:mypy"
]}
"typecheck:pyright" = "pyright"
"typecheck:verify-types" = "pyright --verifytypes Hanzo_AI --ignoreexternal"
"typecheck:verify-types" = "pyright --verifytypes hanzoai --ignoreexternal"
"typecheck:mypy" = "mypy ."
[build-system]
@@ -95,7 +95,7 @@ include = [
]
[tool.hatch.build.targets.wheel]
packages = ["src/Hanzo_AI"]
packages = ["src/hanzoai"]
[tool.hatch.build.targets.sdist]
# Basically everything except hidden files/directories (such as .github, .devcontainers, .python-version, etc)
@@ -121,7 +121,7 @@ path = "README.md"
[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]
# replace relative links with absolute links
pattern = '\[(.+?)\]\(((?!https?://)\S+?)\)'
replacement = '[\1](https://github.com/stainless-sdks/Hanzo-AI-python/tree/main/\g<2>)'
replacement = '[\1](https://github.com/hanzoai/python-sdk/tree/main/\g<2>)'
[tool.pytest.ini_options]
testpaths = ["tests"]
@@ -197,7 +197,7 @@ length-sort = true
length-sort-straight = true
combine-as-imports = true
extra-standard-library = ["typing_extensions"]
known-first-party = ["Hanzo_AI", "tests"]
known-first-party = ["hanzoai", "tests"]
[tool.ruff.lint.per-file-ignores]
"bin/**.py" = ["T201", "T203"]
+66
View File
@@ -0,0 +1,66 @@
{
"packages": {
".": {}
},
"$schema": "https://raw.githubusercontent.com/stainless-api/release-please/main/schemas/config.json",
"include-v-in-tag": true,
"include-component-in-tag": false,
"versioning": "prerelease",
"prerelease": true,
"bump-minor-pre-major": true,
"bump-patch-for-minor-pre-major": false,
"pull-request-header": "Automated Release PR",
"pull-request-title-pattern": "release: ${version}",
"changelog-sections": [
{
"type": "feat",
"section": "Features"
},
{
"type": "fix",
"section": "Bug Fixes"
},
{
"type": "perf",
"section": "Performance Improvements"
},
{
"type": "revert",
"section": "Reverts"
},
{
"type": "chore",
"section": "Chores"
},
{
"type": "docs",
"section": "Documentation"
},
{
"type": "style",
"section": "Styles"
},
{
"type": "refactor",
"section": "Refactors"
},
{
"type": "test",
"section": "Tests",
"hidden": true
},
{
"type": "build",
"section": "Build System"
},
{
"type": "ci",
"section": "Continuous Integration",
"hidden": true
}
],
"release-type": "python",
"extra-files": [
"src/hanzoai/_version.py"
]
}
+6 -6
View File
@@ -13,7 +13,7 @@
annotated-types==0.6.0
# via pydantic
anyio==4.4.0
# via hanzo-ai
# via hanzoai
# via httpx
argcomplete==3.1.2
# via nox
@@ -26,7 +26,7 @@ dirty-equals==0.6.0
distlib==0.3.7
# via virtualenv
distro==1.8.0
# via hanzo-ai
# via hanzoai
exceptiongroup==1.2.2
# via anyio
# via pytest
@@ -37,7 +37,7 @@ h11==0.14.0
httpcore==1.0.2
# via httpx
httpx==0.28.1
# via hanzo-ai
# via hanzoai
# via respx
idna==3.4
# via anyio
@@ -64,7 +64,7 @@ platformdirs==3.11.0
pluggy==1.5.0
# via pytest
pydantic==2.10.3
# via hanzo-ai
# via hanzoai
pydantic-core==2.27.1
# via pydantic
pygments==2.18.0
@@ -86,14 +86,14 @@ six==1.16.0
# via python-dateutil
sniffio==1.3.0
# via anyio
# via hanzo-ai
# via hanzoai
time-machine==2.9.0
tomli==2.0.2
# via mypy
# via pytest
typing-extensions==4.12.2
# via anyio
# via hanzo-ai
# via hanzoai
# via mypy
# via pydantic
# via pydantic-core
+6 -6
View File
@@ -13,13 +13,13 @@
annotated-types==0.6.0
# via pydantic
anyio==4.4.0
# via hanzo-ai
# via hanzoai
# via httpx
certifi==2023.7.22
# via httpcore
# via httpx
distro==1.8.0
# via hanzo-ai
# via hanzoai
exceptiongroup==1.2.2
# via anyio
h11==0.14.0
@@ -27,19 +27,19 @@ h11==0.14.0
httpcore==1.0.2
# via httpx
httpx==0.28.1
# via hanzo-ai
# via hanzoai
idna==3.4
# via anyio
# via httpx
pydantic==2.10.3
# via hanzo-ai
# via hanzoai
pydantic-core==2.27.1
# via pydantic
sniffio==1.3.0
# via anyio
# via hanzo-ai
# via hanzoai
typing-extensions==4.12.2
# via anyio
# via hanzo-ai
# via hanzoai
# via pydantic
# via pydantic-core
+1 -1
View File
@@ -8,4 +8,4 @@ echo "==> Running lints"
rye run lint
echo "==> Making sure it imports"
rye run python -c 'import Hanzo_AI'
rye run python -c 'import hanzoai'
@@ -3,14 +3,14 @@
from . import types
from ._types import NOT_GIVEN, Omit, NoneType, NotGiven, Transport, ProxiesTypes
from ._utils import file_from_path
from ._client import Client, Stream, HanzoAI, Timeout, Transport, AsyncClient, AsyncStream, AsyncHanzoAI, RequestOptions
from ._client import Hanzo, Client, Stream, Timeout, Transport, AsyncHanzo, AsyncClient, AsyncStream, RequestOptions
from ._models import BaseModel
from ._version import __title__, __version__
from ._response import APIResponse as APIResponse, AsyncAPIResponse as AsyncAPIResponse
from ._constants import DEFAULT_TIMEOUT, DEFAULT_MAX_RETRIES, DEFAULT_CONNECTION_LIMITS
from ._exceptions import (
APIError,
HanzoAIError,
HanzoError,
ConflictError,
NotFoundError,
APIStatusError,
@@ -37,7 +37,7 @@ __all__ = [
"NotGiven",
"NOT_GIVEN",
"Omit",
"HanzoAIError",
"HanzoError",
"APIError",
"APIStatusError",
"APITimeoutError",
@@ -57,8 +57,8 @@ __all__ = [
"AsyncClient",
"Stream",
"AsyncStream",
"HanzoAI",
"AsyncHanzoAI",
"Hanzo",
"AsyncHanzo",
"file_from_path",
"BaseModel",
"DEFAULT_TIMEOUT",
@@ -73,12 +73,12 @@ _setup_logging()
# Update the __module__ attribute for exported symbols so that
# error messages point to this module instead of the module
# it was originally defined in, e.g.
# Hanzo_AI._exceptions.NotFoundError -> Hanzo_AI.NotFoundError
# hanzoai._exceptions.NotFoundError -> hanzoai.NotFoundError
__locals = locals()
for __name in __all__:
if not __name.startswith("__"):
try:
__locals[__name].__module__ = "Hanzo_AI"
__locals[__name].__module__ = "hanzoai"
except (TypeError, AttributeError):
# Some of our exported symbols are builtins which we can't set attributes for.
pass
@@ -360,7 +360,7 @@ class BaseClient(Generic[_HttpxClientT, _DefaultStreamT]):
if max_retries is None: # pyright: ignore[reportUnnecessaryComparison]
raise TypeError(
"max_retries cannot be None. If you want to disable retries, pass `0`; if you want unlimited retries, pass `math.inf` or a very high number; if you want the default behavior, pass `Hanzo_AI.DEFAULT_MAX_RETRIES`"
"max_retries cannot be None. If you want to disable retries, pass `0`; if you want unlimited retries, pass `math.inf` or a very high number; if you want the default behavior, pass `hanzoai.DEFAULT_MAX_RETRIES`"
)
def _enforce_trailing_slash(self, url: URL) -> URL:
@@ -67,7 +67,7 @@ from .resources import (
eu_assemblyai,
)
from ._streaming import Stream as Stream, AsyncStream as AsyncStream
from ._exceptions import HanzoAIError, APIStatusError
from ._exceptions import HanzoError, APIStatusError
from ._base_client import (
DEFAULT_MAX_RETRIES,
SyncAPIClient,
@@ -92,10 +92,10 @@ from .resources.responses import responses
from .resources.fine_tuning import fine_tuning
from .resources.organization import organization
__all__ = ["Timeout", "Transport", "ProxiesTypes", "RequestOptions", "HanzoAI", "AsyncHanzoAI", "Client", "AsyncClient"]
__all__ = ["Timeout", "Transport", "ProxiesTypes", "RequestOptions", "Hanzo", "AsyncHanzo", "Client", "AsyncClient"]
class HanzoAI(SyncAPIClient):
class Hanzo(SyncAPIClient):
models: models.ModelsResource
openai: openai.OpenAIResource
engines: engines.EnginesResource
@@ -144,8 +144,8 @@ class HanzoAI(SyncAPIClient):
delete: delete.DeleteResource
files: files.FilesResource
budget: budget.BudgetResource
with_raw_response: HanzoAIWithRawResponse
with_streaming_response: HanzoAIWithStreamedResponse
with_raw_response: HanzoWithRawResponse
with_streaming_response: HanzoWithStreamedResponse
# client options
api_key: str
@@ -173,22 +173,22 @@ class HanzoAI(SyncAPIClient):
# part of our public interface in the future.
_strict_response_validation: bool = False,
) -> None:
"""Construct a new synchronous HanzoAI client instance.
"""Construct a new synchronous Hanzo client instance.
This automatically infers the `api_key` argument from the `HANZO_AI_API_KEY` environment variable if it is not provided.
This automatically infers the `api_key` argument from the `HANZO_API_KEY` environment variable if it is not provided.
"""
if api_key is None:
api_key = os.environ.get("HANZO_AI_API_KEY")
api_key = os.environ.get("HANZO_API_KEY")
if api_key is None:
raise HanzoAIError(
"The api_key client option must be set either by passing api_key to the client or by setting the HANZO_AI_API_KEY environment variable"
raise HanzoError(
"The api_key client option must be set either by passing api_key to the client or by setting the HANZO_API_KEY environment variable"
)
self.api_key = api_key
if base_url is None:
base_url = os.environ.get("HANZO_AI_BASE_URL")
base_url = os.environ.get("HANZO_BASE_URL")
if base_url is None:
base_url = f"https://api.example.com"
base_url = f"https://api.hanzo.ai"
super().__init__(
version=__version__,
@@ -249,8 +249,8 @@ class HanzoAI(SyncAPIClient):
self.delete = delete.DeleteResource(self)
self.files = files.FilesResource(self)
self.budget = budget.BudgetResource(self)
self.with_raw_response = HanzoAIWithRawResponse(self)
self.with_streaming_response = HanzoAIWithStreamedResponse(self)
self.with_raw_response = HanzoWithRawResponse(self)
self.with_streaming_response = HanzoWithStreamedResponse(self)
@property
@override
@@ -376,7 +376,7 @@ class HanzoAI(SyncAPIClient):
return APIStatusError(err_msg, response=response, body=body)
class AsyncHanzoAI(AsyncAPIClient):
class AsyncHanzo(AsyncAPIClient):
models: models.AsyncModelsResource
openai: openai.AsyncOpenAIResource
engines: engines.AsyncEnginesResource
@@ -425,8 +425,8 @@ class AsyncHanzoAI(AsyncAPIClient):
delete: delete.AsyncDeleteResource
files: files.AsyncFilesResource
budget: budget.AsyncBudgetResource
with_raw_response: AsyncHanzoAIWithRawResponse
with_streaming_response: AsyncHanzoAIWithStreamedResponse
with_raw_response: AsyncHanzoWithRawResponse
with_streaming_response: AsyncHanzoWithStreamedResponse
# client options
api_key: str
@@ -454,22 +454,22 @@ class AsyncHanzoAI(AsyncAPIClient):
# part of our public interface in the future.
_strict_response_validation: bool = False,
) -> None:
"""Construct a new async AsyncHanzoAI client instance.
"""Construct a new async AsyncHanzo client instance.
This automatically infers the `api_key` argument from the `HANZO_AI_API_KEY` environment variable if it is not provided.
This automatically infers the `api_key` argument from the `HANZO_API_KEY` environment variable if it is not provided.
"""
if api_key is None:
api_key = os.environ.get("HANZO_AI_API_KEY")
api_key = os.environ.get("HANZO_API_KEY")
if api_key is None:
raise HanzoAIError(
"The api_key client option must be set either by passing api_key to the client or by setting the HANZO_AI_API_KEY environment variable"
raise HanzoError(
"The api_key client option must be set either by passing api_key to the client or by setting the HANZO_API_KEY environment variable"
)
self.api_key = api_key
if base_url is None:
base_url = os.environ.get("HANZO_AI_BASE_URL")
base_url = os.environ.get("HANZO_BASE_URL")
if base_url is None:
base_url = f"https://api.example.com"
base_url = f"https://api.hanzo.ai"
super().__init__(
version=__version__,
@@ -530,8 +530,8 @@ class AsyncHanzoAI(AsyncAPIClient):
self.delete = delete.AsyncDeleteResource(self)
self.files = files.AsyncFilesResource(self)
self.budget = budget.AsyncBudgetResource(self)
self.with_raw_response = AsyncHanzoAIWithRawResponse(self)
self.with_streaming_response = AsyncHanzoAIWithStreamedResponse(self)
self.with_raw_response = AsyncHanzoWithRawResponse(self)
self.with_streaming_response = AsyncHanzoWithStreamedResponse(self)
@property
@override
@@ -657,8 +657,8 @@ class AsyncHanzoAI(AsyncAPIClient):
return APIStatusError(err_msg, response=response, body=body)
class HanzoAIWithRawResponse:
def __init__(self, client: HanzoAI) -> None:
class HanzoWithRawResponse:
def __init__(self, client: Hanzo) -> None:
self.models = models.ModelsResourceWithRawResponse(client.models)
self.openai = openai.OpenAIResourceWithRawResponse(client.openai)
self.engines = engines.EnginesResourceWithRawResponse(client.engines)
@@ -713,8 +713,8 @@ class HanzoAIWithRawResponse:
)
class AsyncHanzoAIWithRawResponse:
def __init__(self, client: AsyncHanzoAI) -> None:
class AsyncHanzoWithRawResponse:
def __init__(self, client: AsyncHanzo) -> None:
self.models = models.AsyncModelsResourceWithRawResponse(client.models)
self.openai = openai.AsyncOpenAIResourceWithRawResponse(client.openai)
self.engines = engines.AsyncEnginesResourceWithRawResponse(client.engines)
@@ -769,8 +769,8 @@ class AsyncHanzoAIWithRawResponse:
)
class HanzoAIWithStreamedResponse:
def __init__(self, client: HanzoAI) -> None:
class HanzoWithStreamedResponse:
def __init__(self, client: Hanzo) -> None:
self.models = models.ModelsResourceWithStreamingResponse(client.models)
self.openai = openai.OpenAIResourceWithStreamingResponse(client.openai)
self.engines = engines.EnginesResourceWithStreamingResponse(client.engines)
@@ -825,8 +825,8 @@ class HanzoAIWithStreamedResponse:
)
class AsyncHanzoAIWithStreamedResponse:
def __init__(self, client: AsyncHanzoAI) -> None:
class AsyncHanzoWithStreamedResponse:
def __init__(self, client: AsyncHanzo) -> None:
self.models = models.AsyncModelsResourceWithStreamingResponse(client.models)
self.openai = openai.AsyncOpenAIResourceWithStreamingResponse(client.openai)
self.engines = engines.AsyncEnginesResourceWithStreamingResponse(client.engines)
@@ -881,6 +881,6 @@ class AsyncHanzoAIWithStreamedResponse:
)
Client = HanzoAI
Client = Hanzo
AsyncClient = AsyncHanzoAI
AsyncClient = AsyncHanzo
@@ -18,11 +18,11 @@ __all__ = [
]
class HanzoAIError(Exception):
class HanzoError(Exception):
pass
class APIError(HanzoAIError):
class APIError(HanzoError):
message: str
request: httpx.Request
@@ -34,7 +34,7 @@ def assert_is_file_content(obj: object, *, key: str | None = None) -> None:
if not is_file_content(obj):
prefix = f"Expected entry at `{key}`" if key is not None else f"Expected file input `{obj!r}`"
raise RuntimeError(
f"{prefix} to be bytes, an io.IOBase instance, PathLike or a tuple but received {type(obj)} instead. See https://github.com/stainless-sdks/Hanzo-AI-python/tree/main#file-uploads"
f"{prefix} to be bytes, an io.IOBase instance, PathLike or a tuple but received {type(obj)} instead. See https://github.com/hanzoai/python-sdk/tree/main#file-uploads"
) from None
@@ -8,13 +8,13 @@ from typing import TYPE_CHECKING
import anyio
if TYPE_CHECKING:
from ._client import HanzoAI, AsyncHanzoAI
from ._client import Hanzo, AsyncHanzo
class SyncAPIResource:
_client: HanzoAI
_client: Hanzo
def __init__(self, client: HanzoAI) -> None:
def __init__(self, client: Hanzo) -> None:
self._client = client
self._get = client.get
self._post = client.post
@@ -28,9 +28,9 @@ class SyncAPIResource:
class AsyncAPIResource:
_client: AsyncHanzoAI
_client: AsyncHanzo
def __init__(self, client: AsyncHanzoAI) -> None:
def __init__(self, client: AsyncHanzo) -> None:
self._client = client
self._get = client.get
self._post = client.post
@@ -29,7 +29,7 @@ from ._utils import is_given, extract_type_arg, is_annotated_type, is_type_alias
from ._models import BaseModel, is_basemodel
from ._constants import RAW_RESPONSE_HEADER, OVERRIDE_CAST_TO_HEADER
from ._streaming import Stream, AsyncStream, is_stream_class_type, extract_stream_chunk_type
from ._exceptions import HanzoAIError, APIResponseValidationError
from ._exceptions import HanzoError, APIResponseValidationError
if TYPE_CHECKING:
from ._models import FinalRequestOptions
@@ -217,7 +217,7 @@ class BaseAPIResponse(Generic[R]):
and not issubclass(origin, BaseModel)
and issubclass(origin, pydantic.BaseModel)
):
raise TypeError("Pydantic models must subclass our base model type, e.g. `from Hanzo_AI import BaseModel`")
raise TypeError("Pydantic models must subclass our base model type, e.g. `from hanzoai import BaseModel`")
if (
cast_to is not object
@@ -283,7 +283,7 @@ class APIResponse(BaseAPIResponse[R]):
the `to` argument, e.g.
```py
from Hanzo_AI import BaseModel
from hanzoai import BaseModel
class MyModel(BaseModel):
@@ -385,7 +385,7 @@ class AsyncAPIResponse(BaseAPIResponse[R]):
the `to` argument, e.g.
```py
from Hanzo_AI import BaseModel
from hanzoai import BaseModel
class MyModel(BaseModel):
@@ -556,11 +556,11 @@ class AsyncStreamedBinaryAPIResponse(AsyncAPIResponse[bytes]):
class MissingStreamClassError(TypeError):
def __init__(self) -> None:
super().__init__(
"The `stream` argument was set to `True` but the `stream_cls` argument was not given. See `Hanzo_AI._streaming` for reference",
"The `stream` argument was set to `True` but the `stream_cls` argument was not given. See `hanzoai._streaming` for reference",
)
class StreamAlreadyConsumed(HanzoAIError):
class StreamAlreadyConsumed(HanzoError):
"""
Attempted to read or stream content, but the content has already
been streamed.
@@ -12,7 +12,7 @@ import httpx
from ._utils import extract_type_var_from_base
if TYPE_CHECKING:
from ._client import HanzoAI, AsyncHanzoAI
from ._client import Hanzo, AsyncHanzo
_T = TypeVar("_T")
@@ -30,7 +30,7 @@ class Stream(Generic[_T]):
*,
cast_to: type[_T],
response: httpx.Response,
client: HanzoAI,
client: Hanzo,
) -> None:
self.response = response
self._cast_to = cast_to
@@ -93,7 +93,7 @@ class AsyncStream(Generic[_T]):
*,
cast_to: type[_T],
response: httpx.Response,
client: AsyncHanzoAI,
client: AsyncHanzo,
) -> None:
self.response = response
self._cast_to = cast_to
@@ -81,7 +81,7 @@ HttpxRequestFiles = Union[Mapping[str, HttpxFileTypes], Sequence[Tuple[str, Http
# This unfortunately means that you will either have
# to import this type and pass it explicitly:
#
# from Hanzo_AI import NoneType
# from hanzoai import NoneType
# client.get('/foo', cast_to=NoneType)
#
# or build it yourself:
@@ -1,12 +1,12 @@
import os
import logging
logger: logging.Logger = logging.getLogger("Hanzo_AI")
logger: logging.Logger = logging.getLogger("hanzoai")
httpx_logger: logging.Logger = logging.getLogger("httpx")
def _basic_config() -> None:
# e.g. [2023-10-05 14:12:26 - Hanzo_AI._base_client:818 - DEBUG] HTTP Request: POST http://127.0.0.1:4010/foo/bar "200 OK"
# e.g. [2023-10-05 14:12:26 - hanzoai._base_client:818 - DEBUG] HTTP Request: POST http://127.0.0.1:4010/foo/bar "200 OK"
logging.basicConfig(
format="[%(asctime)s - %(name)s:%(lineno)d - %(levelname)s] %(message)s",
datefmt="%Y-%m-%d %H:%M:%S",
@@ -14,7 +14,7 @@ def _basic_config() -> None:
def setup_logging() -> None:
env = os.environ.get("HANZO_AI_LOG")
env = os.environ.get("HANZO_LOG")
if env == "debug":
_basic_config()
logger.setLevel(logging.DEBUG)
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
__title__ = "Hanzo_AI"
__version__ = "0.0.1-alpha.0"
__title__ = "hanzoai"
__version__ = "0.1.0-alpha.1" # x-release-please-version
+4
View File
@@ -0,0 +1,4 @@
File generated from our OpenAPI spec by Stainless.
This directory can be used to store custom files to expand the SDK.
It is ignored by Stainless code generation and its content (other than this keep file) won't be touched.
@@ -25,7 +25,7 @@ class ActiveResource(SyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return ActiveResourceWithRawResponse(self)
@@ -34,7 +34,7 @@ class ActiveResource(SyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return ActiveResourceWithStreamingResponse(self)
@@ -89,7 +89,7 @@ class AsyncActiveResource(AsyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AsyncActiveResourceWithRawResponse(self)
@@ -98,7 +98,7 @@ class AsyncActiveResource(AsyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AsyncActiveResourceWithStreamingResponse(self)
@@ -30,7 +30,7 @@ class AddResource(SyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AddResourceWithRawResponse(self)
@@ -39,7 +39,7 @@ class AddResource(SyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AddResourceWithStreamingResponse(self)
@@ -83,7 +83,7 @@ class AsyncAddResource(AsyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AsyncAddResourceWithRawResponse(self)
@@ -92,7 +92,7 @@ class AsyncAddResource(AsyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AsyncAddResourceWithStreamingResponse(self)
@@ -25,7 +25,7 @@ class AnthropicResource(SyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AnthropicResourceWithRawResponse(self)
@@ -34,7 +34,7 @@ class AnthropicResource(SyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AnthropicResourceWithStreamingResponse(self)
@@ -211,7 +211,7 @@ class AsyncAnthropicResource(AsyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AsyncAnthropicResourceWithRawResponse(self)
@@ -220,7 +220,7 @@ class AsyncAnthropicResource(AsyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AsyncAnthropicResourceWithStreamingResponse(self)
@@ -25,7 +25,7 @@ class AssemblyaiResource(SyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AssemblyaiResourceWithRawResponse(self)
@@ -34,7 +34,7 @@ class AssemblyaiResource(SyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AssemblyaiResourceWithStreamingResponse(self)
@@ -211,7 +211,7 @@ class AsyncAssemblyaiResource(AsyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AsyncAssemblyaiResourceWithRawResponse(self)
@@ -220,7 +220,7 @@ class AsyncAssemblyaiResource(AsyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AsyncAssemblyaiResourceWithStreamingResponse(self)
@@ -25,7 +25,7 @@ class AssistantsResource(SyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AssistantsResourceWithRawResponse(self)
@@ -34,7 +34,7 @@ class AssistantsResource(SyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AssistantsResourceWithStreamingResponse(self)
@@ -130,7 +130,7 @@ class AsyncAssistantsResource(AsyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AsyncAssistantsResourceWithRawResponse(self)
@@ -139,7 +139,7 @@ class AsyncAssistantsResource(AsyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AsyncAssistantsResourceWithStreamingResponse(self)
@@ -39,7 +39,7 @@ class AudioResource(SyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AudioResourceWithRawResponse(self)
@@ -48,7 +48,7 @@ class AudioResource(SyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AudioResourceWithStreamingResponse(self)
@@ -68,7 +68,7 @@ class AsyncAudioResource(AsyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AsyncAudioResourceWithRawResponse(self)
@@ -77,7 +77,7 @@ class AsyncAudioResource(AsyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AsyncAudioResourceWithStreamingResponse(self)
@@ -25,7 +25,7 @@ class SpeechResource(SyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return SpeechResourceWithRawResponse(self)
@@ -34,7 +34,7 @@ class SpeechResource(SyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return SpeechResourceWithStreamingResponse(self)
@@ -69,7 +69,7 @@ class AsyncSpeechResource(AsyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AsyncSpeechResourceWithRawResponse(self)
@@ -78,7 +78,7 @@ class AsyncSpeechResource(AsyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AsyncSpeechResourceWithStreamingResponse(self)
@@ -34,7 +34,7 @@ class TranscriptionsResource(SyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return TranscriptionsResourceWithRawResponse(self)
@@ -43,7 +43,7 @@ class TranscriptionsResource(SyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return TranscriptionsResourceWithStreamingResponse(self)
@@ -96,7 +96,7 @@ class AsyncTranscriptionsResource(AsyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AsyncTranscriptionsResourceWithRawResponse(self)
@@ -105,7 +105,7 @@ class AsyncTranscriptionsResource(AsyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AsyncTranscriptionsResourceWithStreamingResponse(self)
@@ -25,7 +25,7 @@ class AzureResource(SyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AzureResourceWithRawResponse(self)
@@ -34,7 +34,7 @@ class AzureResource(SyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AzureResourceWithStreamingResponse(self)
@@ -221,7 +221,7 @@ class AsyncAzureResource(AsyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AsyncAzureResourceWithRawResponse(self)
@@ -230,7 +230,7 @@ class AsyncAzureResource(AsyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AsyncAzureResourceWithStreamingResponse(self)
@@ -49,7 +49,7 @@ class BatchesResource(SyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return BatchesResourceWithRawResponse(self)
@@ -58,7 +58,7 @@ class BatchesResource(SyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return BatchesResourceWithStreamingResponse(self)
@@ -415,7 +415,7 @@ class AsyncBatchesResource(AsyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AsyncBatchesResourceWithRawResponse(self)
@@ -424,7 +424,7 @@ class AsyncBatchesResource(AsyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AsyncBatchesResourceWithStreamingResponse(self)
@@ -32,7 +32,7 @@ class CancelResource(SyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return CancelResourceWithRawResponse(self)
@@ -41,7 +41,7 @@ class CancelResource(SyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return CancelResourceWithStreamingResponse(self)
@@ -103,7 +103,7 @@ class AsyncCancelResource(AsyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AsyncCancelResourceWithRawResponse(self)
@@ -112,7 +112,7 @@ class AsyncCancelResource(AsyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AsyncCancelResourceWithStreamingResponse(self)
@@ -25,7 +25,7 @@ class BedrockResource(SyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return BedrockResourceWithRawResponse(self)
@@ -34,7 +34,7 @@ class BedrockResource(SyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return BedrockResourceWithStreamingResponse(self)
@@ -211,7 +211,7 @@ class AsyncBedrockResource(AsyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AsyncBedrockResourceWithRawResponse(self)
@@ -220,7 +220,7 @@ class AsyncBedrockResource(AsyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AsyncBedrockResourceWithStreamingResponse(self)
@@ -38,7 +38,7 @@ class BudgetResource(SyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return BudgetResourceWithRawResponse(self)
@@ -47,7 +47,7 @@ class BudgetResource(SyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return BudgetResourceWithStreamingResponse(self)
@@ -359,7 +359,7 @@ class AsyncBudgetResource(AsyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AsyncBudgetResourceWithRawResponse(self)
@@ -368,7 +368,7 @@ class AsyncBudgetResource(AsyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AsyncBudgetResourceWithStreamingResponse(self)
@@ -38,7 +38,7 @@ class CacheResource(SyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return CacheResourceWithRawResponse(self)
@@ -47,7 +47,7 @@ class CacheResource(SyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return CacheResourceWithStreamingResponse(self)
@@ -145,7 +145,7 @@ class AsyncCacheResource(AsyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AsyncCacheResourceWithRawResponse(self)
@@ -154,7 +154,7 @@ class AsyncCacheResource(AsyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AsyncCacheResourceWithStreamingResponse(self)
@@ -25,7 +25,7 @@ class RedisResource(SyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return RedisResourceWithRawResponse(self)
@@ -34,7 +34,7 @@ class RedisResource(SyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return RedisResourceWithStreamingResponse(self)
@@ -65,7 +65,7 @@ class AsyncRedisResource(AsyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AsyncRedisResourceWithRawResponse(self)
@@ -74,7 +74,7 @@ class AsyncRedisResource(AsyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AsyncRedisResourceWithStreamingResponse(self)
@@ -27,7 +27,7 @@ class ChatResource(SyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return ChatResourceWithRawResponse(self)
@@ -36,7 +36,7 @@ class ChatResource(SyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return ChatResourceWithStreamingResponse(self)
@@ -52,7 +52,7 @@ class AsyncChatResource(AsyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AsyncChatResourceWithRawResponse(self)
@@ -61,7 +61,7 @@ class AsyncChatResource(AsyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AsyncChatResourceWithStreamingResponse(self)
@@ -32,7 +32,7 @@ class CompletionsResource(SyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return CompletionsResourceWithRawResponse(self)
@@ -41,7 +41,7 @@ class CompletionsResource(SyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return CompletionsResourceWithStreamingResponse(self)
@@ -104,7 +104,7 @@ class AsyncCompletionsResource(AsyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AsyncCompletionsResourceWithRawResponse(self)
@@ -113,7 +113,7 @@ class AsyncCompletionsResource(AsyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AsyncCompletionsResourceWithStreamingResponse(self)
@@ -25,7 +25,7 @@ class CohereResource(SyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return CohereResourceWithRawResponse(self)
@@ -34,7 +34,7 @@ class CohereResource(SyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return CohereResourceWithStreamingResponse(self)
@@ -211,7 +211,7 @@ class AsyncCohereResource(AsyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AsyncCohereResourceWithRawResponse(self)
@@ -220,7 +220,7 @@ class AsyncCohereResource(AsyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AsyncCohereResourceWithStreamingResponse(self)
@@ -32,7 +32,7 @@ class CompletionsResource(SyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return CompletionsResourceWithRawResponse(self)
@@ -41,7 +41,7 @@ class CompletionsResource(SyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return CompletionsResourceWithStreamingResponse(self)
@@ -101,7 +101,7 @@ class AsyncCompletionsResource(AsyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AsyncCompletionsResourceWithRawResponse(self)
@@ -110,7 +110,7 @@ class AsyncCompletionsResource(AsyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AsyncCompletionsResourceWithStreamingResponse(self)
@@ -27,7 +27,7 @@ class ConfigResource(SyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return ConfigResourceWithRawResponse(self)
@@ -36,7 +36,7 @@ class ConfigResource(SyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return ConfigResourceWithStreamingResponse(self)
@@ -52,7 +52,7 @@ class AsyncConfigResource(AsyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AsyncConfigResourceWithRawResponse(self)
@@ -61,7 +61,7 @@ class AsyncConfigResource(AsyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AsyncConfigResourceWithStreamingResponse(self)
@@ -37,7 +37,7 @@ class PassThroughEndpointResource(SyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return PassThroughEndpointResourceWithRawResponse(self)
@@ -46,7 +46,7 @@ class PassThroughEndpointResource(SyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return PassThroughEndpointResourceWithStreamingResponse(self)
@@ -217,7 +217,7 @@ class AsyncPassThroughEndpointResource(AsyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AsyncPassThroughEndpointResourceWithRawResponse(self)
@@ -226,7 +226,7 @@ class AsyncPassThroughEndpointResource(AsyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AsyncPassThroughEndpointResourceWithStreamingResponse(self)
@@ -30,7 +30,7 @@ class CredentialsResource(SyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return CredentialsResourceWithRawResponse(self)
@@ -39,7 +39,7 @@ class CredentialsResource(SyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return CredentialsResourceWithStreamingResponse(self)
@@ -228,7 +228,7 @@ class AsyncCredentialsResource(AsyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AsyncCredentialsResourceWithRawResponse(self)
@@ -237,7 +237,7 @@ class AsyncCredentialsResource(AsyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AsyncCredentialsResourceWithStreamingResponse(self)
@@ -42,7 +42,7 @@ class CustomerResource(SyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return CustomerResourceWithRawResponse(self)
@@ -51,7 +51,7 @@ class CustomerResource(SyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return CustomerResourceWithStreamingResponse(self)
@@ -474,7 +474,7 @@ class AsyncCustomerResource(AsyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AsyncCustomerResourceWithRawResponse(self)
@@ -483,7 +483,7 @@ class AsyncCustomerResource(AsyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AsyncCustomerResourceWithStreamingResponse(self)
@@ -30,7 +30,7 @@ class DeleteResource(SyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return DeleteResourceWithRawResponse(self)
@@ -39,7 +39,7 @@ class DeleteResource(SyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return DeleteResourceWithStreamingResponse(self)
@@ -83,7 +83,7 @@ class AsyncDeleteResource(AsyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AsyncDeleteResourceWithRawResponse(self)
@@ -92,7 +92,7 @@ class AsyncDeleteResource(AsyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AsyncDeleteResourceWithStreamingResponse(self)
@@ -32,7 +32,7 @@ class EmbeddingsResource(SyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return EmbeddingsResourceWithRawResponse(self)
@@ -41,7 +41,7 @@ class EmbeddingsResource(SyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return EmbeddingsResourceWithStreamingResponse(self)
@@ -99,7 +99,7 @@ class AsyncEmbeddingsResource(AsyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AsyncEmbeddingsResourceWithRawResponse(self)
@@ -108,7 +108,7 @@ class AsyncEmbeddingsResource(AsyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AsyncEmbeddingsResourceWithStreamingResponse(self)
@@ -25,7 +25,7 @@ class ChatResource(SyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return ChatResourceWithRawResponse(self)
@@ -34,7 +34,7 @@ class ChatResource(SyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return ChatResourceWithStreamingResponse(self)
@@ -95,7 +95,7 @@ class AsyncChatResource(AsyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AsyncChatResourceWithRawResponse(self)
@@ -104,7 +104,7 @@ class AsyncChatResource(AsyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AsyncChatResourceWithStreamingResponse(self)
@@ -37,7 +37,7 @@ class EnginesResource(SyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return EnginesResourceWithRawResponse(self)
@@ -46,7 +46,7 @@ class EnginesResource(SyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return EnginesResourceWithStreamingResponse(self)
@@ -152,7 +152,7 @@ class AsyncEnginesResource(AsyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AsyncEnginesResourceWithRawResponse(self)
@@ -161,7 +161,7 @@ class AsyncEnginesResource(AsyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AsyncEnginesResourceWithStreamingResponse(self)
@@ -25,7 +25,7 @@ class EuAssemblyaiResource(SyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return EuAssemblyaiResourceWithRawResponse(self)
@@ -34,7 +34,7 @@ class EuAssemblyaiResource(SyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return EuAssemblyaiResourceWithStreamingResponse(self)
@@ -211,7 +211,7 @@ class AsyncEuAssemblyaiResource(AsyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AsyncEuAssemblyaiResourceWithRawResponse(self)
@@ -220,7 +220,7 @@ class AsyncEuAssemblyaiResource(AsyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AsyncEuAssemblyaiResourceWithStreamingResponse(self)
@@ -25,7 +25,7 @@ class ContentResource(SyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return ContentResourceWithRawResponse(self)
@@ -34,7 +34,7 @@ class ContentResource(SyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return ContentResourceWithStreamingResponse(self)
@@ -95,7 +95,7 @@ class AsyncContentResource(AsyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AsyncContentResourceWithRawResponse(self)
@@ -104,7 +104,7 @@ class AsyncContentResource(AsyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AsyncContentResourceWithStreamingResponse(self)
@@ -46,7 +46,7 @@ class FilesResource(SyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return FilesResourceWithRawResponse(self)
@@ -55,7 +55,7 @@ class FilesResource(SyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return FilesResourceWithStreamingResponse(self)
@@ -279,7 +279,7 @@ class AsyncFilesResource(AsyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AsyncFilesResourceWithRawResponse(self)
@@ -288,7 +288,7 @@ class AsyncFilesResource(AsyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AsyncFilesResourceWithStreamingResponse(self)
@@ -27,7 +27,7 @@ class FineTuningResource(SyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return FineTuningResourceWithRawResponse(self)
@@ -36,7 +36,7 @@ class FineTuningResource(SyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return FineTuningResourceWithStreamingResponse(self)
@@ -52,7 +52,7 @@ class AsyncFineTuningResource(AsyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AsyncFineTuningResourceWithRawResponse(self)
@@ -61,7 +61,7 @@ class AsyncFineTuningResource(AsyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AsyncFineTuningResourceWithStreamingResponse(self)
@@ -25,7 +25,7 @@ class CancelResource(SyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return CancelResourceWithRawResponse(self)
@@ -34,7 +34,7 @@ class CancelResource(SyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return CancelResourceWithStreamingResponse(self)
@@ -87,7 +87,7 @@ class AsyncCancelResource(AsyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AsyncCancelResourceWithRawResponse(self)
@@ -96,7 +96,7 @@ class AsyncCancelResource(AsyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AsyncCancelResourceWithStreamingResponse(self)
@@ -45,7 +45,7 @@ class JobsResource(SyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return JobsResourceWithRawResponse(self)
@@ -54,7 +54,7 @@ class JobsResource(SyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return JobsResourceWithStreamingResponse(self)
@@ -237,7 +237,7 @@ class AsyncJobsResource(AsyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AsyncJobsResourceWithRawResponse(self)
@@ -246,7 +246,7 @@ class AsyncJobsResource(AsyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AsyncJobsResourceWithStreamingResponse(self)
@@ -25,7 +25,7 @@ class GeminiResource(SyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return GeminiResourceWithRawResponse(self)
@@ -34,7 +34,7 @@ class GeminiResource(SyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return GeminiResourceWithStreamingResponse(self)
@@ -211,7 +211,7 @@ class AsyncGeminiResource(AsyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AsyncGeminiResourceWithRawResponse(self)
@@ -220,7 +220,7 @@ class AsyncGeminiResource(AsyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AsyncGeminiResourceWithStreamingResponse(self)
@@ -27,7 +27,7 @@ class GlobalResource(SyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return GlobalResourceWithRawResponse(self)
@@ -36,7 +36,7 @@ class GlobalResource(SyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return GlobalResourceWithStreamingResponse(self)
@@ -52,7 +52,7 @@ class AsyncGlobalResource(AsyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AsyncGlobalResourceWithRawResponse(self)
@@ -61,7 +61,7 @@ class AsyncGlobalResource(AsyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AsyncGlobalResourceWithStreamingResponse(self)
@@ -35,7 +35,7 @@ class SpendResource(SyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return SpendResourceWithRawResponse(self)
@@ -44,7 +44,7 @@ class SpendResource(SyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return SpendResourceWithStreamingResponse(self)
@@ -220,7 +220,7 @@ class AsyncSpendResource(AsyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AsyncSpendResourceWithRawResponse(self)
@@ -229,7 +229,7 @@ class AsyncSpendResource(AsyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AsyncSpendResourceWithStreamingResponse(self)
@@ -26,7 +26,7 @@ class GuardrailsResource(SyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return GuardrailsResourceWithRawResponse(self)
@@ -35,7 +35,7 @@ class GuardrailsResource(SyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return GuardrailsResourceWithStreamingResponse(self)
@@ -101,7 +101,7 @@ class AsyncGuardrailsResource(AsyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AsyncGuardrailsResourceWithRawResponse(self)
@@ -110,7 +110,7 @@ class AsyncGuardrailsResource(AsyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AsyncGuardrailsResourceWithStreamingResponse(self)
@@ -33,7 +33,7 @@ class HealthResource(SyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return HealthResourceWithRawResponse(self)
@@ -42,7 +42,7 @@ class HealthResource(SyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return HealthResourceWithStreamingResponse(self)
@@ -210,7 +210,7 @@ class AsyncHealthResource(AsyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AsyncHealthResourceWithRawResponse(self)
@@ -219,7 +219,7 @@ class AsyncHealthResource(AsyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AsyncHealthResourceWithStreamingResponse(self)
@@ -25,7 +25,7 @@ class GenerationsResource(SyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return GenerationsResourceWithRawResponse(self)
@@ -34,7 +34,7 @@ class GenerationsResource(SyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return GenerationsResourceWithStreamingResponse(self)
@@ -65,7 +65,7 @@ class AsyncGenerationsResource(AsyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AsyncGenerationsResourceWithRawResponse(self)
@@ -74,7 +74,7 @@ class AsyncGenerationsResource(AsyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AsyncGenerationsResourceWithStreamingResponse(self)
@@ -27,7 +27,7 @@ class ImagesResource(SyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return ImagesResourceWithRawResponse(self)
@@ -36,7 +36,7 @@ class ImagesResource(SyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return ImagesResourceWithStreamingResponse(self)
@@ -52,7 +52,7 @@ class AsyncImagesResource(AsyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AsyncImagesResourceWithRawResponse(self)
@@ -61,7 +61,7 @@ class AsyncImagesResource(AsyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AsyncImagesResourceWithStreamingResponse(self)
@@ -47,7 +47,7 @@ class KeyResource(SyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return KeyResourceWithRawResponse(self)
@@ -56,7 +56,7 @@ class KeyResource(SyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return KeyResourceWithStreamingResponse(self)
@@ -906,7 +906,7 @@ class AsyncKeyResource(AsyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AsyncKeyResourceWithRawResponse(self)
@@ -915,7 +915,7 @@ class AsyncKeyResource(AsyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AsyncKeyResourceWithStreamingResponse(self)
@@ -25,7 +25,7 @@ class LangfuseResource(SyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return LangfuseResourceWithRawResponse(self)
@@ -34,7 +34,7 @@ class LangfuseResource(SyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return LangfuseResourceWithStreamingResponse(self)
@@ -226,7 +226,7 @@ class AsyncLangfuseResource(AsyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AsyncLangfuseResourceWithRawResponse(self)
@@ -235,7 +235,7 @@ class AsyncLangfuseResource(AsyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AsyncLangfuseResourceWithStreamingResponse(self)
@@ -32,7 +32,7 @@ class InfoResource(SyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return InfoResourceWithRawResponse(self)
@@ -41,7 +41,7 @@ class InfoResource(SyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return InfoResourceWithStreamingResponse(self)
@@ -117,7 +117,7 @@ class AsyncInfoResource(AsyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AsyncInfoResourceWithRawResponse(self)
@@ -126,7 +126,7 @@ class AsyncInfoResource(AsyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AsyncInfoResourceWithStreamingResponse(self)
@@ -55,7 +55,7 @@ class ModelResource(SyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return ModelResourceWithRawResponse(self)
@@ -64,7 +64,7 @@ class ModelResource(SyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return ModelResourceWithStreamingResponse(self)
@@ -159,7 +159,7 @@ class AsyncModelResource(AsyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AsyncModelResourceWithRawResponse(self)
@@ -168,7 +168,7 @@ class AsyncModelResource(AsyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AsyncModelResourceWithStreamingResponse(self)
@@ -33,7 +33,7 @@ class UpdateResource(SyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return UpdateResourceWithRawResponse(self)
@@ -42,7 +42,7 @@ class UpdateResource(SyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return UpdateResourceWithStreamingResponse(self)
@@ -150,7 +150,7 @@ class AsyncUpdateResource(AsyncAPIResource):
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/hanzoai/python-sdk#accessing-raw-response-data-eg-headers
"""
return AsyncUpdateResourceWithRawResponse(self)
@@ -159,7 +159,7 @@ class AsyncUpdateResource(AsyncAPIResource):
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
For more information, see https://www.github.com/stainless-sdks/Hanzo-AI-python#with_streaming_response
For more information, see https://www.github.com/hanzoai/python-sdk#with_streaming_response
"""
return AsyncUpdateResourceWithStreamingResponse(self)

Some files were not shown because too many files have changed in this diff Show More