From ed0bfb8732a094859aa7af462af9780881738eb9 Mon Sep 17 00:00:00 2001 From: Lukas Schaefer Date: Mon, 23 Feb 2026 12:57:06 -0500 Subject: [PATCH] fix: rename json_verbose to verbose_json (#8627) Signed-off-by: Lukas Schaefer --- core/cli/transcript.go | 4 ++-- core/schema/openai.go | 2 +- docs/content/features/audio-to-text.md | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/cli/transcript.go b/core/cli/transcript.go index 78c232558..8da3892a0 100644 --- a/core/cli/transcript.go +++ b/core/cli/transcript.go @@ -31,8 +31,8 @@ type TranscriptCMD struct { ModelsPath string `env:"LOCALAI_MODELS_PATH,MODELS_PATH" type:"path" default:"${basepath}/models" help:"Path containing models used for inferencing" group:"storage"` BackendGalleries string `env:"LOCALAI_BACKEND_GALLERIES,BACKEND_GALLERIES" help:"JSON list of backend galleries" group:"backends" default:"${backends}"` Prompt string `short:"p" help:"Previous transcribed text or words that hint at what the model should expect"` - ResponseFormat schema.TranscriptionResponseFormatType `short:"f" default:"" help:"Response format for Whisper models, can be one of (txt, lrc, srt, vtt, json, json_verbose)"` - PrettyPrint bool `help:"Used with response_format json or json_verbose for pretty printing"` + ResponseFormat schema.TranscriptionResponseFormatType `short:"f" default:"" help:"Response format for Whisper models, can be one of (txt, lrc, srt, vtt, json, verbose_json)"` + PrettyPrint bool `help:"Used with response_format json or verbose_json for pretty printing"` } func (t *TranscriptCMD) Run(ctx *cliContext.Context) error { diff --git a/core/schema/openai.go b/core/schema/openai.go index e94b99ba7..4a3b06cd0 100644 --- a/core/schema/openai.go +++ b/core/schema/openai.go @@ -115,7 +115,7 @@ const ( TranscriptionResponseFormatVtt = TranscriptionResponseFormatType("vtt") TranscriptionResponseFormatLrc = TranscriptionResponseFormatType("lrc") TranscriptionResponseFormatJson = TranscriptionResponseFormatType("json") - TranscriptionResponseFormatJsonVerbose = TranscriptionResponseFormatType("json_verbose") + TranscriptionResponseFormatJsonVerbose = TranscriptionResponseFormatType("verbose_json") ) type ChatCompletionResponseFormat struct { diff --git a/docs/content/features/audio-to-text.md b/docs/content/features/audio-to-text.md index 580c03299..88ce030a7 100644 --- a/docs/content/features/audio-to-text.md +++ b/docs/content/features/audio-to-text.md @@ -57,7 +57,7 @@ Result: --- -You can also specify the `response_format` parameter to be one of `lrc`, `srt`, `vtt`, `text`, `json` or `json_verbose` (default): +You can also specify the `response_format` parameter to be one of `lrc`, `srt`, `vtt`, `text`, `json` or `verbose_json` (default): ```bash ## Send the example audio file to the transcriptions endpoint curl http://localhost:8080/v1/audio/transcriptions -H "Content-Type: multipart/form-data" -F file="@$PWD/gb1.ogg" -F model="whisper-1" -F response_format="srt"