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

🌿 Fern Regeneration -- October 25, 2024 #204

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 24 additions & 6 deletions .mock/definition/empathic-voice/__package__.yml
Original file line number Diff line number Diff line change
Expand Up @@ -784,14 +784,23 @@ types:
of the Tool. Each update to the Tool increments its version number.
source:
openapi: stenographer-openapi.json
PostedVoiceProvider:
enum:
- HUME_AI
- CUSTOM_VOICE
docs: >-
The provider of the voice to use. Supported values are `HUME_AI` and
`CUSTOM_VOICE`.
source:
openapi: stenographer-openapi.json
PostedVoice:
docs: A Voice specification posted to the server
properties:
provider:
type: literal<"HUME_AI">
type: PostedVoiceProvider
docs: >-
The provider of the voice to use. Currently, only `HUME_AI` is
supported as the voice provider.
The provider of the voice to use. Supported values are `HUME_AI` and
`CUSTOM_VOICE`.
name:
type: optional<string>
docs: >-
Expand Down Expand Up @@ -1071,14 +1080,23 @@ types:
seconds.
source:
openapi: stenographer-openapi.json
ReturnVoiceProvider:
enum:
- HUME_AI
- CUSTOM_VOICE
docs: >-
The provider of the voice to use. Supported values are `HUME_AI` and
`CUSTOM_VOICE`.
source:
openapi: stenographer-openapi.json
ReturnVoice:
docs: A specific voice specification
properties:
provider:
type: literal<"HUME_AI">
type: ReturnVoiceProvider
docs: >-
The provider of the voice to use. Currently, only `HUME_AI` is
supported as the voice provider.
The provider of the voice to use. Supported values are `HUME_AI` and
`CUSTOM_VOICE`.
name:
type: optional<string>
docs: >-
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "hume"
version = "0.7.3"
version = "0.7.4"
description = "A Python SDK for Hume AI"
readme = "README.md"
authors = []
Expand Down
2 changes: 2 additions & 0 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -2753,6 +2753,7 @@ client.empathic_voice.configs.create_config(
),
evi_version="2",
voice=PostedVoice(
provider="HUME_AI",
name="SAMPLE VOICE",
),
language_model=PostedLanguageModel(
Expand Down Expand Up @@ -3053,6 +3054,7 @@ client.empathic_voice.configs.create_config_version(
version=0,
),
voice=PostedVoice(
provider="HUME_AI",
name="ITO",
),
language_model=PostedLanguageModel(
Expand Down
4 changes: 4 additions & 0 deletions src/hume/empathic_voice/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
PostedTimeoutSpecsMaxDuration,
PostedUserDefinedToolSpec,
PostedVoice,
PostedVoiceProvider,
ProsodyInference,
ResumeAssistantMessage,
ReturnActiveChatCount,
Expand Down Expand Up @@ -87,6 +88,7 @@
ReturnUserDefinedToolToolType,
ReturnUserDefinedToolVersionType,
ReturnVoice,
ReturnVoiceProvider,
Role,
SessionSettings,
TextInput,
Expand Down Expand Up @@ -151,6 +153,7 @@
"PostedTimeoutSpecsMaxDuration",
"PostedUserDefinedToolSpec",
"PostedVoice",
"PostedVoiceProvider",
"ProsodyInference",
"PublishEvent",
"ResumeAssistantMessage",
Expand Down Expand Up @@ -197,6 +200,7 @@
"ReturnUserDefinedToolToolType",
"ReturnUserDefinedToolVersionType",
"ReturnVoice",
"ReturnVoiceProvider",
"Role",
"SessionSettings",
"SubscribeEvent",
Expand Down
4 changes: 4 additions & 0 deletions src/hume/empathic_voice/configs/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ def create_config(
),
evi_version="2",
voice=PostedVoice(
provider="HUME_AI",
name="SAMPLE VOICE",
),
language_model=PostedLanguageModel(
Expand Down Expand Up @@ -464,6 +465,7 @@ def create_config_version(
version=0,
),
voice=PostedVoice(
provider="HUME_AI",
name="ITO",
),
language_model=PostedLanguageModel(
Expand Down Expand Up @@ -1070,6 +1072,7 @@ async def main() -> None:
),
evi_version="2",
voice=PostedVoice(
provider="HUME_AI",
name="SAMPLE VOICE",
),
language_model=PostedLanguageModel(
Expand Down Expand Up @@ -1346,6 +1349,7 @@ async def main() -> None:
version=0,
),
voice=PostedVoice(
provider="HUME_AI",
name="ITO",
),
language_model=PostedLanguageModel(
Expand Down
4 changes: 4 additions & 0 deletions src/hume/empathic_voice/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
from .posted_timeout_specs_max_duration import PostedTimeoutSpecsMaxDuration
from .posted_user_defined_tool_spec import PostedUserDefinedToolSpec
from .posted_voice import PostedVoice
from .posted_voice_provider import PostedVoiceProvider
from .prosody_inference import ProsodyInference
from .resume_assistant_message import ResumeAssistantMessage
from .return_active_chat_count import ReturnActiveChatCount
Expand Down Expand Up @@ -86,6 +87,7 @@
from .return_user_defined_tool_tool_type import ReturnUserDefinedToolToolType
from .return_user_defined_tool_version_type import ReturnUserDefinedToolVersionType
from .return_voice import ReturnVoice
from .return_voice_provider import ReturnVoiceProvider
from .role import Role
from .session_settings import SessionSettings
from .text_input import TextInput
Expand Down Expand Up @@ -145,6 +147,7 @@
"PostedTimeoutSpecsMaxDuration",
"PostedUserDefinedToolSpec",
"PostedVoice",
"PostedVoiceProvider",
"ProsodyInference",
"ResumeAssistantMessage",
"ReturnActiveChatCount",
Expand Down Expand Up @@ -190,6 +193,7 @@
"ReturnUserDefinedToolToolType",
"ReturnUserDefinedToolVersionType",
"ReturnVoice",
"ReturnVoiceProvider",
"Role",
"SessionSettings",
"TextInput",
Expand Down
7 changes: 4 additions & 3 deletions src/hume/empathic_voice/types/posted_voice.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# This file was auto-generated by Fern from our API Definition.

from ...core.pydantic_utilities import UniversalBaseModel
import typing
from .posted_voice_provider import PostedVoiceProvider
import pydantic
import typing
from .posted_custom_voice import PostedCustomVoice
from ...core.pydantic_utilities import IS_PYDANTIC_V2

Expand All @@ -12,9 +13,9 @@ class PostedVoice(UniversalBaseModel):
A Voice specification posted to the server
"""

provider: typing.Literal["HUME_AI"] = pydantic.Field(default="HUME_AI")
provider: PostedVoiceProvider = pydantic.Field()
"""
The provider of the voice to use. Currently, only `HUME_AI` is supported as the voice provider.
The provider of the voice to use. Supported values are `HUME_AI` and `CUSTOM_VOICE`.
"""

name: typing.Optional[str] = pydantic.Field(default=None)
Expand Down
5 changes: 5 additions & 0 deletions src/hume/empathic_voice/types/posted_voice_provider.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# This file was auto-generated by Fern from our API Definition.

import typing

PostedVoiceProvider = typing.Union[typing.Literal["HUME_AI", "CUSTOM_VOICE"], typing.Any]
7 changes: 4 additions & 3 deletions src/hume/empathic_voice/types/return_voice.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# This file was auto-generated by Fern from our API Definition.

from ...core.pydantic_utilities import UniversalBaseModel
import typing
from .return_voice_provider import ReturnVoiceProvider
import pydantic
import typing
from .return_custom_voice import ReturnCustomVoice
from ...core.pydantic_utilities import IS_PYDANTIC_V2

Expand All @@ -12,9 +13,9 @@ class ReturnVoice(UniversalBaseModel):
A specific voice specification
"""

provider: typing.Literal["HUME_AI"] = pydantic.Field(default="HUME_AI")
provider: ReturnVoiceProvider = pydantic.Field()
"""
The provider of the voice to use. Currently, only `HUME_AI` is supported as the voice provider.
The provider of the voice to use. Supported values are `HUME_AI` and `CUSTOM_VOICE`.
"""

name: typing.Optional[str] = pydantic.Field(default=None)
Expand Down
5 changes: 5 additions & 0 deletions src/hume/empathic_voice/types/return_voice_provider.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# This file was auto-generated by Fern from our API Definition.

import typing

ReturnVoiceProvider = typing.Union[typing.Literal["HUME_AI", "CUSTOM_VOICE"], typing.Any]
8 changes: 4 additions & 4 deletions tests/empathic_voice/test_configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ async def test_create_config(client: HumeClient, async_client: AsyncHumeClient)
name="Weather Assistant Config",
prompt=PostedConfigPromptSpec(id="af699d45-2985-42cc-91b9-af9e5da3bac5", version=0),
evi_version="2",
voice=PostedVoice(name="SAMPLE VOICE"),
voice=PostedVoice(provider="HUME_AI", name="SAMPLE VOICE"),
language_model=PostedLanguageModel(
model_provider="ANTHROPIC", model_resource="claude-3-5-sonnet-20240620", temperature=1.0
),
Expand All @@ -298,7 +298,7 @@ async def test_create_config(client: HumeClient, async_client: AsyncHumeClient)
name="Weather Assistant Config",
prompt=PostedConfigPromptSpec(id="af699d45-2985-42cc-91b9-af9e5da3bac5", version=0),
evi_version="2",
voice=PostedVoice(name="SAMPLE VOICE"),
voice=PostedVoice(provider="HUME_AI", name="SAMPLE VOICE"),
language_model=PostedLanguageModel(
model_provider="ANTHROPIC", model_resource="claude-3-5-sonnet-20240620", temperature=1.0
),
Expand Down Expand Up @@ -584,7 +584,7 @@ async def test_create_config_version(client: HumeClient, async_client: AsyncHume
version_description="This is an updated version of the Weather Assistant Config.",
evi_version="2",
prompt=PostedConfigPromptSpec(id="af699d45-2985-42cc-91b9-af9e5da3bac5", version=0),
voice=PostedVoice(name="ITO"),
voice=PostedVoice(provider="HUME_AI", name="ITO"),
language_model=PostedLanguageModel(
model_provider="ANTHROPIC", model_resource="claude-3-5-sonnet-20240620", temperature=1.0
),
Expand All @@ -602,7 +602,7 @@ async def test_create_config_version(client: HumeClient, async_client: AsyncHume
version_description="This is an updated version of the Weather Assistant Config.",
evi_version="2",
prompt=PostedConfigPromptSpec(id="af699d45-2985-42cc-91b9-af9e5da3bac5", version=0),
voice=PostedVoice(name="ITO"),
voice=PostedVoice(provider="HUME_AI", name="ITO"),
language_model=PostedLanguageModel(
model_provider="ANTHROPIC", model_resource="claude-3-5-sonnet-20240620", temperature=1.0
),
Expand Down
Loading