feat: [whisper] Partial support for verbose_json format in transcribe endpoint (#721)

This commit is contained in:
Luis López 2023-07-04 14:31:31 +02:00 committed by GitHub
parent f3063f98d3
commit a6839fd238
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 35 additions and 12 deletions

View file

@ -737,7 +737,7 @@ func transcriptEndpoint(cm *ConfigMerger, o *Option) func(c *fiber.Ctx) error {
log.Debug().Msgf("Trascribed: %+v", tr)
// TODO: handle different outputs here
return c.Status(http.StatusOK).JSON(fiber.Map{"text": tr})
return c.Status(http.StatusOK).JSON(tr)
}
}