Skip to content

Enhanced Mode prompt length differs between REST API (20,000 chars) and Python SDK (4,096 chars) #48423

Description

@Funakoshi0524

Summary

The Enhanced Mode prompt length limit documented for the REST API is 20,000 characters,
while the Python SDK documentation states a limit of 4,096 characters.
This discrepancy causes confusion for users expecting consistent behavior across SDK and REST API.

REST API Documentation

REST API documentation states that Enhanced Mode supports up to 20,000 characters for the prompt:

Python SDK Documentation

Python SDK documentation states that the prompt limit is 4,096 characters:

Expected Behavior

The Python SDK should either:

  • support the same 20,000-character limit as the REST API,
    or
  • clearly document why the SDK imposes a stricter limit.

Actual Behavior

  • REST API allows 20,000 characters.
  • Python SDK documentation states 4,096 characters.
  • This inconsistency makes it unclear which limit is authoritative for SDK users.

Questions for SDK Team

  1. Should the Python SDK support the REST API’s 20,000-character limit?
  2. If not, what is the reason for the stricter SDK limit?
  3. Should the SDK documentation be updated to clarify this discrepancy?

Environment

  • Package: azure-ai-transcription

Metadata

Metadata

Assignees

No one assigned

    Labels

    ClientThis issue points to a problem in the data-plane of the library.Service AttentionWorkflow: This issue is responsible by Azure service team.Speech Transcriptioncustomer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions