The Whisper API does not work with timestamp_granularities, while documentation says it's supposed to
groq.BadRequestError: Error code: 400 - {'error': {'message': '`timestamp_granularities[]` not supported by this model', 'type': 'invalid_request_error'}}
sample code
client = Groq()
with open(audio_filename_in, 'rb') as audio_file:
chat_completion = client.audio.transcriptions.create(
file=audio_file,
model="whisper-large-v3",
response_format="verbose_json",
timestamp_granularities=["word"], # with this line commented works
language="en",
)
The Whisper API does not work with
timestamp_granularities
, while documentation says it's supposed togroq.BadRequestError: Error code: 400 - {'error': {'message': '`timestamp_granularities[]` not supported by this model', 'type': 'invalid_request_error'}}
sample code
probably related one #107