Skip to content

fix(docs): correct timestamp_granularities parameter type in audio example#412

Open
abdelhadi703 wants to merge 1 commit into
mistralai:mainfrom
abdelhadi703:fix/timestamp-granularities-type
Open

fix(docs): correct timestamp_granularities parameter type in audio example#412
abdelhadi703 wants to merge 1 commit into
mistralai:mainfrom
abdelhadi703:fix/timestamp-granularities-type

Conversation

@abdelhadi703

Copy link
Copy Markdown

Description

The Python and TypeScript examples in public/llms-full.txt for audio transcription use timestamp_granularities="segment" (a string) instead of timestamp_granularities=["segment"] (a list), which causes a validation error when calling the API.

The source MDX files (src/app/(docs)/capabilities/audio_transcription/offline_transcription/transcription_with_timestamps_section/_page.mdx) were already corrected but the generated llms-full.txt was out of sync.

Changes

  • Changed timestamp_granularities="segment" to timestamp_granularities=["segment"] in the Python example
  • Changed timestamp_granularities: "segment" to timestamp_granularities: ["segment"] in the TypeScript example

Verification

  • Confirmed the API expects a list type for this parameter per the OpenAPI spec (type: array)
  • The source MDX files already use the correct list format

Fixes #299

…ample

The Python and TypeScript examples in llms-full.txt use
timestamp_granularities="segment" (a string) instead of
timestamp_granularities=["segment"] (a list), which causes a validation
error when calling the API. The source MDX files were already corrected
but the generated llms-full.txt was out of sync.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel

vercel Bot commented Mar 2, 2026

Copy link
Copy Markdown

@abdelhadi703 is attempting to deploy a commit to the Mistral AI Team on Vercel.

A member of the Team first needs to authorize it.

@abdelhadi703

Copy link
Copy Markdown
Author

Hi @mistralai/team,

Bumping this docs fix. It corrects the timestamp_granularities parameter type in the audio transcription example.

Quick documentation fix. Thanks!

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.

Transcription with Timestamps - wrong parameter type in python example

1 participant