set_prompt Subroutine

private pure elemental subroutine set_prompt(this, prompt)

Type Bound

ImageGeneration

Arguments

Type IntentOptional Attributes Name
class(ImageGeneration), intent(inout) :: this
character(len=*), intent(in) :: prompt

Called by

proc~~set_prompt~2~~CalledByGraph proc~set_prompt~2 foropenai_ImageGeneration::ImageGeneration%set_prompt proc~create_image foropenai_ImageGeneration::ImageGeneration%create_image proc~create_image->proc~set_prompt~2 proc~set_imagegeneration_data foropenai_ImageGeneration::ImageGeneration%set_ImageGeneration_data proc~set_imagegeneration_data->proc~set_prompt~2 program~test_imagegeneration test_ImageGeneration program~test_imagegeneration->proc~create_image program~test_imagegeneration->proc~set_imagegeneration_data

Source Code

   elemental pure subroutine set_prompt(this, prompt)
      class(ImageGeneration), intent(inout) :: this
      character(len=*),       intent(in)    :: prompt
      this%prompt = trim(prompt)
   end subroutine set_prompt