Skip to content

Commit e7edda6

Browse files
authored
Merge pull request #55 from AgoraIO/fern-bot/2026-07-17_09-40-19_619
SDK regeneration
2 parents 76078b6 + 01fc014 commit e7edda6

6 files changed

Lines changed: 53 additions & 19 deletions

File tree

.fern/metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"cliVersion": "5.0.0",
2+
"cliVersion": "5.59.0",
33
"generatorName": "fernapi/fern-python-sdk",
44
"generatorVersion": "4.37.0",
55
"generatorConfig": {
@@ -13,5 +13,5 @@
1313
},
1414
"exclude_types_from_init_exports": true
1515
},
16-
"originGitCommit": "b55cdf73dddbda3aa248668eefd04d21d60ee675"
16+
"originGitCommit": "f168d571c2aee1449f24daa2e314b45862fb093f"
1717
}

.fern/replay.lock

Lines changed: 36 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/agora_agent/core/client_wrapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ def __init__(
2626

2727
def get_headers(self) -> typing.Dict[str, str]:
2828
headers: typing.Dict[str, str] = {
29-
"User-Agent": "agora-agents/v2.3.2",
29+
"User-Agent": "agora-agents/v2.5.0",
3030
"X-Fern-Language": "Python",
3131
"X-Fern-SDK-Name": "agora-agents",
32-
"X-Fern-SDK-Version": "v2.3.2",
32+
"X-Fern-SDK-Version": "v2.5.0",
3333
**(self.get_custom_headers() or {}),
3434
}
3535
headers["Authorization"] = httpx.BasicAuth(self._get_username(), self._get_password())._auth_header
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
import pydantic
66
from ..core.pydantic_utilities import IS_PYDANTIC_V2
77
from ..core.unchecked_base_model import UncheckedBaseModel
8-
from .generic_tts_params import GenericTtsParams
8+
from .generic_http_tts_params import GenericHttpTtsParams
99

1010

11-
class GenericTts(UncheckedBaseModel):
11+
class GenericHttpTts(UncheckedBaseModel):
1212
"""
1313
Generic OpenAI-compatible Text-to-Speech configuration.
1414
"""
@@ -18,12 +18,12 @@ class GenericTts(UncheckedBaseModel):
1818
Callback address of the generic TTS service.
1919
"""
2020

21-
headers: typing.Dict[str, str] = pydantic.Field()
21+
headers: typing.Optional[typing.Dict[str, str]] = pydantic.Field(default=None)
2222
"""
2323
Custom headers to include in requests to the generic TTS service.
2424
"""
2525

26-
params: GenericTtsParams
26+
params: GenericHttpTtsParams
2727
skip_patterns: typing.Optional[typing.List[int]] = pydantic.Field(default=None)
2828
"""
2929
Controls whether the TTS module skips bracketed content when reading LLM response text.

src/agora_agent/types/generic_tts_params.py renamed to src/agora_agent/types/generic_http_tts_params.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from ..core.unchecked_base_model import UncheckedBaseModel
88

99

10-
class GenericTtsParams(UncheckedBaseModel):
10+
class GenericHttpTtsParams(UncheckedBaseModel):
1111
"""
1212
Generic TTS configuration parameters.
1313
"""
@@ -17,12 +17,12 @@ class GenericTtsParams(UncheckedBaseModel):
1717
API key for the generic TTS service.
1818
"""
1919

20-
model: str = pydantic.Field()
20+
model: typing.Optional[str] = pydantic.Field(default=None)
2121
"""
2222
TTS model name.
2323
"""
2424

25-
voice: str = pydantic.Field()
25+
voice: typing.Optional[str] = pydantic.Field(default=None)
2626
"""
2727
Voice name.
2828
"""

src/agora_agent/types/tts.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from .deepgram_tts_params import DeepgramTtsParams
1717
from .eleven_labs_tts_params import ElevenLabsTtsParams
1818
from .fish_audio_tts_params import FishAudioTtsParams
19-
from .generic_tts_params import GenericTtsParams
19+
from .generic_http_tts_params import GenericHttpTtsParams
2020
from .google_tts_params import GoogleTtsParams
2121
from .hume_ai_tts_params import HumeAiTtsParams
2222
from .microsoft_tts_params import MicrosoftTtsParams
@@ -240,11 +240,11 @@ class Config:
240240
extra = pydantic.Extra.allow
241241

242242

243-
class Tts_Generic(UncheckedBaseModel):
244-
vendor: typing.Literal["generic"] = "generic"
243+
class Tts_GenericHttp(UncheckedBaseModel):
244+
vendor: typing.Literal["generic_http"] = "generic_http"
245245
url: str
246-
headers: typing.Dict[str, str]
247-
params: GenericTtsParams
246+
headers: typing.Optional[typing.Dict[str, str]] = None
247+
params: GenericHttpTtsParams
248248
skip_patterns: typing.Optional[typing.List[int]] = None
249249

250250
if IS_PYDANTIC_V2:
@@ -348,7 +348,7 @@ class Config:
348348
Tts_Google,
349349
Tts_Amazon,
350350
Tts_Sarvam,
351-
Tts_Generic,
351+
Tts_GenericHttp,
352352
Tts_Xai,
353353
Tts_Deepgram,
354354
Tts_Cosyvoice,

0 commit comments

Comments
 (0)