Skip to content

Commit

Permalink
feat(fern): regeneration february 9, 2025 (#66)
Browse files Browse the repository at this point in the history
This PR regenerates code to match the latest API Definition.

---------

Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
Co-authored-by: sofer-ai-bot[bot] <187193998+sofer-ai-bot[bot]@users.noreply.github.com>
  • Loading branch information
fern-api[bot] and sofer-ai-bot[bot] authored Feb 9, 2025
1 parent 897bcbd commit a3e6852
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
5 changes: 3 additions & 2 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ client = SoferAI(
api_key="YOUR_API_KEY",
)
client.transcribe.create_transcription(
audio_url="audio_url",
info=TranscriptionInfo(),
)

Expand All @@ -155,15 +156,15 @@ client.transcribe.create_transcription(
<dl>
<dd>

**info:** `TranscriptionInfo`Transcription parameters
**audio_url:** `str`URL to the audio file

</dd>
</dl>

<dl>
<dd>

**audio_url:** `typing.Optional[str]`URL to the audio file
**info:** `TranscriptionInfo`Transcription parameters

</dd>
</dl>
Expand Down
18 changes: 10 additions & 8 deletions src/soferai/transcribe/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ def __init__(self, *, client_wrapper: SyncClientWrapper):
def create_transcription(
self,
*,
audio_url: str,
info: TranscriptionInfo,
audio_url: typing.Optional[str] = OMIT,
audio_id: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> TranscriptionId:
Expand All @@ -38,12 +38,12 @@ def create_transcription(
Parameters
----------
audio_url : str
URL to the audio file
info : TranscriptionInfo
Transcription parameters
audio_url : typing.Optional[str]
URL to the audio file
audio_id : typing.Optional[str]
ID of the audio file (for audio in the S3 bucket, this is the postgres storage metadata id)
Expand All @@ -63,6 +63,7 @@ def create_transcription(
api_key="YOUR_API_KEY",
)
client.transcribe.create_transcription(
audio_url="audio_url",
info=TranscriptionInfo(),
)
"""
Expand Down Expand Up @@ -221,8 +222,8 @@ def __init__(self, *, client_wrapper: AsyncClientWrapper):
async def create_transcription(
self,
*,
audio_url: str,
info: TranscriptionInfo,
audio_url: typing.Optional[str] = OMIT,
audio_id: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> TranscriptionId:
Expand All @@ -231,12 +232,12 @@ async def create_transcription(
Parameters
----------
audio_url : str
URL to the audio file
info : TranscriptionInfo
Transcription parameters
audio_url : typing.Optional[str]
URL to the audio file
audio_id : typing.Optional[str]
ID of the audio file (for audio in the S3 bucket, this is the postgres storage metadata id)
Expand All @@ -261,6 +262,7 @@ async def create_transcription(
async def main() -> None:
await client.transcribe.create_transcription(
audio_url="audio_url",
info=TranscriptionInfo(),
)
Expand Down
2 changes: 1 addition & 1 deletion src/soferai/transcribe/types/transcription_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


class TranscriptionRequest(UniversalBaseModel):
audio_url: typing.Optional[str] = pydantic.Field(default=None)
audio_url: str = pydantic.Field()
"""
URL to the audio file
"""
Expand Down

0 comments on commit a3e6852

Please sign in to comment.