Skip to content

docs(pulse-stt): rename SDK response field transcriptiontext#128

Draft
abhishekmishragithub wants to merge 1 commit into
mainfrom
docs/sdk-pulse-transcription-to-text
Draft

docs(pulse-stt): rename SDK response field transcriptiontext#128
abhishekmishragithub wants to merge 1 commit into
mainfrom
docs/sdk-pulse-transcription-to-text

Conversation

@abhishekmishragithub
Copy link
Copy Markdown
Collaborator

@abhishekmishragithub abhishekmishragithub commented May 7, 2026

Summary

  • SDK-only rename of the Pulse STT 200 response field via Fern's x-fern-property-name. Wire format is unchanged — server keeps emitting transcription, only generated SDKs expose .text.
  • Aligns with the OpenAI Whisper convention and the Vercel AI SDK's experimental_transcribe shape ({ text, segments, durationInSeconds }).
  • Two doc samples that demonstrate the smallestai Python SDK updated; raw HTTP samples kept as-is since they read the wire format.

Why now (closes task #39 + #40 docs-side)

Scope (kept tight)

  • Spec override: fern/apis/waves/openapi/pulse-stt-openapi-overrides.yaml — adds x-fern-property-name: text on transcription.
  • v4 docs render override: unchanged — API reference still shows transcription in the response (matches HTTP wire reality, verified on preview).
  • Doc samples updated (Pulse SDK callers only):
    • speech-to-text/benchmarks/evaluation-walkthrough.mdx (+ versions/ mirror) — response.text
    • speech-to-text/pre-recorded/code-examples.mdx (+ versions/ mirror) — response.get('text', ...)
  • Doc samples kept (raw HTTP / wire format): every requests.post(...).json()["transcription"] and data.transcription after fetch() stays as-is.
  • Changelog: 2026-05-07-pulse-stt-sdk-text-rename.mdx flagging the BREAKING SDK change.

Verification

  • fern check — 0 errors
  • python3 scripts/spec-live-tests/spec_drift_check.py — 0 drift
  • python3 scripts/spec-live-tests/v4_mirror_check.py — pages/ ↔ versions/ in sync
  • Live API: server keeps emitting transcription over HTTP (wire format preserved)
  • Preview render verified — REST API ref shows wire transcription (24 mentions); SDK sample pages show response.text; the <Note> warning callers about the SDK transition still renders.

Handoff for SDK release (#40)

After merge, the SDK team can regenerate Python + JS/TS SDKs:

Vercel SDK is unaffected.

Server keeps returning `transcription` over the wire. The rename
applies only to generated SDKs (Python, JS/TS, Go) via Fern's
`x-fern-property-name` extension on the 200 response schema in
`fern/apis/waves/openapi/pulse-stt-openapi-overrides.yaml`. The v4
docs render is unchanged — the API reference still shows
`transcription` in the response example, which is what the server
actually emits.

Updated two doc samples that demonstrate the SDK Python client
(`smallestai.waves.WavesClient`); raw HTTP samples (`requests` /
`fetch`) keep `transcription` since they read the wire format.

Breaking for SDK callers — changelog entry added. Will ship with
the next coordinated SDK release alongside the other staged
breaking renames (task #40).

Files:
- spec override: x-fern-property-name on transcription
- benchmarks/evaluation-walkthrough.mdx (+ versions/ mirror)
- pre-recorded/code-examples.mdx (+ versions/ mirror)
- changelog: 2026-05-07-pulse-stt-sdk-text-rename.mdx
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 7, 2026

@entelligence-ai-pr-reviews
Copy link
Copy Markdown

EntelligenceAI PR Summary

Renames the Pulse STT SDK response accessor from transcription to text to align with Vercel AI SDK and OpenAI Whisper conventions; REST wire format is unaffected.

  • Added Fern OpenAPI override in pulse-stt-openapi-overrides.yaml to remap wire field transcription → SDK property text
  • Added changelog entry (2026-05-07-pulse-stt-sdk-text-rename.mdx) documenting the breaking SDK change with Python and JS/TS migration examples
  • Updated evaluation-walkthrough.mdx (both pages/ and versions/ paths) to replace response.transcription and "transcription" key with response.text / "text" in three locations each
  • Updated code-examples.mdx (both pages/ and versions/ paths) to change process_results response key from 'transcription' to 'text'

Confidence Score: 5/5 - Safe to Merge

Safe to merge — this PR is a documentation and SDK configuration change that renames the Pulse STT response accessor from transcription to text via a Fern OpenAPI override in pulse-stt-openapi-overrides.yaml, with no changes to the REST wire format. The changelog entry in 2026-05-07-pulse-stt-sdk-text-rename.mdx appropriately documents this as a breaking SDK change with concrete Python and JS/TS migration examples, and the evaluation walkthrough in evaluation-walkthrough.mdx is updated consistently across both pages/ paths. No review comments were generated and no logic, runtime, or security concerns are present in this purely documentation/config PR.

Key Findings:

  • The Fern OpenAPI override in pulse-stt-openapi-overrides.yaml remaps only the SDK property name, explicitly leaving the REST wire field transcription untouched, which means no backend or API contract is broken.
  • The changelog entry correctly characterizes this as a breaking change and provides side-by-side before/after migration examples for both Python and JS/TS consumers, reducing friction for adopters.
  • Zero review comments were generated across any of the changed files, and no pre-existing unresolved concerns exist that touch this PR's scope.
  • Coverage of 2/6 changed files is the only minor gap, but the unreviewed files are documentation pages whose content change (renaming transcription to text) is straightforward and consistent with the stated intent.
Files requiring special attention
  • pulse-stt-openapi-overrides.yaml
  • 2026-05-07-pulse-stt-sdk-text-rename.mdx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant