Commit Graph

13 Commits

Author SHA1 Message Date
Oleksandr Redko
7a2915a37d Simplify tests with T.TempDir (#929) 2025-01-31 18:55:41 +00:00
Alireza Ghasemi
3334a9c78a Add support for word-level audio transcription timestamp granularity (#733)
* Add support for audio transcription timestamp_granularities word

* Fixup multiple timestamp granularities
2024-05-07 16:40:07 +04:00
Simon Klee
0664105387 lint: fix linter warnings reported by golangci-lint (#522)
- Fix #519
2023-11-07 13:23:06 +04:00
渡邉祐一 / Yuichi Watanabe
b616090e69 refactoring tests with mock servers (#30) (#356) 2023-06-12 17:40:26 +04:00
Mariano Darc
fa694c61c2 Implement optional io.Reader in AudioRequest (#303) (#265) (#331)
* Implement optional io.Reader in AudioRequest (#303) (#265)

* Fix err shadowing

* Add test to cover AudioRequest io.Reader usage

* Add additional test cases to cover AudioRequest io.Reader usage

* Add test to cover opening the file specified in an AudioRequest
2023-06-05 10:07:13 +04:00
Hoani Bryson
ecdea45b67 Adds support for audio captioning with Whisper (#267)
* Add speech to text example in docs

* Add caption formats for audio transcription

* Add caption example to README

* Address sanity check errors

* Add tests for decodeResponse

* Use typechecker for audio response format

* Decoding response refactors
2023-04-20 14:07:04 +01:00
sashabaranov
9a1ecf5f4a Add more tests (#241)
* add form builder tests

* lint

* add client tests

* lint

* add non-existent file test
2023-04-09 18:36:15 +04:00
sashabaranov
226ff328e2 Add form builder (#235)
* add form builder

* cover VariImage

* test for closing errors

* simplify tests

* add audio api test coverage

* don't leak authToken when printed

* rename api->client

* fix test
2023-04-08 19:26:26 +04:00
rex posadas
8e3a04664e Refactor/internal testing (#194)
* added NoError check

* corrected NoError

* has error checks

* replace more checks

* Used checks test helper

* Used checks test helper

* remove duplicate import

* fixed lint issues regarding length of messages

---------

Co-authored-by: Rex Posadas <rposadas@redwoodlogistics.com>
2023-03-24 21:55:25 +04:00
itegel
aa149c1bf8 add optional params for audio api, e.g. prompt (#183)
* Compatible with the situation where the mask is empty in CreateEditImage.

* Fix the test for the unnecessary removal of the mask.png file.

* add image variation implementation

* fix image variation bugs

* fix ci-lint problem with max line character limit

* add offitial doc link

* just for codeball test

* fix lint problem

* add optional params for audio api, e.g. prompt

* add comment for new args in translation
2023-03-20 14:02:19 +04:00
Alexander Baranov
9eea94730a rename internally 2023-03-04 15:29:42 +04:00
sashabaranov
47887bf123 Rename and update docs (#120) 2023-03-04 15:18:43 +04:00
Hoani Bryson
0d3e887246 Add whisper 1 support (#117)
* Add whisper 1 support

* Resolve linting issues for audio source files
2023-03-04 14:54:48 +04:00