set_user_name Subroutine

private pure elemental subroutine set_user_name(this, user_name)

Type Bound

ChatCompletion

Arguments

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

Called by

proc~~set_user_name~~CalledByGraph proc~set_user_name foropenai_ChatCompletion::ChatCompletion%set_user_name proc~set_chatcompletion_data foropenai_ChatCompletion::ChatCompletion%set_ChatCompletion_data proc~set_chatcompletion_data->proc~set_user_name proc~conversation foropenai_ChatCompletion::ChatCompletion%conversation proc~conversation->proc~set_chatcompletion_data program~test_chatcompletion test_ChatCompletion program~test_chatcompletion->proc~set_chatcompletion_data

Source Code

   elemental pure subroutine set_user_name(this, user_name)
      class(ChatCompletion), intent(inout) :: this
      character(len=*),      intent(in)    :: user_name
      this%user_name = trim(user_name)
   end subroutine set_user_name