Skip to content
Merged
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
9 changes: 4 additions & 5 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"cliVersion": "5.89.0",
"cliVersion": "5.44.6",
"generatorName": "fernapi/fern-python-sdk",
"generatorVersion": "5.23.0",
"generatorVersion": "5.14.18",
"generatorConfig": {
"client": {
"class_name": "BaseClient",
Expand All @@ -12,13 +12,12 @@
"use_typeddict_requests": true,
"should_generate_websocket_clients": true,
"enable_wire_tests": true,
"runtime_version": true,
"pydantic_config": {
"skip_validation": true
}
},
"originGitCommit": "9e641c9fb92e1e0398c79c196f6a71c70b4fdbf6",
"originGitCommit": "ff8fd2b74fdd5c081e9f111d59d3619f7e286dd8",
"originGitCommitIsDirty": true,
"invokedBy": "manual",
"sdkVersion": "7.6.1"
"sdkVersion": "7.6.0"
}
55 changes: 18 additions & 37 deletions .fernignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,48 +43,22 @@ src/deepgram/agent/v1/requests/agent_v1settings.py

# Backward-compatibility alias shims for renamed generated public types/params.
# These are hand-written wrappers around the current generated names and must not be regenerated.
# The *_content_role / *_function_calls_function_calls_item shims (and the double-`Context`
# variants below) were recreated by hand after the 2026-07-31 regen deleted the underlying
# generated modules; they now re-export the canonical ConversationHistoryMessageRole /
# FunctionCallHistoryMessageFunctionCallsItem types so the old public import paths keep working.
src/deepgram/agent/v1/types/agent_v1history_content.py
src/deepgram/agent/v1/types/agent_v1history_content_role.py
src/deepgram/agent/v1/types/agent_v1history_function_calls.py
src/deepgram/agent/v1/types/agent_v1history_function_calls_function_calls_item.py
src/deepgram/agent/v1/types/agent_v1settings_agent_context_context_messages_item_content_role.py
src/deepgram/agent/v1/types/agent_v1settings_agent_context_context_messages_item_function_calls_function_calls_item.py
src/deepgram/agent/v1/types/agent_v1settings_agent_context_messages_item.py
src/deepgram/agent/v1/types/agent_v1settings_agent_context_messages_item_content.py
src/deepgram/agent/v1/types/agent_v1settings_agent_context_messages_item_content_role.py
src/deepgram/agent/v1/types/agent_v1settings_agent_context_messages_item_function_calls.py
src/deepgram/agent/v1/types/agent_v1settings_agent_context_messages_item_function_calls_function_calls_item.py
src/deepgram/agent/v1/requests/agent_v1history_content.py
src/deepgram/agent/v1/requests/agent_v1history_function_calls.py
src/deepgram/agent/v1/requests/agent_v1history_function_calls_function_calls_item.py
src/deepgram/agent/v1/requests/agent_v1settings_agent_context_context_messages_item_function_calls_function_calls_item.py
src/deepgram/agent/v1/requests/agent_v1settings_agent_context_messages_item.py
src/deepgram/agent/v1/requests/agent_v1settings_agent_context_messages_item_content.py
src/deepgram/agent/v1/requests/agent_v1settings_agent_context_messages_item_function_calls.py
src/deepgram/agent/v1/requests/agent_v1settings_agent_context_messages_item_function_calls_function_calls_item.py
src/deepgram/types/create_key_v1request_one.py
src/deepgram/requests/create_key_v1request_one.py

# Backward-compatibility alias shims for the 2026-07-31 provider/model type renames.
# The generator renamed these public types (dropping the Speak/Think provider prefixes)
# with no compat aliases: AnthropicThinkProviderModel->AnthropicModel,
# GoogleThinkProviderModel->GoogleModel, GroqThinkProviderReasoningMode->GroqReasoningMode,
# CartesiaSpeakProviderModelId->CartesiaModelId, CartesiaSpeakProviderVoice->CartesiaVoice,
# DeepgramSpeakProviderModel->DeepgramModel. These hand-written aliases re-export the new
# names under the old public import paths so existing callers keep working. No Fern
# equivalent — frozen so the generator won't delete them.
src/deepgram/types/anthropic_think_provider_model.py
src/deepgram/types/google_think_provider_model.py
src/deepgram/types/groq_think_provider_reasoning_mode.py
src/deepgram/types/cartesia_speak_provider_model_id.py
src/deepgram/types/cartesia_speak_provider_voice.py
src/deepgram/types/deepgram_speak_provider_model.py
src/deepgram/requests/cartesia_speak_provider_voice.py

# Backward-compatibility alias shims for the 2026-05-14 listen-provider rename.
# The spec deduplicated AgentV1SettingsAgent[Context]ListenProviderV1/V2/V2LanguageHint
# into a single top-level DeepgramListenProvider* type. These hand-written aliases
Expand Down Expand Up @@ -119,17 +93,6 @@ src/deepgram/types/deepgram_listen_provider_v2.py
src/deepgram/agent/v1/types/agent_v1settings_agent_listen_provider.py
src/deepgram/agent/v1/types/agent_v1settings_agent_context_listen_provider.py

# Behavioral back-compat shim for the AgentV1UpdateListen provider retype (2026-07-31
# regen). The provider field changed from a bare DeepgramListenProviderV2 to the new
# required discriminated union AgentV1UpdateListenListenProvider (_V1/_V2, discriminant
# "version"), which rejects the old DeepgramListenProviderV1/V2 payloads. This generated
# model carries a hand-added model_validator(mode='before') / root_validator(pre=True)
# that coerces a legacy Deepgram provider (or a dict lacking the version discriminant)
# into the new shape so existing callers keep working. Frozen so Fern won't strip the
# validator on regen. Remove the shim and unfreeze when the old provider payloads are
# intentionally retired in a future major release.
src/deepgram/agent/v1/types/agent_v1update_listen_listen.py

# Hand-written compat shim recreating ListenV2CloseStreamType, which Fern removed in the
# 2026-06-15 regen (docs #946). The original generated type wrongly allowed
# Union[Literal["Finalize","CloseStream","KeepAlive"], Any] — v2 copied v1's control-message
Expand All @@ -138,6 +101,16 @@ src/deepgram/agent/v1/types/agent_v1update_listen_listen.py
# resurrecting the invalid values. Frozen so Fern won't delete it again.
src/deepgram/listen/v2/types/listen_v2close_stream_type.py

# Backward-compat shim for the `stt_latency` removal from AgentV1LatencyReport (the
# 2026-07-20 regen; API change in deepgram-docs #1006). LatencyReport is a
# server-emitted (read-only) message, so re-adding the optional `stt_latency` field
# has no request/wire impact — it keeps `report.stt_latency` resolving (to None, since
# the server no longer emits it) instead of raising AttributeError, so the removal
# stays a minor release rather than a major break. Remove the field and unfreeze when
# it is intentionally retired in a future major release.
src/deepgram/agent/v1/types/agent_v1latency_report.py
src/deepgram/agent/v1/requests/agent_v1latency_report.py

# Package __init__.py files that carry hand-applied legacy alias re-exports for the
# above shims. Fern would otherwise regenerate these and strip the legacy entries on
# every regen. Frozen to preserve the public-import surface for renamed types/params.
Expand All @@ -161,6 +134,14 @@ src/deepgram/listen/v2/types/__init__.py
# [temporarily frozen — manual patches listed above]
src/deepgram/core/query_encoder.py

# Carries `# x-release-please-version` annotations on the User-Agent and
# X-Fern-SDK-Version header lines so release-please bumps the wire telemetry
# version in lockstep with the published package version (it is a `generic`
# extra-file in .github/release-please-config.json). Fern regenerates this file
# from scratch and would strip the annotations, so it is frozen to protect them.
# [temporarily frozen — manual patches listed above]
src/deepgram/core/client_wrapper.py

# Hand-written custom tests
tests/custom/test_agent_history.py
tests/custom/test_agent_update_listen.py
Expand Down
4 changes: 4 additions & 0 deletions .github/release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
"path": "pyproject.toml",
"jsonpath": "$.tool.poetry.version"
},
{
"type": "generic",
"path": "src/deepgram/core/client_wrapper.py"
},
{
"type": "json",
"path": ".fern/metadata.json",
Expand Down
Loading
Loading