Skip to content
Open
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
10 changes: 7 additions & 3 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"cliVersion": "4.67.1",
"cliVersion": "4.92.0",
"generatorName": "fernapi/fern-python-sdk",
"generatorVersion": "4.62.0",
"generatorVersion": "5.5.11",
"generatorConfig": {
"client": {
"class_name": "BaseClient",
Expand All @@ -16,6 +16,10 @@
"skip_validation": true
}
},
"originGitCommit": "aa8e0677bcaea82c02a5934c61d195b35921b33d",
"originGitCommit": "a11286b37e09a565312275eb0ee6b111fbdc5360",
"originGitCommitIsDirty": true,
"invokedBy": "manual",
"requestedVersion": null,
"ciProvider": null,
"sdkVersion": "6.1.2"
}
12 changes: 4 additions & 8 deletions .fernignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,20 @@
src/deepgram/client.py

# WebSocket socket clients:
# - construct_type keyword args fix (generator uses positional, function requires keyword-only)
# - except Exception broad catch (supports custom transports, generator narrows to WebSocketException)
# - _sanitize_numeric_types in agent socket client (float→int for API)
# - optional message param on control send_ methods (send_keep_alive, send_close_stream, etc.)
# so users don't need to instantiate the type themselves for no-payload control messages
# [temporarily frozen — generator bugs in construct_type call convention and exception handling]
# - listen/v2 send_configure: typing.Any / raw _send shim (generator's ListenV2Configure model
# and ListenV2ConfigureSuccess not used)
# [temporarily frozen — manual patches listed above]
src/deepgram/agent/v1/socket_client.py
src/deepgram/listen/v1/socket_client.py
src/deepgram/listen/v2/socket_client.py
src/deepgram/speak/v1/socket_client.py

# Type files with manual int type corrections (Fern generates float for speaker/channel/num_words)
# [temporarily frozen — waiting on internal-api-specs#205]
src/deepgram/types/listen_v1response_results_utterances_item.py
src/deepgram/types/listen_v1response_results_utterances_item_words_item.py
src/deepgram/types/listen_v1response_results_channels_item_alternatives_item_paragraphs_paragraphs_item.py

# Hand-written custom tests
tests/custom/test_agent_history.py
tests/custom/test_text_builder.py
tests/custom/test_transport.py

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- name: Checkout repo
uses: actions/checkout@v4
Expand All @@ -29,7 +29,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
python-version: ["3.10", "3.11", "3.12", "3.13"]
needs: compile
steps:
- name: Checkout repo
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:
- name: Set up python
uses: actions/setup-python@v6
with:
python-version: "3.8"
python-version: "3.10"
- name: Bootstrap poetry
run: |
curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- name: Checkout repo
uses: actions/checkout@v4
Expand All @@ -35,7 +35,7 @@ jobs:
needs: compile
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- name: Checkout repo
uses: actions/checkout@v4
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:
if: ${{ needs.release-please.outputs.release_created }}
strategy:
matrix:
python-version: ["3.8"]
python-version: ["3.10"]
steps:
- name: Checkout repo
uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests-daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- name: Checkout repo
uses: actions/checkout@v4
Expand All @@ -29,7 +29,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
python-version: ["3.10", "3.11", "3.12", "3.13"]
needs: compile
steps:
- name: Checkout repo
Expand Down
13 changes: 3 additions & 10 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Current permanently frozen files:
- `src/deepgram/client.py` — entirely custom (Bearer auth, session ID); no Fern equivalent
- `src/deepgram/helpers/` — hand-written TextBuilder helpers
- `src/deepgram/transport_interface.py`, `src/deepgram/transport.py`, `src/deepgram/transports/` — custom transport layer
- `tests/custom/test_agent_history.py` — hand-written regression test for Agent History websocket payload parsing
- `tests/custom/test_text_builder.py`, `tests/custom/test_transport.py` — hand-written tests
- `tests/manual/` — manual standalone tests
- `README.md`, `CHANGELOG.md`, `CONTRIBUTING.md`, `reference.md` — docs
Expand All @@ -41,17 +42,9 @@ How to identify:

Current temporarily frozen files:
- `src/deepgram/speak/v1/socket_client.py` — optional message param defaults, broad exception catch
- `src/deepgram/listen/v1/socket_client.py` — same + `construct_type` for unknown WS messages
- `src/deepgram/listen/v2/socket_client.py` — same
- `src/deepgram/listen/v1/socket_client.py` — same
- `src/deepgram/listen/v2/socket_client.py` — same + `send_configure` typing.Any/raw shim, response Union uses typing.Any instead of `ListenV2ConfigureSuccess`
- `src/deepgram/agent/v1/socket_client.py` — same + `_sanitize_numeric_types`
- `src/deepgram/types/listen_v1response_results_utterances_item.py` — `float` → `int` fix
- `src/deepgram/types/listen_v1response_results_utterances_item_words_item.py` — `float` → `int` fix
- `src/deepgram/types/listen_v1response_results_channels_item_alternatives_item_paragraphs_paragraphs_item.py` — `float` → `int` fix
- `src/deepgram/types/listen_v1redact.py` — Union[str, Sequence[str]] support
- `src/deepgram/listen/v1/client.py` — Union[str, Sequence[str]] array param support
- `src/deepgram/listen/v2/client.py` — same
- `tests/wire/test_listen_v1_media.py` — `transcribe_file()` bytes param fix
- `wiremock/wiremock-mappings.json` — removed duplicate stub

### Prepare repo for regeneration

Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Contributions are welcome. This is a generated library, and changes to core files should be promoted to our generator code.

Requires Python 3.8+
Requires Python 3.10+

## Fork Repository

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

![Built with Fern](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)
[![PyPI version](https://img.shields.io/pypi/v/deepgram-sdk)](https://pypi.python.org/pypi/deepgram-sdk)
[![Python 3.8+](https://img.shields.io/badge/python-3.8+-blue.svg)](https://www.python.org/downloads/)
[![Python 3.10+](https://img.shields.io/badge/python-3.10+-blue.svg)](https://www.python.org/downloads/)
[![MIT License](https://img.shields.io/badge/license-MIT-green.svg)](./LICENSE)

The official Python SDK for Deepgram's automated speech recognition, text-to-speech, and language understanding APIs. Power your applications with world-class speech and Language AI models.
Expand Down Expand Up @@ -464,7 +464,7 @@ See our [CONTRIBUTING](./CONTRIBUTING.md) guide.

### Requirements

- Python 3.8+
- Python 3.10+
- See `pyproject.toml` for full dependency list

## Community Code of Conduct
Expand Down
Loading
Loading