Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(break): release beta v1 SDK #156

Merged
merged 58 commits into from
Sep 5, 2024
Merged

(break): release beta v1 SDK #156

merged 58 commits into from
Sep 5, 2024

Conversation

fern-bot
Copy link
Contributor

@fern-bot fern-bot commented Jun 28, 2024

In this PR, the Hume Python SDK is regenerated with Fern's python generator. The new SDK provides a single top level client that exports APIs across expressionMeasurement, empathicVoice and customModels.

Usage

Below is an example of how to import the new SDK.

from hume.client import HumeClient

client = HumeClient(api_key="...")
client.custom_models.files.create_files(
    request=[
        FileWithAttributesInput(
            file=FileInput(
                name="name",
                hume_storage=True,
                data_type="data_type",
            ),
        )
    ],
)

Legacy

from hume.legacy import HumeStreamClient
from hume.legacy.models.config import FaceConfig

client = Hume(api_key="...")
client.custom_models.files.create_files(
    request=[
        FileWithAttributesInput(
            file=FileInput(
                name="name",
                hume_storage=True,
                data_type="data_type",
            ),
        )
    ],
)

@gregorybchris gregorybchris merged commit 70f5abc into main Sep 5, 2024
8 checks passed
@gregorybchris gregorybchris deleted the fern/v1-beta branch September 5, 2024 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants