Commit c2bd5ffa authored by Your Name's avatar Your Name

Fix: Always use configured audio model regardless of request model parameter

parent 1cb7f4b3
...@@ -2369,11 +2369,12 @@ async def create_transcription( ...@@ -2369,11 +2369,12 @@ async def create_transcription(
detail="Audio transcription not configured. Use --audio-model to specify a model." detail="Audio transcription not configured. Use --audio-model to specify a model."
) )
# Determine model to use # Determine model to use - always use the configured audio model
model_to_use = model # The model parameter from the request is ignored in favor of the configured transcription model
if model == "whisper-1" or model.startswith("audio:"): actual_model = audio_model # This is the configured transcription model from --audio-model
# Use configured audio model model_to_use = actual_model
model_to_use = audio_model
print(f"DEBUG: Transcription request model: {model}, using configured model: {actual_model}")
# Check if Vulkan is available for whispercpp # Check if Vulkan is available for whispercpp
whisper_vulkan_available = False whisper_vulkan_available = False
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment