File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 11cabal-version : 1.12
22
3- -- This file has been generated from package.yaml by hpack version 0.35.2 .
3+ -- This file has been generated from package.yaml by hpack version 0.36.0 .
44--
55-- see: https://github.com/sol/hpack
66
@@ -52,6 +52,7 @@ library
5252 , base >= 4.7 && < 5
5353 , bytestring
5454 , casing
55+ , http-media
5556 , mime-types
5657 , servant
5758 , servant-auth
Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ dependencies:
2727 - time
2828 - vector
2929 - mime-types
30+ - http-media
31+
3032
3133ghc-options :
3234 - -Wall
Original file line number Diff line number Diff line change @@ -9,13 +9,14 @@ import Servant.Auth.Client
99import Servant.Multipart.API
1010import Data.List.NonEmpty (NonEmpty ((:|) ))
1111import Data.ByteString.Lazy (ByteString )
12+ import Network.HTTP.Media ((//) )
1213
1314type OpenAIAuth = Auth '[Bearer ] ()
1415
1516data Audio
1617
1718instance Accept Audio where
18- contentTypes _ = " audio/mpeg " :| []
19+ contentType _ = " audio" // " mpeg "
1920
2021instance MimeUnrender Audio ByteString where
2122 mimeUnrender _ bs = Right bs
You can’t perform that action at this time.
0 commit comments