File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
2- "cliVersion" : " 5.0 .0" ,
2+ "cliVersion" : " 5.59 .0" ,
33 "generatorName" : " fernapi/fern-python-sdk" ,
44 "generatorVersion" : " 4.37.0" ,
55 "generatorConfig" : {
1313 },
1414 "exclude_types_from_init_exports" : true
1515 },
16- "originGitCommit" : " b55cdf73dddbda3aa248668eefd04d21d60ee675 "
16+ "originGitCommit" : " f168d571c2aee1449f24daa2e314b45862fb093f "
1717}
Original file line number Diff line number Diff line change 33__pycache__ /
44dist /
55poetry.toml
6- .venv /
7- docs /superpowers /
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 55import pydantic
66from ..core .pydantic_utilities import IS_PYDANTIC_V2
77from ..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.
Original file line number Diff line number Diff line change 77from ..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 """
Original file line number Diff line number Diff line change 1616from .deepgram_tts_params import DeepgramTtsParams
1717from .eleven_labs_tts_params import ElevenLabsTtsParams
1818from .fish_audio_tts_params import FishAudioTtsParams
19- from .generic_tts_params import GenericTtsParams
19+ from .generic_http_tts_params import GenericHttpTtsParams
2020from .google_tts_params import GoogleTtsParams
2121from .hume_ai_tts_params import HumeAiTtsParams
2222from .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 ,
You can’t perform that action at this time.
0 commit comments