]> git.djapps.eu Git - pkg/ggml/sources/ggml/commit
server : implement "verbose_json" format with token details (whisper/1781)
authorRyan Hitchman <redacted>
Thu, 18 Jan 2024 20:58:42 +0000 (13:58 -0700)
committerGeorgi Gerganov <redacted>
Sat, 27 Jan 2024 15:33:43 +0000 (17:33 +0200)
commit4298fbc66ea205aa7502f8c1d282a2f2b036d86a
treead3133b7260446b3415e0ca4adcafdee913a6c98
parentda2e52d30d2e8721e4cdea82d100679874e94673
server : implement "verbose_json" format with token details (whisper/1781)

* examples/server: implement "verbose_json" format with token details.

This is intended to mirror the format of openai's Python
whisper.transcribe() return values.

* server: don't write WAV to a temporary file if not converting

* server: use std::lock_guard instead of manual lock/unlock
examples/common.cpp
examples/common.h