dylanshine / openai-kit

A community Swift package used to interact with the OpenAI API
https://platform.openai.com/docs/api-reference
MIT License
703 stars 109 forks source link

The return type of AudioProvider.transcribe() and .translate() being a type named "Audio" doesn't really make sense. #50

Closed joshgalvan closed 1 year ago

joshgalvan commented 1 year ago

I knew the Whisper API already but was confused for a minute on how to use it here. There may be some name you could use for both translations and transcriptions, but it would make more sense for each function to return a Transcription or Translation type for each respective purpose. Anything but returning an Audio, which implies Data.