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
- Should the Python SDK support the REST API’s 20,000-character limit?
- If not, what is the reason for the stricter SDK limit?
- Should the SDK documentation be updated to clarify this discrepancy?
Environment
- Package:
azure-ai-transcription
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:
or
Actual Behavior
Questions for SDK Team
Environment
azure-ai-transcription