packages feed

openai-2.4.0 / src / OpenAI / V1 / Images / ResponseFormat.hs

-- | The response formatmodule OpenAI.V1.Images.ResponseFormat    ( -- * Types      ResponseFormat(..)    ) whereimport OpenAI.Prelude-- | The format in which the generated images are returneddata ResponseFormat = URL | B64_JSON    deriving stock (Generic, Show)instance FromJSON ResponseFormat where    parseJSON = genericParseJSON aesonOptionsinstance ToJSON ResponseFormat where    toJSON = genericToJSON aesonOptionsinstance ToHttpApiData ResponseFormat where    toUrlPiece URL = "url"    toUrlPiece B64_JSON = "b64_json"