fix: Dictation API error message shows incorrect limit (#7423)

Signed-off-by: Abhijay007 <Abhijay007j@gmail.com>
This commit is contained in:
Abhijay Jain
2026-02-27 01:13:04 +05:30
committed by GitHub
parent 7240341974
commit 5dfd626c9c
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -127,7 +127,7 @@ fn convert_error(e: anyhow::Error) -> ErrorResponse {
(status = 400, description = "Invalid request (bad base64 or unsupported format)"),
(status = 401, description = "Invalid API key"),
(status = 412, description = "Provider not configured"),
(status = 413, description = "Audio file too large (max 25MB)"),
(status = 413, description = "Audio file too large (max 50MB)"),
(status = 429, description = "Rate limit exceeded"),
(status = 500, description = "Internal server error"),
(status = 502, description = "Provider API error"),
+1 -1
View File
@@ -1839,7 +1839,7 @@
"description": "Provider not configured"
},
"413": {
"description": "Audio file too large (max 25MB)"
"description": "Audio file too large (max 50MB)"
},
"429": {
"description": "Rate limit exceeded"
+1 -1
View File
@@ -2969,7 +2969,7 @@ export type TranscribeDictationErrors = {
*/
412: unknown;
/**
* Audio file too large (max 25MB)
* Audio file too large (max 50MB)
*/
413: unknown;
/**