Versions in this module Expand all Collapse all v0 v0.1.4 Apr 13, 2023 v0.1.3 Mar 28, 2023 v0.1.2 Mar 28, 2023 v0.1.1 Mar 28, 2023 Changes in this version + const ApiImageEdit + const ApiImageGeneration + const ApiImageVariation + const BaseApiUrl + const Size1024 + const Size256 + const Size512 + type DALLESettings struct + N int + func (instance *DALLESettings) Load(m map[string]interface{}) (err error) + func (instance *DALLESettings) Map() (m map[string]interface{}) + type OpenAIDALLE struct + func NewOpenAIDALLE(settings *commons.SettingsExternal) (instance *OpenAIDALLE, err error) + func (instance *OpenAIDALLE) Download(url string) (data []byte, err error) + func (instance *OpenAIDALLE) Generate(prompt string, payload map[string]interface{}) (images []*model.ProducerItem, err error) + func (instance *OpenAIDALLE) Get(url string) (response map[string]interface{}, err error) + func (instance *OpenAIDALLE) Post(url string, body interface{}) (response map[string]interface{}, err error) + func (instance *OpenAIDALLE) Upload(url string, filename string, params map[string]interface{}) (response map[string]interface{}, err error) + func (instance *OpenAIDALLE) UploadData(url string, data []byte, params map[string]interface{}) (response map[string]interface{}, err error) + func (instance *OpenAIDALLE) Variation(sourceBytes []byte, payload map[string]interface{}) (images []*model.ProducerItem, err error) v0.1.0 Mar 16, 2023