View Source ExOpenAi.NewImageRequest (ex_open_ai v0.1.3)
Represents a new image request to the OpenAI API.
Link to this section Summary
Functions
Builds the create new image request and validates the required fields.
Builds the map by adding to the existing map and updates the map with the attributes passed in.
Ensures that the map has the required fields.
Prepares the map by removing any fields that are not in the list of fields. and ensures required fields are present.
Link to this section Functions
@spec create(params :: map()) :: {:ok, ExOpenAi.NewImage.t()} | {:error, map()}
Builds the create new image request and validates the required fields.
Builds the map by adding to the existing map and updates the map with the attributes passed in.
Ensures that the map has the required fields.
Prepares the map by removing any fields that are not in the list of fields. and ensures required fields are present.